From 36b15636cf0c47d8455c5ff39ce98ae9179037ee Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Tue, 25 Apr 2023 14:39:30 -0700 Subject: [PATCH 01/54] Intermediate Commit - Added DnssecConfigs resource type --- .../preview/2023-07-01-preview/dns.json | 2196 +++++++++++++++++ .../examples/CreateOrUpdateAAAARecordset.json | 65 + .../examples/CreateOrUpdateARecordset.json | 65 + .../CreateOrUpdateARecordsetAlias.json | 61 + .../CreateOrUpdateCNAMERecordset.json | 59 + .../examples/CreateOrUpdateCaaRecordset.json | 71 + .../examples/CreateOrUpdateMXRecordset.json | 68 + .../examples/CreateOrUpdateNSRecordset.json | 65 + .../examples/CreateOrUpdatePTRRecordset.json | 65 + .../examples/CreateOrUpdatePrivateZone.json | 72 + .../examples/CreateOrUpdateSOARecordset.json | 77 + .../examples/CreateOrUpdateSRVRecordset.json | 74 + .../examples/CreateOrUpdateTXTRecordset.json | 74 + .../examples/CreateOrUpdateZone.json | 62 + .../examples/DeleteAAAARecordset.json | 14 + .../examples/DeleteARecordset.json | 14 + .../examples/DeleteCNAMERecordset.json | 14 + .../examples/DeleteCaaRecordset.json | 14 + .../examples/DeleteMXRecordset.json | 14 + .../examples/DeleteNSRecordset.json | 14 + .../examples/DeletePTRRecordset.json | 14 + .../examples/DeleteSRVRecordset.json | 14 + .../examples/DeleteTXTRecordset.json | 14 + .../examples/DeleteZone.json | 17 + .../examples/GetAAAARecordset.json | 32 + .../examples/GetARecordset.json | 32 + .../examples/GetCNAMERecordset.json | 30 + .../examples/GetCaaRecordset.json | 34 + .../examples/GetDnsResourceReference.json | 35 + .../examples/GetMXRecordset.json | 33 + .../examples/GetNSRecordset.json | 32 + .../examples/GetPTRRecordset.json | 32 + .../examples/GetSOARecordset.json | 36 + .../examples/GetSRVRecordset.json | 35 + .../examples/GetTXTRecordset.json | 35 + .../2023-07-01-preview/examples/GetZone.json | 32 + .../examples/ListAAAARecordset.json | 36 + .../examples/ListARecordset.json | 36 + .../examples/ListCNAMERecordset.json | 34 + .../examples/ListCaaRecordset.json | 38 + .../examples/ListMXRecordset.json | 37 + .../examples/ListNSRecordset.json | 36 + .../examples/ListPTRRecordset.json | 36 + .../examples/ListRecordSetsByZone.json | 71 + .../examples/ListSOARecordset.json | 40 + .../examples/ListSRVRecordset.json | 39 + .../examples/ListTXTRecordset.json | 39 + .../examples/ListZonesByResourceGroup.json | 53 + .../examples/ListZonesBySubscription.json | 52 + .../examples/PatchAAAARecordset.json | 39 + .../examples/PatchARecordset.json | 39 + .../examples/PatchCNAMERecordset.json | 37 + .../examples/PatchCaaRecordset.json | 41 + .../examples/PatchMXRecordset.json | 40 + .../examples/PatchNSRecordset.json | 39 + .../examples/PatchPTRRecordset.json | 39 + .../examples/PatchSOARecordset.json | 43 + .../examples/PatchSRVRecordset.json | 42 + .../examples/PatchTXTRecordset.json | 42 + .../examples/PatchZone.json | 37 + 60 files changed, 4600 insertions(+) create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json 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 new file mode 100644 index 000000000000..a9fc16f1576e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json @@ -0,0 +1,2196 @@ +{ + "swagger": "2.0", + "info": { + "title": "DnsManagementClient", + "description": "The DNS Management Client.", + "version": "2023-07-01-preview" + }, + "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/dnsZones/{zoneName}/dnssecConfigs/default": { + "put": { + "tags": [ + "DnssecConfigs" + ], + "operationId": "DnssecConfigs_CreateOrUpdate", + "description": "Creates or updates DNSSEC config on a DNS zone.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The etag of the DNSSEC config. Omit this value to always overwrite the current DNSSEC config. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch", + "description": "Set to '*' to allow new DNSSEC config to be created, but to prevent updating existing DNSSEC config. Other values will be ignored." + } + ], + "responses": { + "202": { + "description": "The create or update operation has been accepted and will be processed in the background.", + "schema": { + "$ref": "#/definitions/DnssecConfig" + }, + "x-nullable": true + }, + "201": { + "description": "The DNSSEC config has been created.", + "schema": { + "$ref": "#/definitions/DnssecConfig" + } + }, + "200": { + "description": "The DNSSEC config has been updated.", + "schema": { + "$ref": "#/definitions/DnssecConfig" + } + }, + "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": { + "Create A recordset": { + "$ref": "./examples/CreateOrUpdateARecordset.json" + }, + "Create A recordset with alias target resource": { + "$ref": "./examples/CreateOrUpdateARecordsetAlias.json" + }, + "Create AAAA recordset": { + "$ref": "./examples/CreateOrUpdateAAAARecordset.json" + }, + "Create CAA recordset": { + "$ref": "./examples/CreateOrUpdateCaaRecordset.json" + }, + "Create CNAME recordset": { + "$ref": "./examples/CreateOrUpdateCNAMERecordset.json" + }, + "Create MX recordset": { + "$ref": "./examples/CreateOrUpdateMXRecordset.json" + }, + "Create NS recordset": { + "$ref": "./examples/CreateOrUpdateNSRecordset.json" + }, + "Create PTR recordset": { + "$ref": "./examples/CreateOrUpdatePTRRecordset.json" + }, + "Create SOA recordset": { + "$ref": "./examples/CreateOrUpdateSOARecordset.json" + }, + "Create SRV recordset": { + "$ref": "./examples/CreateOrUpdateSRVRecordset.json" + }, + "Create TXT recordset": { + "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + } + } + }, + "delete": { + "tags": [ + "DnssecConfigs" + ], + "operationId": "DnssecConfigs_Delete", + "description": "Deletes DNSSEC config on a DNS zone. This operation cannot be undone.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The etag of the DNSSEC config. Omit this value to always delete the DNSSEC config. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + } + ], + "responses": { + "204": { + "description": "The DNSSEC config was not found." + }, + "202": { + "description": "The DNSSEC config delete operation has been accepted and will complete asynchronously." + }, + "200": { + "description": "The DNSSEC config has been deleted." + }, + "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 A recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete AAAA recordset": { + "$ref": "./examples/DeleteAAAARecordset.json" + }, + "Delete CAA recordset": { + "$ref": "./examples/DeleteCaaRecordset.json" + }, + "Delete CNAME recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete MX recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete NS recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete PTR recordset": { + "$ref": "./examples/DeletePTRRecordset.json" + }, + "Delete SRV recordset": { + "$ref": "./examples/DeleteSRVRecordset.json" + }, + "Delete TXT recordset": { + "$ref": "./examples/DeleteTXTRecordset.json" + } + } + }, + "get": { + "tags": [ + "DnssecConfigs" + ], + "operationId": "DnssecConfigs_Get", + "description": "Gets DNSSEC Config.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/DnssecConfig" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get A recordset": { + "$ref": "./examples/GetARecordset.json" + }, + "Get AAAA recordset": { + "$ref": "./examples/GetAAAARecordset.json" + }, + "Get CAA recordset": { + "$ref": "./examples/GetCaaRecordset.json" + }, + "Get CNAME recordset": { + "$ref": "./examples/GetCNAMERecordset.json" + }, + "Get MX recordset": { + "$ref": "./examples/GetMXRecordset.json" + }, + "Get NS recordset": { + "$ref": "./examples/GetNSRecordset.json" + }, + "Get PTR recordset": { + "$ref": "./examples/GetPTRRecordset.json" + }, + "Get SOA recordset": { + "$ref": "./examples/GetSOARecordset.json" + }, + "Get SRV recordset": { + "$ref": "./examples/GetSRVRecordset.json" + }, + "Get TXT recordset": { + "$ref": "./examples/GetTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs": { + "get": { + "tags": [ + "DnssecConfigs" + ], + "operationId": "DnssecConfigs_ListByType", + "description": "Lists the DNSSEC configs in a DNS zone.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/DnssecConfigListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List A recordsets": { + "$ref": "./examples/ListARecordset.json" + }, + "List AAAA recordsets": { + "$ref": "./examples/ListAAAARecordset.json" + }, + "List CAA recordsets": { + "$ref": "./examples/ListCaaRecordset.json" + }, + "List CNAME recordsets": { + "$ref": "./examples/ListCNAMERecordset.json" + }, + "List MX recordsets": { + "$ref": "./examples/ListMXRecordset.json" + }, + "List NS recordsets": { + "$ref": "./examples/ListNSRecordset.json" + }, + "List PTR recordsets": { + "$ref": "./examples/ListPTRRecordset.json" + }, + "List SOA recordsets": { + "$ref": "./examples/ListSOARecordset.json" + }, + "List SRV recordsets": { + "$ref": "./examples/ListSRVRecordset.json" + }, + "List TXT recordsets": { + "$ref": "./examples/ListTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}": { + "patch": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Update", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "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 + } + }, + { + "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 overwriting 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 A recordset": { + "$ref": "./examples/PatchARecordset.json" + }, + "Patch AAAA recordset": { + "$ref": "./examples/PatchAAAARecordset.json" + }, + "Patch CAA recordset": { + "$ref": "./examples/PatchCaaRecordset.json" + }, + "Patch CNAME recordset": { + "$ref": "./examples/PatchCNAMERecordset.json" + }, + "Patch MX recordset": { + "$ref": "./examples/PatchMXRecordset.json" + }, + "Patch NS recordset": { + "$ref": "./examples/PatchNSRecordset.json" + }, + "Patch PTR recordset": { + "$ref": "./examples/PatchPTRRecordset.json" + }, + "Patch SOA recordset": { + "$ref": "./examples/PatchSOARecordset.json" + }, + "Patch SRV recordset": { + "$ref": "./examples/PatchSRVRecordset.json" + }, + "Patch TXT recordset": { + "$ref": "./examples/PatchTXTRecordset.json" + } + } + }, + "put": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_CreateOrUpdate", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "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 + } + }, + { + "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 overwriting 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": { + "Create A recordset": { + "$ref": "./examples/CreateOrUpdateARecordset.json" + }, + "Create A recordset with alias target resource": { + "$ref": "./examples/CreateOrUpdateARecordsetAlias.json" + }, + "Create AAAA recordset": { + "$ref": "./examples/CreateOrUpdateAAAARecordset.json" + }, + "Create CAA recordset": { + "$ref": "./examples/CreateOrUpdateCaaRecordset.json" + }, + "Create CNAME recordset": { + "$ref": "./examples/CreateOrUpdateCNAMERecordset.json" + }, + "Create MX recordset": { + "$ref": "./examples/CreateOrUpdateMXRecordset.json" + }, + "Create NS recordset": { + "$ref": "./examples/CreateOrUpdateNSRecordset.json" + }, + "Create PTR recordset": { + "$ref": "./examples/CreateOrUpdatePTRRecordset.json" + }, + "Create SOA recordset": { + "$ref": "./examples/CreateOrUpdateSOARecordset.json" + }, + "Create SRV recordset": { + "$ref": "./examples/CreateOrUpdateSRVRecordset.json" + }, + "Create TXT recordset": { + "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + } + } + }, + "delete": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Delete", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "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 + } + }, + { + "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": { + "204": { + "description": "The record set was not found." + }, + "200": { + "description": "The record set has been deleted." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete A recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete AAAA recordset": { + "$ref": "./examples/DeleteAAAARecordset.json" + }, + "Delete CAA recordset": { + "$ref": "./examples/DeleteCaaRecordset.json" + }, + "Delete CNAME recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete MX recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete NS recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete PTR recordset": { + "$ref": "./examples/DeletePTRRecordset.json" + }, + "Delete SRV recordset": { + "$ref": "./examples/DeleteSRVRecordset.json" + }, + "Delete TXT recordset": { + "$ref": "./examples/DeleteTXTRecordset.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": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "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/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 A recordset": { + "$ref": "./examples/GetARecordset.json" + }, + "Get AAAA recordset": { + "$ref": "./examples/GetAAAARecordset.json" + }, + "Get CAA recordset": { + "$ref": "./examples/GetCaaRecordset.json" + }, + "Get CNAME recordset": { + "$ref": "./examples/GetCNAMERecordset.json" + }, + "Get MX recordset": { + "$ref": "./examples/GetMXRecordset.json" + }, + "Get NS recordset": { + "$ref": "./examples/GetNSRecordset.json" + }, + "Get PTR recordset": { + "$ref": "./examples/GetPTRRecordset.json" + }, + "Get SOA recordset": { + "$ref": "./examples/GetSOARecordset.json" + }, + "Get SRV recordset": { + "$ref": "./examples/GetSRVRecordset.json" + }, + "Get TXT recordset": { + "$ref": "./examples/GetTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListByType", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the 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", + "CAA", + "CNAME", + "MX", + "NS", + "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 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": { + "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": { + "List A recordsets": { + "$ref": "./examples/ListARecordset.json" + }, + "List AAAA recordsets": { + "$ref": "./examples/ListAAAARecordset.json" + }, + "List CAA recordsets": { + "$ref": "./examples/ListCaaRecordset.json" + }, + "List CNAME recordsets": { + "$ref": "./examples/ListCNAMERecordset.json" + }, + "List MX recordsets": { + "$ref": "./examples/ListMXRecordset.json" + }, + "List NS recordsets": { + "$ref": "./examples/ListNSRecordset.json" + }, + "List PTR recordsets": { + "$ref": "./examples/ListPTRRecordset.json" + }, + "List SOA recordsets": { + "$ref": "./examples/ListSOARecordset.json" + }, + "List SRV recordsets": { + "$ref": "./examples/ListSRVRecordset.json" + }, + "List TXT recordsets": { + "$ref": "./examples/ListTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListByDnsZone", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the 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 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": { + "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": { + "List recordsets by zone": { + "$ref": "./examples/ListRecordSetsByZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListAllByDnsZone", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the 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 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": { + "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": { + "List recordsets by zone": { + "$ref": "./examples/ListRecordSetsByZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}": { + "put": { + "tags": [ + "Zones" + ], + "operationId": "Zones_CreateOrUpdate", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Zone" + }, + "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 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", + "in": "header", + "required": false, + "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": { + "200": { + "description": "The DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "201": { + "description": "The DNS zone has been created.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create zone": { + "$ref": "./examples/CreateOrUpdateZone.json" + } + } + }, + "delete": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Delete", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the 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 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": { + "204": { + "description": "The DNS zone was not found." + }, + "202": { + "description": "The DNS zone delete operation has been accepted and will complete asynchronously." + }, + "200": { + "description": "The DNS zone has been deleted." + }, + "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 zone": { + "$ref": "./examples/DeleteZone.json" + } + } + }, + "get": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Get", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get zone": { + "$ref": "./examples/GetZone.json" + } + } + }, + "patch": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Update", + "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." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ZoneUpdate" + }, + "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 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": { + "200": { + "description": "The DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Patch zone": { + "$ref": "./examples/PatchZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones": { + "get": { + "tags": [ + "Zones" + ], + "operationId": "Zones_ListByResourceGroup", + "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." + }, + { + "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/ZoneListResult" + } + }, + "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": { + "List zones by resource group": { + "$ref": "./examples/ListZonesByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference": { + "post": { + "operationId": "DnsResourceReference_GetByTargetResources", + "description": "Returns the DNS records specified by the referencing targetResourceIds.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DnsResourceReferenceRequest" + }, + "description": "Properties for dns resource reference request." + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/DnsResourceReferenceResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List zones by resource group": { + "$ref": "./examples/GetDnsResourceReference.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones": { + "get": { + "tags": [ + "Zones" + ], + "operationId": "Zones_List", + "description": "Lists the 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 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/ZoneListResult" + } + }, + "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": { + "List zones by subscription": { + "$ref": "./examples/ListZonesBySubscription.json" + } + } + } + } + }, + "definitions": { + "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." + }, + "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." + }, + "NsRecord": { + "properties": { + "nsdname": { + "type": "string", + "description": "The name server name for this NS record." + } + }, + "description": "An NS record." + }, + "PtrRecord": { + "properties": { + "ptrdname": { + "type": "string", + "description": "The PTR target domain name for this PTR record." + } + }, + "description": "A PTR 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." + }, + "CnameRecord": { + "properties": { + "cname": { + "type": "string", + "description": "The canonical name for this CNAME record." + } + }, + "description": "A CNAME 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", + "x-ms-client-name": "minimumTtl", + "description": "The minimum value for this SOA record. By convention this is used to determine the negative caching duration." + } + }, + "description": "An SOA record." + }, + "CaaRecord": { + "properties": { + "flags": { + "type": "integer", + "format": "int32", + "description": "The flags for this CAA record as an integer between 0 and 255." + }, + "tag": { + "type": "string", + "description": "The tag for this CAA record." + }, + "value": { + "type": "string", + "description": "The value for this CAA record." + } + }, + "description": "A CAA 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 + }, + "provisioningState": { + "type": "string", + "description": "provisioning State of the record set.", + "readOnly": true + }, + "targetResource": { + "$ref": "#/definitions/SubResource", + "description": "A reference to an azure resource from where the dns resource value is taken." + }, + "ARecords": { + "type": "array", + "items": { + "$ref": "#/definitions/ARecord" + }, + "description": "The list of A records in the record set." + }, + "AAAARecords": { + "type": "array", + "x-ms-client-name": "AaaaRecords", + "items": { + "$ref": "#/definitions/AaaaRecord" + }, + "description": "The list of AAAA records in the record set." + }, + "MXRecords": { + "type": "array", + "x-ms-client-name": "MxRecords", + "items": { + "$ref": "#/definitions/MxRecord" + }, + "description": "The list of MX records in the record set." + }, + "NSRecords": { + "type": "array", + "x-ms-client-name": "NsRecords", + "items": { + "$ref": "#/definitions/NsRecord" + }, + "description": "The list of NS records in the record set." + }, + "PTRRecords": { + "type": "array", + "x-ms-client-name": "PtrRecords", + "items": { + "$ref": "#/definitions/PtrRecord" + }, + "description": "The list of PTR records in the record set." + }, + "SRVRecords": { + "type": "array", + "x-ms-client-name": "SrvRecords", + "items": { + "$ref": "#/definitions/SrvRecord" + }, + "description": "The list of SRV records in the record set." + }, + "TXTRecords": { + "type": "array", + "x-ms-client-name": "TxtRecords", + "items": { + "$ref": "#/definitions/TxtRecord" + }, + "description": "The list of TXT records in the record set." + }, + "CNAMERecord": { + "$ref": "#/definitions/CnameRecord", + "x-ms-client-name": "CnameRecord", + "description": "The CNAME record in the record set." + }, + "SOARecord": { + "$ref": "#/definitions/SoaRecord", + "x-ms-client-name": "SoaRecord", + "description": "The SOA record in the record set." + }, + "caaRecords": { + "type": "array", + "x-ms-client-name": "CaaRecords", + "items": { + "$ref": "#/definitions/CaaRecord" + }, + "description": "The list of CAA 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." + } + }, + "description": "Describes a DNS record set (a collection of DNS records with the same name and type).", + "x-ms-azure-resource": true + }, + "RecordSetUpdateParameters": { + "properties": { + "RecordSet": { + "$ref": "#/definitions/RecordSet", + "description": "Specifies information about the record set being updated." + } + }, + "description": "Parameters supplied to update a record set." + }, + "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." + }, + "DelegationSignerInfo": { + "properties": { + "digestAlgorithmType": { + "type": "integer", + "format": "int64", + "description": "The digest algorithm type." + }, + "digestValue": { + "type": "string", + "description": "The digest value." + }, + "record": { + "type": "string", + "description": "The record." + } + }, + "description": "The delegation signer info." + }, + "SigningKey": { + "properties": { + "delegationSignerInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DelegationSignerInfo" + }, + "description": "The delegation signer info." + }, + "flags": { + "type": "integer", + "format": "int64", + "description": "The flags." + }, + "keyTag": { + "type": "integer", + "format": "int64", + "description": "The key tag." + }, + "protocol": { + "type": "integer", + "format": "int64", + "description": "The protocol." + }, + "publicKey": { + "type": "string", + "description": "The public key." + }, + "securityAlgorithmType": { + "type": "integer", + "format": "int64", + "description": "The signing algorithm." + } + }, + "description": "Represents the signing key." + }, + "DnssecProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning State of the dnssec config.", + "readOnly": true + }, + "signingKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/SigningKey" + }, + "description": "The list of signing keys.", + "readOnly": true + } + }, + "description": "Represents the DNSSEC properties." + }, + "DnssecConfig": { + "properties": { + "properties": { + "$ref": "#/definitions/DnssecProperties", + "x-ms-client-flatten": true, + "description": "The DNSSEC properties.", + "readOnly": true + }, + "id": { + "type": "string", + "description": "The ID of the DNSSEC config.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the DNSSEC config.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the DNSSEC config.", + "readOnly": true + }, + "etag": { + "type": "string", + "description": "The etag of the DNSSEC config." + } + }, + "description": "Represents the DNSSEC configuration." + }, + "DnssecConfigListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DnssecConfig" + }, + "description": "Information about the DNSSEC configs in the response." + } + }, + "description": "The response to a DNSSEC config List operation." + }, + "ZoneProperties": { + "properties": { + "maxNumberOfRecordSets": { + "type": "integer", + "format": "int64", + "description": "The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "maxNumberOfRecordsPerRecordSet": { + "type": "integer", + "format": "int64", + "description": "The maximum number of records per record set that can be created in this 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 DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "nameServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "zoneType": { + "type": "string", + "enum": [ + "Public", + "Private" + ], + "x-ms-enum": { + "name": "ZoneType", + "modelAsString": false + }, + "default": "Public", + "description": "The type of this DNS zone (Public or Private)." + }, + "registrationVirtualNetworks": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private." + }, + "resolutionVirtualNetworks": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private." + }, + "signingKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/SigningKey" + }, + "description": "The list of signing keys.", + "readOnly": true + } + }, + "description": "Represents the properties of the zone." + }, + "Zone": { + "properties": { + "etag": { + "type": "string", + "description": "The etag of the zone." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ZoneProperties", + "description": "The properties of the zone." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a DNS zone." + }, + "ZoneUpdate": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Describes a request to update a DNS zone." + }, + "ZoneListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Zone" + }, + "description": "Information about the DNS zones." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response to a Zone List or ListAll operation." + }, + "DnsResourceReferenceRequest": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DnsResourceReferenceRequestProperties", + "description": "The properties of the Resource Reference Request." + } + }, + "description": "Represents the properties of the Dns Resource Reference Request." + }, + "DnsResourceReferenceRequestProperties": { + "properties": { + "targetResources": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "A list of references to azure resources for which referencing dns records need to be queried." + } + }, + "description": "Represents the properties of the Dns Resource Reference Request." + }, + "DnsResourceReferenceResult": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DnsResourceReferenceResultProperties", + "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request." + } + }, + "description": "Represents the properties of the Dns Resource Reference Result." + }, + "DnsResourceReferenceResultProperties": { + "properties": { + "dnsResourceReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/DnsResourceReference" + }, + "description": "The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request" + } + }, + "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request." + }, + "DnsResourceReference": { + "properties": { + "dnsResources": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "A list of dns Records " + }, + "targetResource": { + "$ref": "#/definitions/SubResource", + "description": "A reference to an azure resource from where the dns resource value is taken." + } + }, + "description": "Represents a single Azure resource and its referencing DNS records." + }, + "Resource": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "required": [ + "location" + ], + "description": "Common properties of an Azure Resource Manager resource" + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id." + } + }, + "description": "A reference to a another resource" + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Cloud error body." + } + }, + "description": "An error response from the service." + }, + "CloudErrorBody": { + "type": "object", + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + "ZoneNameParameter": { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Specifies the API version." + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json new file mode 100644 index 000000000000..37eaed66add4 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json new file mode 100644 index 000000000000..cf98d27e4972 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json new file mode 100644 index 000000000000..773d9fdca8f3 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json new file mode 100644 index 000000000000..066cd00e9163 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json new file mode 100644 index 000000000000..42d7c2e26521 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json new file mode 100644 index 000000000000..6f65cf539fd1 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json new file mode 100644 index 000000000000..fe62a6117a64 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json new file mode 100644 index 000000000000..c97464d205c0 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json new file mode 100644 index 000000000000..d4652ed11a14 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "nameServers": [], + "zoneType": "Private", + "registrationVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + } + ], + "resolutionVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" + } + ] + }, + "tags": { + "key1": "value1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "nameServers": [], + "zoneType": "Private", + "registrationVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + } + ], + "resolutionVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" + } + ] + }, + "tags": { + "key1": "value1" + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json new file mode 100644 index 000000000000..1c76ab46a37a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "@", + "recordType": "SOA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json new file mode 100644 index 000000000000..6f6d59b48208 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json new file mode 100644 index 000000000000..f629e5e8acf7 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json new file mode 100644 index 000000000000..a9108939d82d --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "zoneType": "Public" + }, + "tags": { + "key1": "value1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "zoneType": "Public" + }, + "tags": { + "key1": "value1" + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json new file mode 100644 index 000000000000..e17f4f7730d2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json new file mode 100644 index 000000000000..a7c1324bcaaf --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json new file mode 100644 index 000000000000..274c2f4f7b24 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json new file mode 100644 index 000000000000..876d2ccd439f --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json new file mode 100644 index 000000000000..64c8971c353a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json new file mode 100644 index 000000000000..e0e0cc585211 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json new file mode 100644 index 000000000000..d6235f759b6b --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json new file mode 100644 index 000000000000..0f20f2704e02 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json new file mode 100644 index 000000000000..5ddc359faf2d --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json new file mode 100644 index 000000000000..a8df0d42d861 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + } + }, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json new file mode 100644 index 000000000000..7c4108312121 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json new file mode 100644 index 000000000000..639bfab72809 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json new file mode 100644 index 000000000000..9d00d0ac18f8 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json new file mode 100644 index 000000000000..3bb007656609 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json new file mode 100644 index 000000000000..de416ba6cef1 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "targetResources": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "dnsResourceReferences": [ + { + "dnsResources": [ + { + "id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.network/dnszones/hydratest.dnszone.com5989/a/hydratestdnsrec9310" + } + ], + "targetResource": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json new file mode 100644 index 000000000000..e9f411425df4 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json new file mode 100644 index 000000000000..44406b0f18d4 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json new file mode 100644 index 000000000000..66f735ae3b6a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json new file mode 100644 index 000000000000..fd98d47679b2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "@", + "recordType": "SOA" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json new file mode 100644 index 000000000000..92026e77314b --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json new file mode 100644 index 000000000000..068df7b98620 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json new file mode 100644 index 000000000000..d6d6ad4321d3 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ] + }, + "tags": { + "key1": "value1" + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json new file mode 100644 index 000000000000..1a22fbdae843 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "AAAA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json new file mode 100644 index 000000000000..ccf1300d24aa --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "A" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json new file mode 100644 index 000000000000..e3d709a0695d --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "CNAME" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json new file mode 100644 index 000000000000..73d9fb9bea1e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "CAA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json new file mode 100644 index 000000000000..f0a1d0bfcce1 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "MX" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json new file mode 100644 index 000000000000..e77292a1997f --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "NS" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json new file mode 100644 index 000000000000..f87176b40c7f --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "PTR" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json new file mode 100644 index 000000000000..2b71d36c2b75 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record2", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record2", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record2.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json new file mode 100644 index 000000000000..cfbe07674b83 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "SOA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json new file mode 100644 index 000000000000..369869989bf1 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "SRV" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json new file mode 100644 index 000000000000..0cdb55ca5da8 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "recordType": "TXT" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json new file mode 100644 index 000000000000..e6b494cfd9b8 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ] + }, + "tags": { + "key1": "value1" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone2", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone2", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 300, + "nameServers": [ + "ns1-02.azure-dns.com", + "ns2-02.azure-dns.net", + "ns3-02.azure-dns.org", + "ns4-02.azure-dns.info" + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json new file mode 100644 index 000000000000..9806384448a3 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2018-05-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ] + }, + "tags": { + "key1": "value1" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/dnsZones/zone2", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone2", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 300, + "nameServers": [ + "ns1-02.azure-dns.com", + "ns2-02.azure-dns.net", + "ns3-02.azure-dns.org", + "ns4-02.azure-dns.info" + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json new file mode 100644 index 000000000000..0558840ead52 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json new file mode 100644 index 000000000000..d6b5a30ac101 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json new file mode 100644 index 000000000000..d8f15fd8a387 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json new file mode 100644 index 000000000000..9b877c950b66 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json new file mode 100644 index 000000000000..a44192f22bae --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json new file mode 100644 index 000000000000..2618c3387703 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json new file mode 100644 index 000000000000..bb1aee28df8c --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json new file mode 100644 index 000000000000..6535a44927bc --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "@", + "recordType": "SOA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json new file mode 100644 index 000000000000..758222e9224a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json new file mode 100644 index 000000000000..7db56ca06e5f --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json new file mode 100644 index 000000000000..447ef16d60f1 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-05-01", + "subscriptionId": "subid", + "parameters": { + "tags": { + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "etag": "00000000-0000-0000-0000-000000000000", + "location": "global", + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 2, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ] + }, + "tags": { + "key2": "value2" + } + } + } + } +} From ea5658801a801f16319aa938612f1d8a81e5f21e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Tue, 25 Apr 2023 19:59:10 -0700 Subject: [PATCH 02/54] Add RelativeRecordSetNameParameter to remove duplicate configs --- .../preview/2023-07-01-preview/dns.json | 312 ++++++------------ 1 file changed, 104 insertions(+), 208 deletions(-) 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", From f97bd65a09ee611d77c9c6080ecc4cac2c296a01 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Tue, 25 Apr 2023 20:04:56 -0700 Subject: [PATCH 03/54] Add RecordTypeParameter to remove duplicate configs --- .../preview/2023-07-01-preview/dns.json | 138 +++++------------- 1 file changed, 33 insertions(+), 105 deletions(-) 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", From 15915cc47cd30727adf83d8f9613c771ffeeb5dc Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 26 Apr 2023 11:20:24 -0700 Subject: [PATCH 04/54] Revert "Add RecordTypeParameter to remove duplicate configs" This reverts commit f97bd65a09ee611d77c9c6080ecc4cac2c296a01. --- .../preview/2023-07-01-preview/dns.json | 138 +++++++++++++----- 1 file changed, 105 insertions(+), 33 deletions(-) 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 52579818f410..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 @@ -365,8 +365,27 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/RecordTypeParameter", - "description": "The type of DNS record in this record set." + "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 + } }, { "name": "parameters", @@ -456,8 +475,27 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$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": "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 + } }, { "name": "parameters", @@ -564,8 +602,27 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$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": "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 + } }, { "name": "If-Match", @@ -643,8 +700,27 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/RecordTypeParameter", - "description": "The type of DNS record in this record set." + "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 + } } ], "responses": { @@ -716,8 +792,27 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/RecordTypeParameter", - "description": "The type of record sets to enumerate." + "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 + } }, { "name": "$top", @@ -1986,29 +2081,6 @@ "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", From 3331ecd9fe2a1439daecf8b1eac436293099ba07 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 26 Apr 2023 13:59:16 -0700 Subject: [PATCH 05/54] Add Definitions for new record types --- .../preview/2023-07-01-preview/dns.json | 137 +++++++++++++++++- 1 file changed, 132 insertions(+), 5 deletions(-) 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..44143ace97e0 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 @@ -380,7 +380,10 @@ "PTR", "SOA", "SRV", - "TXT" + "TXT", + "TLSA", + "DS", + "NAPTR" ], "x-ms-enum": { "name": "RecordType", @@ -490,7 +493,10 @@ "PTR", "SOA", "SRV", - "TXT" + "TXT", + "TLSA", + "DS", + "NAPTR" ], "x-ms-enum": { "name": "RecordType", @@ -617,7 +623,10 @@ "PTR", "SOA", "SRV", - "TXT" + "TXT", + "TLSA", + "DS", + "NAPTR" ], "x-ms-enum": { "name": "RecordType", @@ -715,7 +724,10 @@ "PTR", "SOA", "SRV", - "TXT" + "TXT", + "TLSA", + "DS", + "NAPTR" ], "x-ms-enum": { "name": "RecordType", @@ -807,7 +819,10 @@ "PTR", "SOA", "SRV", - "TXT" + "TXT", + "TLSA", + "DS", + "NAPTR" ], "x-ms-enum": { "name": "RecordType", @@ -1517,6 +1532,94 @@ }, "description": "A CAA record." }, + "Digest": { + "properties": { + "algorithmType": { + "type": "string", + "format": "byte", + "description": "The digest algorithm type." + }, + "value": { + "type": "string", + "description": "The digest value." + } + }, + "description": "A digest." + }, + "DsRecord": { + "properties": { + "keyTag": { + "type": "integer", + "format": "int32", + "description": "The key tag." + }, + "algorithm": { + "type": "string", + "format": "byte", + "description": "The algorithm." + }, + "digest": { + "$ref": "#/definitions/Digest", + "description": "The digest." + } + }, + "description": "A DS record." + }, + "TlsaRecord": { + "properties": { + "usage": { + "type": "string", + "format": "byte", + "description": "The usage." + }, + "selector": { + "type": "string", + "format": "byte", + "description": "The selector." + }, + "matchingType": { + "type": "string", + "format": "byte", + "description": "The matchingType." + }, + "certAssociationData": { + "type": "string", + "description": "The certAssociationData." + } + }, + "description": "A TLSA record." + }, + "NaptrRecord": { + "properties": { + "order": { + "type": "integer", + "format": "int32", + "description": "The order." + }, + "preference": { + "type": "integer", + "format": "int32", + "description": "The preference." + }, + "flags": { + "type": "string", + "description": "The flags." + }, + "services": { + "type": "string", + "description": "The services." + }, + "regexp": { + "type": "string", + "description": "The regexp." + }, + "replacement": { + "type": "string", + "description": "The replacement." + } + }, + "description": "A NAPTR record." + }, "RecordSetProperties": { "properties": { "metadata": { @@ -1617,6 +1720,30 @@ "$ref": "#/definitions/CaaRecord" }, "description": "The list of CAA records in the record set." + }, + "DSRecords": { + "type": "array", + "x-ms-client-name": "DsRecords", + "items": { + "$ref": "#/definitions/DsRecord" + }, + "description": "The list of DS records in the record set." + }, + "TLSARecords": { + "type": "array", + "x-ms-client-name": "TlsaRecords", + "items": { + "$ref": "#/definitions/TlsaRecord" + }, + "description": "The list of TLSA records in the record set." + }, + "NAPTRRecords": { + "type": "array", + "x-ms-client-name": "NaptrRecords", + "items": { + "$ref": "#/definitions/NaptrRecord" + }, + "description": "The list of NAPTR records in the record set." } }, "description": "Represents the properties of the records in the record set." From 68d4d83d8f355b3c7dfdb578f75e64e1d2d53a7a Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 26 Apr 2023 15:47:56 -0700 Subject: [PATCH 06/54] Add placeholders for tests --- .../preview/2023-07-01-preview/dns.json | 160 +++++------------- .../examples/CreateOrUpdateDSRecordset.json | 0 .../examples/CreateOrUpdateDnssecConfig.json | 0 .../CreateOrUpdateNAPTRRecordset.json | 0 .../examples/CreateOrUpdateTLSARecordset.json | 0 .../examples/DeleteDSRecordset.json | 0 .../examples/DeleteDnssecConfig.json | 0 .../examples/DeleteNAPTRRecordset.json | 0 .../examples/DeleteTLSARecordset.json | 0 .../examples/GetDSRecordset.json | 0 .../examples/GetDnssecConfig.json | 0 .../examples/GetNAPTRRecordset.json | 0 .../examples/GetTLSARecordset.json | 0 .../examples/ListDSRecordset.json | 0 .../examples/ListDnssecConfigsByZone.json | 0 .../examples/ListNAPTRRecordset.json | 0 .../examples/ListTLSARecordset.json | 0 .../examples/PatchDSRecordset.json | 0 .../examples/PatchNAPTRRecordset.json | 0 .../examples/PatchTLSARecordset.json | 0 20 files changed, 44 insertions(+), 116 deletions(-) create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json create mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json 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 44143ace97e0..aa80bf4c0c23 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 @@ -93,38 +93,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Create A recordset": { - "$ref": "./examples/CreateOrUpdateARecordset.json" - }, - "Create A recordset with alias target resource": { - "$ref": "./examples/CreateOrUpdateARecordsetAlias.json" - }, - "Create AAAA recordset": { - "$ref": "./examples/CreateOrUpdateAAAARecordset.json" - }, - "Create CAA recordset": { - "$ref": "./examples/CreateOrUpdateCaaRecordset.json" - }, - "Create CNAME recordset": { - "$ref": "./examples/CreateOrUpdateCNAMERecordset.json" - }, - "Create MX recordset": { - "$ref": "./examples/CreateOrUpdateMXRecordset.json" - }, - "Create NS recordset": { - "$ref": "./examples/CreateOrUpdateNSRecordset.json" - }, - "Create PTR recordset": { - "$ref": "./examples/CreateOrUpdatePTRRecordset.json" - }, - "Create SOA recordset": { - "$ref": "./examples/CreateOrUpdateSOARecordset.json" - }, - "Create SRV recordset": { - "$ref": "./examples/CreateOrUpdateSRVRecordset.json" - }, - "Create TXT recordset": { - "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + "Create DnssecConfig": { + "$ref": "./examples/CreateOrUpdateDnssecConfig.json" } } }, @@ -175,32 +145,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete A recordset": { - "$ref": "./examples/DeleteARecordset.json" - }, - "Delete AAAA recordset": { - "$ref": "./examples/DeleteAAAARecordset.json" - }, - "Delete CAA recordset": { - "$ref": "./examples/DeleteCaaRecordset.json" - }, - "Delete CNAME recordset": { - "$ref": "./examples/DeleteARecordset.json" - }, - "Delete MX recordset": { - "$ref": "./examples/DeleteARecordset.json" - }, - "Delete NS recordset": { - "$ref": "./examples/DeleteARecordset.json" - }, - "Delete PTR recordset": { - "$ref": "./examples/DeletePTRRecordset.json" - }, - "Delete SRV recordset": { - "$ref": "./examples/DeleteSRVRecordset.json" - }, - "Delete TXT recordset": { - "$ref": "./examples/DeleteTXTRecordset.json" + "Delete DnssecConfig": { + "$ref": "./examples/DeleteDnssecConfig.json" } } }, @@ -239,35 +185,8 @@ } }, "x-ms-examples": { - "Get A recordset": { - "$ref": "./examples/GetARecordset.json" - }, - "Get AAAA recordset": { - "$ref": "./examples/GetAAAARecordset.json" - }, - "Get CAA recordset": { - "$ref": "./examples/GetCaaRecordset.json" - }, - "Get CNAME recordset": { - "$ref": "./examples/GetCNAMERecordset.json" - }, - "Get MX recordset": { - "$ref": "./examples/GetMXRecordset.json" - }, - "Get NS recordset": { - "$ref": "./examples/GetNSRecordset.json" - }, - "Get PTR recordset": { - "$ref": "./examples/GetPTRRecordset.json" - }, - "Get SOA recordset": { - "$ref": "./examples/GetSOARecordset.json" - }, - "Get SRV recordset": { - "$ref": "./examples/GetSRVRecordset.json" - }, - "Get TXT recordset": { - "$ref": "./examples/GetTXTRecordset.json" + "Get DnssecConfig": { + "$ref": "./examples/GetDnssecConfig.json" } } } @@ -308,35 +227,8 @@ } }, "x-ms-examples": { - "List A recordsets": { - "$ref": "./examples/ListARecordset.json" - }, - "List AAAA recordsets": { - "$ref": "./examples/ListAAAARecordset.json" - }, - "List CAA recordsets": { - "$ref": "./examples/ListCaaRecordset.json" - }, - "List CNAME recordsets": { - "$ref": "./examples/ListCNAMERecordset.json" - }, - "List MX recordsets": { - "$ref": "./examples/ListMXRecordset.json" - }, - "List NS recordsets": { - "$ref": "./examples/ListNSRecordset.json" - }, - "List PTR recordsets": { - "$ref": "./examples/ListPTRRecordset.json" - }, - "List SOA recordsets": { - "$ref": "./examples/ListSOARecordset.json" - }, - "List SRV recordsets": { - "$ref": "./examples/ListSRVRecordset.json" - }, - "List TXT recordsets": { - "$ref": "./examples/ListTXTRecordset.json" + "List DnssecConfigs": { + "$ref": "./examples/ListDnssecConfigsByZone.json" } } } @@ -582,6 +474,15 @@ }, "Create TXT recordset": { "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + }, + "Create DS recordset": { + "$ref": "./examples/CreateOrUpdateDSRecordset.json" + }, + "Create TLSA recordset": { + "$ref": "./examples/CreateOrUpdateTLSARecordset.json" + }, + "Create NAPTR recordset": { + "$ref": "./examples/CreateOrUpdateNAPTRRecordset.json" } } }, @@ -683,6 +584,15 @@ }, "Delete TXT recordset": { "$ref": "./examples/DeleteTXTRecordset.json" + }, + "Delete DS recordset": { + "$ref": "./examples/DeleteDSRecordset.json" + }, + "Delete TLSA recordset": { + "$ref": "./examples/DeleteTLSARecordset.json" + }, + "Delete NAPTR recordset": { + "$ref": "./examples/DeleteNAPTRRecordset.json" } } }, @@ -779,6 +689,15 @@ }, "Get TXT recordset": { "$ref": "./examples/GetTXTRecordset.json" + }, + "Get DS recordset": { + "$ref": "./examples/GetDSRecordset.json" + }, + "Get TLSA recordset": { + "$ref": "./examples/GetTLSARecordset.json" + }, + "Get NAPTR recordset": { + "$ref": "./examples/GetNAPTRRecordset.json" } } } @@ -892,6 +811,15 @@ }, "List TXT recordsets": { "$ref": "./examples/ListTXTRecordset.json" + }, + "List DS recordsets": { + "$ref": "./examples/ListDSRecordset.json" + }, + "List TLSA recordsets": { + "$ref": "./examples/ListTLSARecordset.json" + }, + "List NAPTR recordsets": { + "$ref": "./examples/ListNAPTRRecordset.json" } } } diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json new file mode 100644 index 000000000000..e69de29bb2d1 From 1f4c7b09fe2ccf24fd1427bb32e39f0f818a385e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 27 Apr 2023 17:12:10 -0700 Subject: [PATCH 07/54] Add examples for dnssecconfigs --- .../examples/CreateOrUpdateDnssecConfig.json | 49 +++++++++++++++++++ .../examples/DeleteDnssecConfig.json | 17 +++++++ .../examples/GetDnssecConfig.json | 45 +++++++++++++++++ .../examples/ListDnssecConfigsByZone.json | 49 +++++++++++++++++++ 4 files changed, 160 insertions(+) diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json index e69de29bb2d1..ba53639f4041 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "provisioningState": "Creating", + "signingKeys": [] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "provisioningState": "Creating", + "signingKeys": [] + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "provisioningState": "Creating", + "signingKeys": [] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json index e69de29bb2d1..34e06ecdb34b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + } + }, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json index e69de29bb2d1..40f1c6cdcf48 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "provisioningState": "Succeeded", + "signingKeys": [ + { + "delegationSignerInfo": [], + "flags": 256, + "keyTag": 37721, + "protocol": 3, + "publicKey": "publicKey1", + "securityAlgorithmType": 13 + }, + { + "delegationSignerInfo": [ + { + "digestAlgorithmType": 2, + "digestValue": "digestValue1", + "record": "11920 13 2 digestValue1" + } + ], + "flags": 257, + "keyTag": 11920, + "protocol": 3, + "publicKey": "publicKey2", + "securityAlgorithmType": 13 + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json index e69de29bb2d1..7ce6f74763f6 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "provisioningState": "Succeeded", + "signingKeys": [ + { + "delegationSignerInfo": [], + "flags": 256, + "keyTag": 37721, + "protocol": 3, + "publicKey": "publicKey1", + "securityAlgorithmType": 13 + }, + { + "delegationSignerInfo": [ + { + "digestAlgorithmType": 2, + "digestValue": "digestValue1", + "record": "11920 13 2 digestValue1" + } + ], + "flags": 257, + "keyTag": 11920, + "protocol": 3, + "publicKey": "publicKey2", + "securityAlgorithmType": 13 + } + ] + } + } + ] + } + } + } +} From e6728ccb5f0376b36e1eb70c62773bf4e90a7ac5 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 27 Apr 2023 17:21:17 -0700 Subject: [PATCH 08/54] Reference Patch examples for DS, TLSA and NAPTR --- .../preview/2023-07-01-preview/dns.json | 9 +++++++++ 1 file changed, 9 insertions(+) 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 aa80bf4c0c23..96166ecaec1a 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 @@ -344,6 +344,15 @@ }, "Patch TXT recordset": { "$ref": "./examples/PatchTXTRecordset.json" + }, + "Patch DS recordset": { + "$ref": "./examples/PatchDSRecordset.json" + }, + "Patch TLSA recordset": { + "$ref": "./examples/PatchTLSARecordset.json" + }, + "Patch NAPTR recordset": { + "$ref": "./examples/PatchNAPTRRecordset.json" } } }, From a4bab00439ac9c625bd83d43ac8c0510c3e73de9 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 27 Apr 2023 17:52:03 -0700 Subject: [PATCH 09/54] Add delete api examples for ds, naptr and tlsa recordsets --- .../examples/DeleteDSRecordset.json | 14 ++++++++++++++ .../examples/DeleteNAPTRRecordset.json | 14 ++++++++++++++ .../examples/DeleteTLSARecordset.json | 14 ++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json index e69de29bb2d1..b0bdb0d8224f 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "DS" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json index e69de29bb2d1..1e270f06ba86 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NAPTR" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json index e69de29bb2d1..ee8bc6c97184 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TLSA" + }, + "responses": { + "200": {}, + "204": {} + } +} From e3ac35321ddace93fd899294d1b8febbf7a272f1 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 27 Apr 2023 18:16:23 -0700 Subject: [PATCH 10/54] Add examples for NAPTR recordset --- .../CreateOrUpdateNAPTRRecordset.json | 80 +++++++++++++++++++ .../examples/GetNAPTRRecordset.json | 37 +++++++++ .../examples/ListNAPTRRecordset.json | 41 ++++++++++ .../examples/PatchNAPTRRecordset.json | 44 ++++++++++ 4 files changed, 202 insertions(+) diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json index e69de29bb2d1..c04e87cb3134 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NAPTR", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "U", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "U", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "U", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json index e69de29bb2d1..78ff0a3b839f 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NAPTR" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "U", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json index e69de29bb2d1..e0c486e87e2b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "recordType": "NAPTR" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "u", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json index e69de29bb2d1..f7ea25fc5829 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NAPTR", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NAPTRRecords": [ + { + "order": 100, + "preference": 10, + "flags": "U", + "services": "E2U+sip", + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "" + } + ] + } + } + } + } +} From 82dfb131ed9b91f62535146195b11412dbbe44e9 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 27 Apr 2023 19:07:57 -0700 Subject: [PATCH 11/54] Add examples for DS and TLSA recordset --- .../examples/CreateOrUpdateDSRecordset.json | 80 +++++++++++++++++++ .../examples/CreateOrUpdateTLSARecordset.json | 74 +++++++++++++++++ .../examples/GetDSRecordset.json | 37 +++++++++ .../examples/GetTLSARecordset.json | 35 ++++++++ .../examples/ListDSRecordset.json | 41 ++++++++++ .../examples/ListTLSARecordset.json | 39 +++++++++ .../examples/PatchDSRecordset.json | 44 ++++++++++ .../examples/PatchTLSARecordset.json | 42 ++++++++++ 8 files changed, 392 insertions(+) diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json index e69de29bb2d1..9efa9b358a8d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "DS", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "name": "record1", + "type": "Microsoft.Network/dnszones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "metadata": { + "key1": "value1" + }, + "fqdn": "record1.zone1", + "TTL": 3600, + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "name": "record1", + "type": "Microsoft.Network/dnszones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "metadata": { + "key1": "value1" + }, + "fqdn": "record1.zone1", + "TTL": 3600, + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json index e69de29bb2d1..c302a5bf51ec 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TLSA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json index e69de29bb2d1..959b49496848 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "DS" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json index e69de29bb2d1..75c51da1ef29 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TLSA" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json index e69de29bb2d1..585aaf73221c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "recordType": "DS" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json index e69de29bb2d1..f4f31dd4043f 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "recordType": "TLSA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json index e69de29bb2d1..863e110e42b9 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "DS", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ] + } + } + } + } +} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json index e69de29bb2d1..5266a08346cf 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2023-07-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TLSA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TLSARecords": [ + { + "usage": 3, + "selector": 1, + "matchingType": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + } + ] + } + } + } + } +} From a3a5e46fd1f68bc91c553753fcf870804c4a8503 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 1 May 2023 14:14:59 -0700 Subject: [PATCH 12/54] Add 2023-07-preview version for dns in Autorest configs --- .../dns/resource-manager/readme.cli.md | 6 ++ .../dns/resource-manager/readme.go.md | 10 ++ .../dns/resource-manager/readme.java.md | 57 ++++++++++++ specification/dns/resource-manager/readme.md | 92 +++++++------------ .../dns/resource-manager/readme.python.md | 11 +++ .../dns/resource-manager/readme.ruby.md | 11 +++ 6 files changed, 128 insertions(+), 59 deletions(-) create mode 100644 specification/dns/resource-manager/readme.java.md diff --git a/specification/dns/resource-manager/readme.cli.md b/specification/dns/resource-manager/readme.cli.md index f9d7f22c0541..221aef577c49 100644 --- a/specification/dns/resource-manager/readme.cli.md +++ b/specification/dns/resource-manager/readme.cli.md @@ -62,4 +62,10 @@ cli: operationGroup: 'zones' operation: 'createOrUpdate' hidden: true + - select: 'parameter' + where: + operationGroup: 'dnssecConfigs' + parameter: 'parameters' + set: + name: 'dnssec_configs' ``` diff --git a/specification/dns/resource-manager/readme.go.md b/specification/dns/resource-manager/readme.go.md index c8bf14aedc97..1a4213afdeae 100644 --- a/specification/dns/resource-manager/readme.go.md +++ b/specification/dns/resource-manager/readme.go.md @@ -21,6 +21,7 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: + - tag: package-2023-07-preview - tag: package-2018-05 - tag: package-2018-03-preview - tag: package-2017-10 @@ -29,6 +30,15 @@ batch: - tag: package-2015-05-preview ``` +### Tag: package-2023-07-preview and go + +These settings apply only when `--tag=package-2023-07-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2023-07-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-07-01-preview/$(namespace) +``` + ### Tag: package-2018-05 and go These settings apply only when `--tag=package-2018-05 --go` is specified on the command line. diff --git a/specification/dns/resource-manager/readme.java.md b/specification/dns/resource-manager/readme.java.md new file mode 100644 index 000000000000..2c267ad7e5de --- /dev/null +++ b/specification/dns/resource-manager/readme.java.md @@ -0,0 +1,57 @@ +## 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.dns +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-dns +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-10 + - tag: package-2016-04 +``` + +### Tag: package-2017-10 and java + +These settings apply only when `--tag=package-2017-10 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-10' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.dns.v2017_10_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/dns/mgmt-v2017_10_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-04 and java + +These settings apply only when `--tag=package-2016-04 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2016-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.dns.v2016_04_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/dns/mgmt-v2016_04_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: profile-hybrid-2019-03-01 + +These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2019-03-01' +input-file: +- Microsoft.Network/stable/2016-04-01/dns.json +``` diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 054b935abfc3..9fa2f3981d5e 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -26,9 +26,39 @@ These are the global settings for the DNS API. ``` yaml openapi-type: arm -tag: package-2018-05 +tag: package-2023-07-preview ``` +### Tag: package-2023-07-preview + +These settings apply only when `--tag=package-2023-07-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-07-preview' +input-file: + - Microsoft.Network/preview/2023-07-01-preview/dns.json +directive: + - where: + - $.paths + suppress: + - OperationsAPIImplementation + - where: + - $.definitions.RecordSetProperties.properties.TTL + - $.definitions.RecordSetProperties.properties.ARecords + - $.definitions.RecordSetProperties.properties.AAAARecords + - $.definitions.RecordSetProperties.properties.MXRecords + - $.definitions.RecordSetProperties.properties.NSRecords + - $.definitions.RecordSetProperties.properties.PTRRecords + - $.definitions.RecordSetProperties.properties.SRVRecords + - $.definitions.RecordSetProperties.properties.TXTRecords + - $.definitions.RecordSetProperties.properties.CNAMERecord + - $.definitions.RecordSetProperties.properties.SOARecord + - $.definitions.RecordSetProperties.properties.DSRecord + - $.definitions.RecordSetProperties.properties.TLSARecord + - $.definitions.RecordSetProperties.properties.NAPTRRecord + - $.definitions.RecordSetUpdateParameters.properties.RecordSet + suppress: + - DefinitionsPropertiesNamesCamelCase +``` ### Tag: package-2018-05 @@ -57,6 +87,7 @@ directive: suppress: - DefinitionsPropertiesNamesCamelCase ``` + ### Tag: package-2018-03-preview These settings apply only when `--tag=package-2018-03-preview` is specified on the command line. @@ -182,61 +213,4 @@ See configuration in [readme.python.md](./readme.python.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.dns -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-dns -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-10 - - tag: package-2016-04 -``` - -### Tag: package-2017-10 and java - -These settings apply only when `--tag=package-2017-10 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2017-10' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.dns.v2017_10_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/dns/mgmt-v2017_10_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2016-04 and java - -These settings apply only when `--tag=package-2016-04 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2016-04' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.dns.v2016_04_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/dns/mgmt-v2016_04_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: profile-hybrid-2019-03-01 - -These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. - -``` yaml $(tag) == 'profile-hybrid-2019-03-01' -input-file: -- Microsoft.Network/stable/2016-04-01/dns.json -``` - - - +See configuration in [readme.java.md](./readme.java.md) diff --git a/specification/dns/resource-manager/readme.python.md b/specification/dns/resource-manager/readme.python.md index 1bd3a47c7bc0..dfffcdcec149 100644 --- a/specification/dns/resource-manager/readme.python.md +++ b/specification/dns/resource-manager/readme.python.md @@ -19,6 +19,7 @@ multiapi: true default-api-version: "2018-05-01" clear-output-folder: true batch: + - tag: package-2023-07-preview - tag: package-2018-05 - tag: package-2018-03-preview - tag: package-2016-04 @@ -30,6 +31,16 @@ output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/ perform-load: false ``` +### Tag: package-2023-07-preview and python + +These settings apply only when `--tag=package-2023-07-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2023-07-preview' && $(python) +namespace: azure.mgmt.dns.v2023_07_01_preview +output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2023_07_01_preview +``` + ### Tag: package-2018-05 and python These settings apply only when `--tag=package-2018-05 --python` is specified on the command line. diff --git a/specification/dns/resource-manager/readme.ruby.md b/specification/dns/resource-manager/readme.ruby.md index 566b4b37cbcc..328e1cc4bac3 100644 --- a/specification/dns/resource-manager/readme.ruby.md +++ b/specification/dns/resource-manager/readme.ruby.md @@ -12,12 +12,23 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: + - tag: package-2023-07-preview - tag: package-2018-03-preview - tag: package-2017-10 - tag: package-2017-09 - tag: package-2016-04 ``` +### Tag: package-2023-07-preview and ruby + +These settings apply only when `--tag=package-2023-07-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2023-07-preview' && $(ruby) +namespace: "Azure::Dns::Mgmt::V2023_07_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_dns/lib +``` + ### Tag: package-2018-03-preview and ruby These settings apply only when `--tag=package-2018-03-preview --ruby` is specified on the command line. From 0e371d226f60d310640a51bfdcb578e96cb9421e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 1 May 2023 16:08:41 -0700 Subject: [PATCH 13/54] Fix API version in examples --- .../examples/CreateOrUpdateAAAARecordset.json | 2 +- .../2023-07-01-preview/examples/CreateOrUpdateARecordset.json | 2 +- .../examples/CreateOrUpdateARecordsetAlias.json | 2 +- .../examples/CreateOrUpdateCNAMERecordset.json | 2 +- .../examples/CreateOrUpdateCaaRecordset.json | 2 +- .../examples/CreateOrUpdateMXRecordset.json | 2 +- .../examples/CreateOrUpdateNSRecordset.json | 2 +- .../examples/CreateOrUpdatePTRRecordset.json | 2 +- .../examples/CreateOrUpdatePrivateZone.json | 2 +- .../examples/CreateOrUpdateSOARecordset.json | 2 +- .../examples/CreateOrUpdateSRVRecordset.json | 2 +- .../examples/CreateOrUpdateTXTRecordset.json | 2 +- .../2023-07-01-preview/examples/CreateOrUpdateZone.json | 2 +- .../2023-07-01-preview/examples/DeleteAAAARecordset.json | 2 +- .../preview/2023-07-01-preview/examples/DeleteARecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteCNAMERecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteCaaRecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteMXRecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteNSRecordset.json | 2 +- .../2023-07-01-preview/examples/DeletePTRRecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteSRVRecordset.json | 2 +- .../2023-07-01-preview/examples/DeleteTXTRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/DeleteZone.json | 2 +- .../preview/2023-07-01-preview/examples/GetAAAARecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetARecordset.json | 2 +- .../2023-07-01-preview/examples/GetCNAMERecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetCaaRecordset.json | 2 +- .../2023-07-01-preview/examples/GetDnsResourceReference.json | 2 +- .../preview/2023-07-01-preview/examples/GetMXRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetNSRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetPTRRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetSOARecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetSRVRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetTXTRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/GetZone.json | 2 +- .../2023-07-01-preview/examples/ListAAAARecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListARecordset.json | 4 ++-- .../2023-07-01-preview/examples/ListCNAMERecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListCaaRecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListMXRecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListNSRecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListPTRRecordset.json | 4 ++-- .../2023-07-01-preview/examples/ListRecordSetsByZone.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListSOARecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListSRVRecordset.json | 4 ++-- .../preview/2023-07-01-preview/examples/ListTXTRecordset.json | 4 ++-- .../2023-07-01-preview/examples/ListZonesByResourceGroup.json | 4 ++-- .../2023-07-01-preview/examples/ListZonesBySubscription.json | 4 ++-- .../2023-07-01-preview/examples/PatchAAAARecordset.json | 2 +- .../preview/2023-07-01-preview/examples/PatchARecordset.json | 2 +- .../2023-07-01-preview/examples/PatchCNAMERecordset.json | 2 +- .../2023-07-01-preview/examples/PatchCaaRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/PatchMXRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/PatchNSRecordset.json | 2 +- .../2023-07-01-preview/examples/PatchPTRRecordset.json | 2 +- .../2023-07-01-preview/examples/PatchSOARecordset.json | 2 +- .../2023-07-01-preview/examples/PatchSRVRecordset.json | 2 +- .../2023-07-01-preview/examples/PatchTXTRecordset.json | 2 +- .../preview/2023-07-01-preview/examples/PatchZone.json | 2 +- 59 files changed, 72 insertions(+), 72 deletions(-) diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json index 37eaed66add4..c50b153c505b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "AAAA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json index cf98d27e4972..11826a698af1 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "A", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json index 773d9fdca8f3..453aa6269a8a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "A", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json index 066cd00e9163..6fbef49546d5 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CNAME", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json index 42d7c2e26521..b0f22f573496 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CAA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json index 6f65cf539fd1..ebb3e322da16 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "MX", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json index fe62a6117a64..d509e036c50a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "NS", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json index c97464d205c0..e9bdf4df4e10 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "0.0.127.in-addr.arpa", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "1", "recordType": "PTR", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json index d4652ed11a14..1f77b1c31bf9 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "parameters": { "location": "Global", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json index 1c76ab46a37a..25eb190db76e 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "@", "recordType": "SOA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json index 6f6d59b48208..89172d322fa9 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "SRV", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json index f629e5e8acf7..2eaa349756aa 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "TXT", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json index a9108939d82d..5962d2f1b55d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "parameters": { "location": "Global", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json index e17f4f7730d2..90d3fc0c5f37 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "AAAA" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json index a7c1324bcaaf..10160049b1a1 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "A" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json index 274c2f4f7b24..da1a5f0ac398 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CNAME" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json index 876d2ccd439f..3c2a1efb63d3 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CAA" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json index 64c8971c353a..1dd6d48a8eeb 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "MX" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json index e0e0cc585211..1ca0c2ca7bce 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "NS" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json index d6235f759b6b..d2d5c61779ec 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "0.0.127.in-addr.arpa", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "1", "recordType": "PTR" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json index 0f20f2704e02..2f9517f0036c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "SRV" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json index 5ddc359faf2d..6a4925d80705 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "TXT" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json index a8df0d42d861..34e06ecdb34b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json index 7c4108312121..627a06ea88ea 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "AAAA" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json index 639bfab72809..7e81d031a7da 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "A" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json index 9d00d0ac18f8..214c7dee5865 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CNAME" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json index 3bb007656609..c1123e7d1dc1 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CAA" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json index de416ba6cef1..dbf7814c75b8 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json index e9f411425df4..261f7c0aebb7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "MX" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json index 44406b0f18d4..be07e8f7fadb 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "NS" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json index 66f735ae3b6a..3462fd9b3622 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "0.0.127.in-addr.arpa", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "1", "recordType": "PTR" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json index fd98d47679b2..60cfc5d77ab7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "@", "recordType": "SOA" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json index 92026e77314b..79adc611dc9e 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "SRV" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json index 068df7b98620..2d2376a828d7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "TXT" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json index d6d6ad4321d3..37e1e1db4b23 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json index 1a22fbdae843..18007c613097 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "AAAA" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json index ccf1300d24aa..614a08f84464 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "A" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json index e3d709a0695d..ff0871549aa8 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "CNAME" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json index 73d9fb9bea1e..36eb4262c4da 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "CAA" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json index f0a1d0bfcce1..d9a13698eddd 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "MX" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json index e77292a1997f..c585595da7b2 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "NS" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json index f87176b40c7f..a47050a66b4c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "0.0.127.in-addr.arpa", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "PTR" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json index 2b71d36c2b75..20e396be7b3d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json @@ -2,13 +2,13 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json index cfbe07674b83..652a508e23bb 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "SOA" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json index 369869989bf1..826938bfe46c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "SRV" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json index 0cdb55ca5da8..78e21fc1d436 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json @@ -2,14 +2,14 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "recordType": "TXT" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json index e6b494cfd9b8..848743e8ed92 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json @@ -1,13 +1,13 @@ { "parameters": { "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json index 9806384448a3..8dd7740bb088 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json @@ -1,12 +1,12 @@ { "parameters": { - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid" }, "responses": { "200": { "body": { - "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2018-05-01&$skipToken=skipToken", + "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json index 0558840ead52..d11309a1fe46 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "AAAA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json index d6b5a30ac101..5662d89f9249 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "A", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json index d8f15fd8a387..e3143de2b989 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CNAME", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json index 9b877c950b66..6b8d689e23b0 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "CAA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json index a44192f22bae..746840542495 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "MX", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json index 2618c3387703..b7eeb7676e42 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "NS", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json index bb1aee28df8c..f5ab3dd03751 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "0.0.127.in-addr.arpa", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "1", "recordType": "PTR", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json index 6535a44927bc..c67746f6125c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "@", "recordType": "SOA", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json index 758222e9224a..955112bfcb30 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "SRV", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json index 7db56ca06e5f..b3134d2730c6 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "relativeRecordSetName": "record1", "recordType": "TXT", diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json index 447ef16d60f1..fc5fed02675c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json @@ -2,7 +2,7 @@ "parameters": { "zoneName": "zone1", "resourceGroupName": "rg1", - "api-version": "2018-05-01", + "api-version": "2023-07-01-preview", "subscriptionId": "subid", "parameters": { "tags": { From 5ef58a07cf515945deaa800ff7058f6eab75f20d Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 4 May 2023 19:48:06 -0700 Subject: [PATCH 14/54] Address comments --- .../preview/2023-07-01-preview/dns.json | 209 +++++++++--------- 1 file changed, 107 insertions(+), 102 deletions(-) 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 96166ecaec1a..7e1171387ce3 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 @@ -35,18 +35,12 @@ "operationId": "DnssecConfigs_CreateOrUpdate", "description": "Creates or updates DNSSEC config on a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "If-Match", "in": "header", @@ -62,15 +56,17 @@ "type": "string", "x-ms-client-name": "IfNoneMatch", "description": "Set to '*' to allow new DNSSEC config to be created, but to prevent updating existing DNSSEC config. Other values will be ignored." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { "202": { - "description": "The create or update operation has been accepted and will be processed in the background.", - "schema": { - "$ref": "#/definitions/DnssecConfig" - }, - "x-nullable": true + "description": "The create or update operation has been accepted and will be processed in the background." }, "201": { "description": "The DNSSEC config has been created.", @@ -105,18 +101,12 @@ "operationId": "DnssecConfigs_Delete", "description": "Deletes DNSSEC config on a DNS zone. This operation cannot be undone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "If-Match", "in": "header", @@ -124,6 +114,12 @@ "type": "string", "x-ms-client-name": "IfMatch", "description": "The etag of the DNSSEC config. Omit this value to always delete the DNSSEC config. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -157,9 +153,6 @@ "operationId": "DnssecConfigs_Get", "description": "Gets DNSSEC Config.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -168,6 +161,9 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -196,12 +192,9 @@ "tags": [ "DnssecConfigs" ], - "operationId": "DnssecConfigs_ListByType", + "operationId": "DnssecConfigs_ListByDnsZone", "description": "Lists the DNSSEC configs in a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -210,6 +203,9 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -241,9 +237,6 @@ "operationId": "RecordSets_Update", "description": "Updates a record set within a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -253,9 +246,6 @@ { "$ref": "#/parameters/RelativeRecordSetNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "recordType", "in": "path", @@ -298,6 +288,12 @@ "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": { @@ -363,9 +359,6 @@ "operationId": "RecordSets_CreateOrUpdate", "description": "Creates or updates a record set within a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -375,9 +368,6 @@ { "$ref": "#/parameters/RelativeRecordSetNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "recordType", "in": "path", @@ -428,6 +418,12 @@ "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": { @@ -502,9 +498,6 @@ "operationId": "RecordSets_Delete", "description": "Deletes a record set from a DNS zone. This operation cannot be undone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -514,9 +507,6 @@ { "$ref": "#/parameters/RelativeRecordSetNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "recordType", "in": "path", @@ -550,6 +540,12 @@ "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": { @@ -612,9 +608,6 @@ "operationId": "RecordSets_Get", "description": "Gets a record set.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -624,9 +617,6 @@ { "$ref": "#/parameters/RelativeRecordSetNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "recordType", "in": "path", @@ -652,6 +642,12 @@ "name": "RecordType", "modelAsString": false } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -719,18 +715,12 @@ "operationId": "RecordSets_ListByType", "description": "Lists the record sets of a specified type in a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "recordType", "in": "path", @@ -771,6 +761,12 @@ "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": { @@ -841,18 +837,12 @@ "operationId": "RecordSets_ListByDnsZone", "description": "Lists all record sets in a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "$top", "in": "query", @@ -867,6 +857,12 @@ "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": { @@ -901,18 +897,12 @@ "operationId": "RecordSets_ListAllByDnsZone", "description": "Lists all record sets in a DNS zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "$top", "in": "query", @@ -928,6 +918,12 @@ "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": { @@ -962,18 +958,12 @@ "operationId": "Zones_CreateOrUpdate", "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "parameters", "in": "body", @@ -998,6 +988,12 @@ "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": { @@ -1033,18 +1029,12 @@ "operationId": "Zones_Delete", "description": "Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "If-Match", "in": "header", @@ -1052,6 +1042,12 @@ "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": { @@ -1085,9 +1081,6 @@ "operationId": "Zones_Get", "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, @@ -1096,6 +1089,9 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1125,18 +1121,12 @@ "operationId": "Zones_Update", "description": "Updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "parameters", "in": "body", @@ -1153,6 +1143,12 @@ "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": { @@ -1184,15 +1180,9 @@ "operationId": "Zones_ListByResourceGroup", "description": "Lists the DNS zones within a resource group.", "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "name": "$top", "in": "query", @@ -1200,6 +1190,12 @@ "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": { @@ -1746,15 +1742,18 @@ "digestAlgorithmType": { "type": "integer", "format": "int64", - "description": "The digest algorithm type." + "description": "The digest algorithm type.", + "readOnly": true }, "digestValue": { "type": "string", - "description": "The digest value." + "description": "The digest value.", + "readOnly": true }, "record": { "type": "string", - "description": "The record." + "description": "The record.", + "readOnly": true } }, "description": "The delegation signer info." @@ -1766,31 +1765,37 @@ "items": { "$ref": "#/definitions/DelegationSignerInfo" }, - "description": "The delegation signer info." + "description": "The delegation signer info.", + "readOnly": true }, "flags": { "type": "integer", "format": "int64", - "description": "The flags." + "description": "The flags.", + "readOnly": true }, "keyTag": { "type": "integer", "format": "int64", - "description": "The key tag." + "description": "The key tag.", + "readOnly": true }, "protocol": { "type": "integer", "format": "int64", - "description": "The protocol." + "description": "The protocol.", + "readOnly": true }, "publicKey": { "type": "string", - "description": "The public key." + "description": "The public key.", + "readOnly": true }, "securityAlgorithmType": { "type": "integer", "format": "int64", - "description": "The signing algorithm." + "description": "The signing algorithm.", + "readOnly": true } }, "description": "Represents the signing key." From a4ad3f870b4f7a8efedeed18c992526ce20ab617 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Thu, 4 May 2023 20:32:37 -0700 Subject: [PATCH 15/54] Fix Lint errors --- .../preview/2023-07-01-preview/dns.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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 7e1171387ce3..0591cf4faf5e 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 @@ -944,7 +944,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "List recordsets by zone": { + "List all recordsets by zone": { "$ref": "./examples/ListRecordSetsByZone.json" } } @@ -1258,7 +1258,7 @@ } }, "x-ms-examples": { - "List zones by resource group": { + "Get DNS resource reference": { "$ref": "./examples/GetDnsResourceReference.json" } } @@ -1819,6 +1819,7 @@ "description": "Represents the DNSSEC properties." }, "DnssecConfig": { + "x-ms-azure-resource": true, "properties": { "properties": { "$ref": "#/definitions/DnssecProperties", @@ -1936,6 +1937,11 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/ZoneProperties", "description": "The properties of the zone." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "allOf": [ @@ -2133,14 +2139,16 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the resource group." + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" }, "ZoneNameParameter": { "name": "zoneName", "in": "path", "required": true, "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "description": "The name of the DNS zone (without a terminating dot).", + "x-ms-parameter-location": "method" }, "RelativeRecordSetNameParameter": { "name": "relativeRecordSetName", @@ -2148,7 +2156,8 @@ "required": true, "type": "string", "description": "The name of the record set, relative to the name of the zone.", - "x-ms-skip-url-encoding": true + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" }, "ApiVersionParameter": { "name": "api-version", From 9cf6fa7add1a07448bebdcb7218fbb6b1aeb2299 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 11:23:20 -0700 Subject: [PATCH 16/54] Fix model validation --- .../preview/2023-07-01-preview/dns.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 0591cf4faf5e..f40a3a8241eb 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 @@ -1468,8 +1468,8 @@ "Digest": { "properties": { "algorithmType": { - "type": "string", - "format": "byte", + "type": "integer", + "format": "int32", "description": "The digest algorithm type." }, "value": { @@ -1487,8 +1487,8 @@ "description": "The key tag." }, "algorithm": { - "type": "string", - "format": "byte", + "type": "integer", + "format": "int32", "description": "The algorithm." }, "digest": { @@ -1501,18 +1501,18 @@ "TlsaRecord": { "properties": { "usage": { - "type": "string", - "format": "byte", + "type": "integer", + "format": "int32", "description": "The usage." }, "selector": { - "type": "string", - "format": "byte", + "type": "integer", + "format": "int32", "description": "The selector." }, "matchingType": { - "type": "string", - "format": "byte", + "type": "integer", + "format": "int32", "description": "The matchingType." }, "certAssociationData": { From b0c04d737fb45de871dad47c6048357cfd4e26e0 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 11:37:01 -0700 Subject: [PATCH 17/54] Fix model validation and delete privatedns examples --- .../examples/CreateOrUpdateDnssecConfig.json | 13 ++-- .../examples/CreateOrUpdatePrivateZone.json | 72 ------------------- .../examples/DeleteDnssecConfig.json | 4 +- 3 files changed, 7 insertions(+), 82 deletions(-) delete mode 100644 specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json index ba53639f4041..8ed155af7926 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json @@ -34,15 +34,10 @@ } }, "202": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", - "name": "default", - "type": "Microsoft.Network/dnszones/dnssecConfigs", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "provisioningState": "Creating", - "signingKeys": [] - } + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationStatuses/asyncOperationId?api-version=2023-07-01-preview", + "Retry-After": "60" } } } diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json deleted file mode 100644 index 1f77b1c31bf9..000000000000 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePrivateZone.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", - "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "parameters": { - "location": "Global", - "tags": { - "key1": "value1" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "name": "zone1", - "type": "Microsoft.Network/dnsZones", - "properties": { - "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 1, - "nameServers": [], - "zoneType": "Private", - "registrationVirtualNetworks": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" - } - ], - "resolutionVirtualNetworks": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" - } - ] - }, - "tags": { - "key1": "value1" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "name": "zone1", - "type": "Microsoft.Network/dnsZones", - "properties": { - "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 1, - "nameServers": [], - "zoneType": "Private", - "registrationVirtualNetworks": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" - } - ], - "resolutionVirtualNetworks": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" - } - ] - }, - "tags": { - "key1": "value1" - } - } - } - } -} diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json index 34e06ecdb34b..f50bcad77106 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json @@ -9,7 +9,9 @@ "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "https://asyncoperationstatusurl" + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationStatuses/asyncOperationId?api-version=2023-07-01-preview", + "Retry-After": "60" } }, "204": {} From 5aa2a7491c16d656471d956d0a2091717c2a4267 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 11:57:10 -0700 Subject: [PATCH 18/54] Fix UNREFERENCED_JSON_FILE --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 f40a3a8241eb..49a1d3997916 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 @@ -573,13 +573,13 @@ "$ref": "./examples/DeleteCaaRecordset.json" }, "Delete CNAME recordset": { - "$ref": "./examples/DeleteARecordset.json" + "$ref": "./examples/DeleteCNAMERecordset.json" }, "Delete MX recordset": { - "$ref": "./examples/DeleteARecordset.json" + "$ref": "./examples/DeleteMXRecordset.json" }, "Delete NS recordset": { - "$ref": "./examples/DeleteARecordset.json" + "$ref": "./examples/DeleteNSRecordset.json" }, "Delete PTR recordset": { "$ref": "./examples/DeletePTRRecordset.json" From 3c994f7f8fbbfacfa53198968c05272fcbac94f3 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 12:10:28 -0700 Subject: [PATCH 19/54] Fix SpellCheck --- custom-words.txt | 5 +++++ specification/dns/resource-manager/readme.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/custom-words.txt b/custom-words.txt index 17bd8b3fe319..386cd8e96dc5 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -650,6 +650,9 @@ Distro DMARC DMTS Dnat +dnssec +Dnssec +DNSSEC dnsname dnszones DOCM @@ -2232,6 +2235,8 @@ Timespan timestep timezones tinyint +Tlsa +TLSA Tokenizes tombstoned toolset diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 9fa2f3981d5e..f758f3e36000 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -20,7 +20,7 @@ To see additional help and options, run: ## Configuration -### Basic Information +### General Settings These are the global settings for the DNS API. From b1a7ee3cbb1a5e0fbebe49e5e804088e9d1599bd Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 14:21:11 -0700 Subject: [PATCH 20/54] Fix MissingTypeObject --- .../preview/2023-07-01-preview/dns.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) 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 49a1d3997916..bff522b4d89f 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 @@ -1314,6 +1314,7 @@ }, "definitions": { "ARecord": { + "type": "object", "properties": { "ipv4Address": { "type": "string", @@ -1323,6 +1324,7 @@ "description": "An A record." }, "AaaaRecord": { + "type": "object", "properties": { "ipv6Address": { "type": "string", @@ -1332,6 +1334,7 @@ "description": "An AAAA record." }, "MxRecord": { + "type": "object", "properties": { "preference": { "type": "integer", @@ -1346,6 +1349,7 @@ "description": "An MX record." }, "NsRecord": { + "type": "object", "properties": { "nsdname": { "type": "string", @@ -1355,6 +1359,7 @@ "description": "An NS record." }, "PtrRecord": { + "type": "object", "properties": { "ptrdname": { "type": "string", @@ -1364,6 +1369,7 @@ "description": "A PTR record." }, "SrvRecord": { + "type": "object", "properties": { "priority": { "type": "integer", @@ -1388,6 +1394,7 @@ "description": "An SRV record." }, "TxtRecord": { + "type": "object", "properties": { "value": { "type": "array", @@ -1400,6 +1407,7 @@ "description": "A TXT record." }, "CnameRecord": { + "type": "object", "properties": { "cname": { "type": "string", @@ -1409,6 +1417,7 @@ "description": "A CNAME record." }, "SoaRecord": { + "type": "object", "properties": { "host": { "type": "string", @@ -1448,6 +1457,7 @@ "description": "An SOA record." }, "CaaRecord": { + "type": "object", "properties": { "flags": { "type": "integer", @@ -1466,6 +1476,7 @@ "description": "A CAA record." }, "Digest": { + "type": "object", "properties": { "algorithmType": { "type": "integer", @@ -1480,6 +1491,7 @@ "description": "A digest." }, "DsRecord": { + "type": "object", "properties": { "keyTag": { "type": "integer", @@ -1499,6 +1511,7 @@ "description": "A DS record." }, "TlsaRecord": { + "type": "object", "properties": { "usage": { "type": "integer", @@ -1523,6 +1536,7 @@ "description": "A TLSA record." }, "NaptrRecord": { + "type": "object", "properties": { "order": { "type": "integer", @@ -1554,6 +1568,7 @@ "description": "A NAPTR record." }, "RecordSetProperties": { + "type": "object", "properties": { "metadata": { "type": "object", @@ -1682,6 +1697,7 @@ "description": "Represents the properties of the records in the record set." }, "RecordSet": { + "type": "object", "properties": { "id": { "type": "string", @@ -1712,6 +1728,7 @@ "x-ms-azure-resource": true }, "RecordSetUpdateParameters": { + "type": "object", "properties": { "RecordSet": { "$ref": "#/definitions/RecordSet", @@ -1721,6 +1738,7 @@ "description": "Parameters supplied to update a record set." }, "RecordSetListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1738,6 +1756,7 @@ "description": "The response to a record set List operation." }, "DelegationSignerInfo": { + "type": "object", "properties": { "digestAlgorithmType": { "type": "integer", @@ -1759,6 +1778,7 @@ "description": "The delegation signer info." }, "SigningKey": { + "type": "object", "properties": { "delegationSignerInfo": { "type": "array", @@ -1801,6 +1821,7 @@ "description": "Represents the signing key." }, "DnssecProperties": { + "type": "object", "properties": { "provisioningState": { "type": "string", @@ -1819,6 +1840,7 @@ "description": "Represents the DNSSEC properties." }, "DnssecConfig": { + "type": "object", "x-ms-azure-resource": true, "properties": { "properties": { @@ -1850,6 +1872,7 @@ "description": "Represents the DNSSEC configuration." }, "DnssecConfigListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1862,6 +1885,7 @@ "description": "The response to a DNSSEC config List operation." }, "ZoneProperties": { + "type": "object", "properties": { "maxNumberOfRecordSets": { "type": "integer", @@ -1928,6 +1952,7 @@ "description": "Represents the properties of the zone." }, "Zone": { + "type": "object", "properties": { "etag": { "type": "string", @@ -1952,6 +1977,7 @@ "description": "Describes a DNS zone." }, "ZoneUpdate": { + "type": "object", "properties": { "tags": { "type": "object", @@ -1964,6 +1990,7 @@ "description": "Describes a request to update a DNS zone." }, "ZoneListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1981,6 +2008,7 @@ "description": "The response to a Zone List or ListAll operation." }, "DnsResourceReferenceRequest": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -1991,6 +2019,7 @@ "description": "Represents the properties of the Dns Resource Reference Request." }, "DnsResourceReferenceRequestProperties": { + "type": "object", "properties": { "targetResources": { "type": "array", @@ -2003,6 +2032,7 @@ "description": "Represents the properties of the Dns Resource Reference Request." }, "DnsResourceReferenceResult": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -2013,6 +2043,7 @@ "description": "Represents the properties of the Dns Resource Reference Result." }, "DnsResourceReferenceResultProperties": { + "type": "object", "properties": { "dnsResourceReferences": { "type": "array", @@ -2025,6 +2056,7 @@ "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request." }, "DnsResourceReference": { + "type": "object", "properties": { "dnsResources": { "type": "array", From 1b6f05dff1f700e2bec162527d2b65822d17a4e5 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 14:39:40 -0700 Subject: [PATCH 21/54] Fix Validations --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 3 --- .../examples/CreateOrUpdateDnssecConfig.json | 7 ------- specification/dns/resource-manager/readme.md | 6 +++--- 3 files changed, 3 insertions(+), 13 deletions(-) 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 bff522b4d89f..8737f6c09814 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 @@ -65,9 +65,6 @@ } ], "responses": { - "202": { - "description": "The create or update operation has been accepted and will be processed in the background." - }, "201": { "description": "The DNSSEC config has been created.", "schema": { diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json index 8ed155af7926..7cf70c244052 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json @@ -32,13 +32,6 @@ "signingKeys": [] } } - }, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationStatuses/asyncOperationId?api-version=2023-07-01-preview", - "Retry-After": "60" - } } } } diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index f758f3e36000..59dc7e240285 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -52,9 +52,9 @@ directive: - $.definitions.RecordSetProperties.properties.TXTRecords - $.definitions.RecordSetProperties.properties.CNAMERecord - $.definitions.RecordSetProperties.properties.SOARecord - - $.definitions.RecordSetProperties.properties.DSRecord - - $.definitions.RecordSetProperties.properties.TLSARecord - - $.definitions.RecordSetProperties.properties.NAPTRRecord + - $.definitions.RecordSetProperties.properties.DSRecords + - $.definitions.RecordSetProperties.properties.TLSARecords + - $.definitions.RecordSetProperties.properties.NAPTRRecords - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase From 0d7a2a1be4cd73a88bf134bca2001b05414941c2 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 14:47:51 -0700 Subject: [PATCH 22/54] Fix XmsIdentifierValidation --- .../preview/2023-07-01-preview/dns.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 8737f6c09814..889b2148489a 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 @@ -1395,6 +1395,7 @@ "properties": { "value": { "type": "array", + "x-ms-identifiers": [], "items": { "type": "string" }, @@ -1595,6 +1596,7 @@ }, "ARecords": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/ARecord" }, @@ -1602,6 +1604,7 @@ }, "AAAARecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "AaaaRecords", "items": { "$ref": "#/definitions/AaaaRecord" @@ -1610,6 +1613,7 @@ }, "MXRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "MxRecords", "items": { "$ref": "#/definitions/MxRecord" @@ -1618,6 +1622,7 @@ }, "NSRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "NsRecords", "items": { "$ref": "#/definitions/NsRecord" @@ -1626,6 +1631,7 @@ }, "PTRRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "PtrRecords", "items": { "$ref": "#/definitions/PtrRecord" @@ -1634,6 +1640,7 @@ }, "SRVRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "SrvRecords", "items": { "$ref": "#/definitions/SrvRecord" @@ -1642,6 +1649,7 @@ }, "TXTRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "TxtRecords", "items": { "$ref": "#/definitions/TxtRecord" @@ -1660,6 +1668,7 @@ }, "caaRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "CaaRecords", "items": { "$ref": "#/definitions/CaaRecord" @@ -1668,6 +1677,7 @@ }, "DSRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "DsRecords", "items": { "$ref": "#/definitions/DsRecord" @@ -1676,6 +1686,7 @@ }, "TLSARecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "TlsaRecords", "items": { "$ref": "#/definitions/TlsaRecord" @@ -1684,6 +1695,7 @@ }, "NAPTRRecords": { "type": "array", + "x-ms-identifiers": [], "x-ms-client-name": "NaptrRecords", "items": { "$ref": "#/definitions/NaptrRecord" @@ -1779,6 +1791,7 @@ "properties": { "delegationSignerInfo": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/DelegationSignerInfo" }, @@ -1827,6 +1840,7 @@ }, "signingKeys": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/SigningKey" }, @@ -1904,6 +1918,7 @@ }, "nameServers": { "type": "array", + "x-ms-identifiers": [], "items": { "type": "string" }, @@ -1925,6 +1940,7 @@ }, "registrationVirtualNetworks": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/SubResource" }, @@ -1932,6 +1948,7 @@ }, "resolutionVirtualNetworks": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/SubResource" }, @@ -1939,6 +1956,7 @@ }, "signingKeys": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/SigningKey" }, From a6c8a8bbadeb3f9c3aaebb2aa8ab7a649564671e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 15:17:19 -0700 Subject: [PATCH 23/54] Fix PathForNestedResource and PathForNestedResource --- .../preview/2023-07-01-preview/dns.json | 3 +++ specification/dns/resource-manager/readme.md | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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 889b2148489a..7162754f5399 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 @@ -2088,6 +2088,7 @@ "description": "Represents a single Azure resource and its referencing DNS records." }, "Resource": { + "type": "object", "x-ms-azure-resource": true, "properties": { "id": { @@ -2127,6 +2128,7 @@ "description": "Common properties of an Azure Resource Manager resource" }, "SubResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -2164,6 +2166,7 @@ }, "details": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/CloudErrorBody" }, diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 59dc7e240285..48c8a726eafb 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -37,10 +37,11 @@ These settings apply only when `--tag=package-2023-07-preview` is specified on t input-file: - Microsoft.Network/preview/2023-07-01-preview/dns.json directive: - - where: - - $.paths - suppress: - - OperationsAPIImplementation + - where: $.paths + suppress: OperationsAPIImplementation + reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. + - where: $.paths + suppress: PathForNestedResource - where: - $.definitions.RecordSetProperties.properties.TTL - $.definitions.RecordSetProperties.properties.ARecords From 32aa13f7875af21df21b922590cde768b99f86a6 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 16:32:10 -0700 Subject: [PATCH 24/54] Fix PageableOperation and LroLocationHeader --- .../preview/2023-07-01-preview/dns.json | 17 +++++++++++++++++ specification/dns/resource-manager/readme.md | 3 +++ 2 files changed, 20 insertions(+) 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 7162754f5399..0606ea072f2f 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 @@ -124,6 +124,12 @@ "description": "The DNSSEC config was not found." }, "202": { + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + } + }, "description": "The DNSSEC config delete operation has been accepted and will complete asynchronously." }, "200": { @@ -1052,6 +1058,12 @@ "description": "The DNS zone was not found." }, "202": { + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + } + }, "description": "The DNS zone delete operation has been accepted and will complete asynchronously." }, "200": { @@ -1880,6 +1892,11 @@ "description": "The etag of the DNSSEC config." } }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true + }, "description": "Represents the DNSSEC configuration." }, "DnssecConfigListResult": { diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 48c8a726eafb..33e9d28587b2 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -59,6 +59,9 @@ directive: - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase + - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs"].get' + suppress: PageableOperation + reason: Pagination not supported. The size of the result list is exactly one. ``` ### Tag: package-2018-05 From f172a341d956cbcdae455a988487c1b8dbcdb269 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 16:43:07 -0700 Subject: [PATCH 25/54] Remove systemData from Dnssec --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 5 ----- 1 file changed, 5 deletions(-) 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 0606ea072f2f..686d7229c361 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 @@ -1892,11 +1892,6 @@ "description": "The etag of the DNSSEC config." } }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "Metadata pertaining to creation and last modification of the resource.", - "readOnly": true - }, "description": "Represents the DNSSEC configuration." }, "DnssecConfigListResult": { From 5a885f1f5cb1882c4046fe097ae3a9c415b752d5 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 16:57:18 -0700 Subject: [PATCH 26/54] Fix RequiredReadOnlySystemData --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 5 +++++ 1 file changed, 5 insertions(+) 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 686d7229c361..2490ef77ce72 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 @@ -1890,6 +1890,11 @@ "etag": { "type": "string", "description": "The etag of the DNSSEC config." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "description": "Represents the DNSSEC configuration." From 2bcad058c3cc15ea9c85523b4ef76a7c3696b5a5 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 17:15:52 -0700 Subject: [PATCH 27/54] Fix XmsParameterLocation --- .../preview/2023-07-01-preview/dns.json | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 2490ef77ce72..b6b767660450 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 @@ -2199,7 +2199,16 @@ "in": "path", "required": true, "type": "string", - "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription." + "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.", + "x-ms-parameter-location": "client" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Specifies the API version.", + "x-ms-parameter-location": "client" }, "ResourceGroupNameParameter": { "name": "resourceGroupName", @@ -2225,13 +2234,6 @@ "description": "The name of the record set, relative to the name of the zone.", "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Specifies the API version." } } } From 92b4939170e33769d3739ff4e37fc71f4a4ff1e5 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 17:19:39 -0700 Subject: [PATCH 28/54] Fix XmsIdentifierValidation --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 1 + 1 file changed, 1 insertion(+) 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 b6b767660450..794a1146764f 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 @@ -2079,6 +2079,7 @@ "properties": { "dnsResourceReferences": { "type": "array", + "x-ms-identifiers": [], "items": { "$ref": "#/definitions/DnsResourceReference" }, From 7417e443df730501c0ea67114fc00ca025f7f84b Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 17:25:48 -0700 Subject: [PATCH 29/54] Fix ParametersOrder --- specification/dns/resource-manager/readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 33e9d28587b2..c52f48d18815 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -62,6 +62,13 @@ directive: - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs"].get' suppress: PageableOperation reason: Pagination not supported. The size of the result list is exactly one. + - where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].delete + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get + suppress: ParametersOrder + reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. ``` ### Tag: package-2018-05 From e70a5e0f3a7792d9fd4f1849179e44888aba705d Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 17:33:06 -0700 Subject: [PATCH 30/54] Fix PathForNestedResource --- specification/dns/resource-manager/readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index c52f48d18815..5e3be3de474d 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -40,8 +40,11 @@ directive: - where: $.paths suppress: OperationsAPIImplementation reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. - - where: $.paths + - where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}"] suppress: PathForNestedResource + reason: DNS Zones API design. - where: - $.definitions.RecordSetProperties.properties.TTL - $.definitions.RecordSetProperties.properties.ARecords @@ -59,14 +62,11 @@ directive: - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase - - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs"].get' + - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs"].get suppress: PageableOperation reason: Pagination not supported. The size of the result list is exactly one. - where: - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].delete - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] suppress: ParametersOrder reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. ``` From f929ee2bc01ca7d739499d56b4498928dbfdebda Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 17:43:31 -0700 Subject: [PATCH 31/54] Fix indentation --- specification/dns/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 5e3be3de474d..e611ba8cd1da 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -66,7 +66,7 @@ directive: suppress: PageableOperation reason: Pagination not supported. The size of the result list is exactly one. - where: - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] suppress: ParametersOrder reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. ``` From 65533e459f6102449a4892e9c963a4e767f56969 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 18:19:58 -0700 Subject: [PATCH 32/54] Check --- specification/dns/resource-manager/readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index e611ba8cd1da..c031278a309b 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -66,7 +66,10 @@ directive: suppress: PageableOperation reason: Pagination not supported. The size of the result list is exactly one. - where: - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].delete + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get suppress: ParametersOrder reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. ``` From 5ac7ba58c196ff12b7af153f965e48e541510ad7 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 19:42:47 -0700 Subject: [PATCH 33/54] Fix XmsLongRunningOperationOptions TopLevelResourcesListBySubscription OperationsAPIImplementation --- specification/dns/resource-manager/readme.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index c031278a309b..2cdbc63d6b2f 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -37,8 +37,10 @@ These settings apply only when `--tag=package-2023-07-preview` is specified on t input-file: - Microsoft.Network/preview/2023-07-01-preview/dns.json directive: - - where: $.paths - suppress: OperationsAPIImplementation + - where: + - $.paths + suppress: + - OperationsAPIImplementation reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. - where: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] @@ -72,6 +74,16 @@ directive: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get suppress: ParametersOrder reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. + - where: $.definitions.Zone + suppress: TopLevelResourcesListBySubscription + reason: List by subscription is included in the Zones_List operation. + +suppressions: + - code: XmsLongRunningOperationOptions + reason: This option is designed for cases where the server does NOT follow ARM guidelines + # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options + - code: UnSupportedPatchProperties + reason: Breaking change to remove name or type properties. ``` ### Tag: package-2018-05 From 3cd8ad9f96c8179d0177b10a48dd6f554499b7aa Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Fri, 5 May 2023 20:04:23 -0700 Subject: [PATCH 34/54] Fix nextlink for list dnssecconfigs --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 5 +++++ specification/dns/resource-manager/readme.md | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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 794a1146764f..3d6162f52a83 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 @@ -1908,6 +1908,11 @@ "$ref": "#/definitions/DnssecConfig" }, "description": "Information about the DNSSEC configs in the response." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true } }, "description": "The response to a DNSSEC config List operation." diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 2cdbc63d6b2f..3d788d04c820 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -64,9 +64,6 @@ directive: - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase - - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs"].get - suppress: PageableOperation - reason: Pagination not supported. The size of the result list is exactly one. - where: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put From fc2423476b762e98eb7f59b2dde4448abd8b02ad Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 13:10:20 -0700 Subject: [PATCH 35/54] Fix ParameterNotUsingCommonTypes --- .../preview/2023-07-01-preview/dns.json | 128 +++++++----------- 1 file changed, 52 insertions(+), 76 deletions(-) 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 3d6162f52a83..45fca34ae9ac 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 @@ -36,7 +36,7 @@ "description": "Creates or updates DNSSEC config on a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -58,10 +58,10 @@ "description": "Set to '*' to allow new DNSSEC config to be created, but to prevent updating existing DNSSEC config. Other values will be ignored." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -99,7 +99,7 @@ "description": "Deletes DNSSEC config on a DNS zone. This operation cannot be undone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -113,10 +113,10 @@ "description": "The etag of the DNSSEC config. Omit this value to always delete the DNSSEC config. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -157,16 +157,16 @@ "description": "Gets DNSSEC Config.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -199,16 +199,16 @@ "description": "Lists the DNSSEC configs in a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -241,7 +241,7 @@ "description": "Updates a record set within a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -293,10 +293,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -363,7 +363,7 @@ "description": "Creates or updates a record set within a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -423,10 +423,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -502,7 +502,7 @@ "description": "Deletes a record set from a DNS zone. This operation cannot be undone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -545,10 +545,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -612,7 +612,7 @@ "description": "Gets a record set.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -647,10 +647,10 @@ } }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -719,7 +719,7 @@ "description": "Lists the record sets of a specified type in a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -766,10 +766,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -841,7 +841,7 @@ "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -862,10 +862,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -901,7 +901,7 @@ "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -923,10 +923,10 @@ "x-ms-client-name": "recordSetNameSuffix" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -962,7 +962,7 @@ "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -993,10 +993,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1033,7 +1033,7 @@ "description": "Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -1047,10 +1047,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1091,16 +1091,16 @@ "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1131,7 +1131,7 @@ "description": "Updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ZoneNameParameter" @@ -1154,10 +1154,10 @@ "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": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1190,7 +1190,7 @@ "description": "Lists the DNS zones within a resource group.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$top", @@ -1201,10 +1201,10 @@ "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1237,10 +1237,10 @@ "description": "Returns the DNS records specified by the referencing targetResourceIds.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "name": "parameters", @@ -1290,10 +1290,10 @@ "description": "The maximum number of DNS zones to return. If not specified, returns up to 100 zones." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -2200,30 +2200,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.", - "x-ms-parameter-location": "client" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Specifies the API version.", - "x-ms-parameter-location": "client" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ZoneNameParameter": { "name": "zoneName", "in": "path", From a73625fdf2d62f0f7d8024ea9d60a2164d3d676a Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 13:39:28 -0700 Subject: [PATCH 36/54] Fix some validations --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 3 +++ specification/dns/resource-manager/readme.md | 6 ++++++ 2 files changed, 9 insertions(+) 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 45fca34ae9ac..3901c58f0181 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 @@ -225,6 +225,9 @@ } } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "x-ms-examples": { "List DnssecConfigs": { "$ref": "./examples/ListDnssecConfigsByZone.json" diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 3d788d04c820..2de88c4fe0b1 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -74,6 +74,12 @@ directive: - where: $.definitions.Zone suppress: TopLevelResourcesListBySubscription reason: List by subscription is included in the Zones_List operation. + - suppress: CreateOperationAsyncResponseValidation + reason: This option is designed for cases where the server does NOT follow ARM guidelines + # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options + - suppress: DeleteOperationAsyncResponseValidation + reason: This option is designed for cases where the server does NOT follow ARM guidelines + # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options suppressions: - code: XmsLongRunningOperationOptions From c44c9baaa2cd7772d40b0149eaa90ed02a6a7e3b Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 14:02:09 -0700 Subject: [PATCH 37/54] Fix --- .../preview/2023-07-01-preview/dns.json | 86 +++---------------- specification/dns/resource-manager/readme.md | 2 + 2 files changed, 14 insertions(+), 74 deletions(-) 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 3901c58f0181..9327092585a7 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 @@ -1723,21 +1723,6 @@ "RecordSet": { "type": "object", "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." @@ -1748,8 +1733,12 @@ "description": "The properties of the record set." } }, - "description": "Describes a DNS record set (a collection of DNS records with the same name and type).", - "x-ms-azure-resource": true + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Describes a DNS record set (a collection of DNS records with the same name and type)." }, "RecordSetUpdateParameters": { "type": "object", @@ -1867,7 +1856,6 @@ }, "DnssecConfig": { "type": "object", - "x-ms-azure-resource": true, "properties": { "properties": { "$ref": "#/definitions/DnssecProperties", @@ -1875,21 +1863,6 @@ "description": "The DNSSEC properties.", "readOnly": true }, - "id": { - "type": "string", - "description": "The ID of the DNSSEC config.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of the DNSSEC config.", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the DNSSEC config.", - "readOnly": true - }, "etag": { "type": "string", "description": "The etag of the DNSSEC config." @@ -1900,6 +1873,11 @@ "readOnly": true } }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], "description": "Represents the DNSSEC configuration." }, "DnssecConfigListResult": { @@ -2011,7 +1989,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" } ], "description": "Describes a DNS zone." @@ -2113,46 +2091,6 @@ }, "description": "Represents a single Azure resource and its referencing DNS records." }, - "Resource": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource ID." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "location": { - "type": "string", - "description": "Resource location.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "required": [ - "location" - ], - "description": "Common properties of an Azure Resource Manager resource" - }, "SubResource": { "type": "object", "properties": { diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 2de88c4fe0b1..0e06d9e415a6 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -80,6 +80,8 @@ directive: - suppress: DeleteOperationAsyncResponseValidation reason: This option is designed for cases where the server does NOT follow ARM guidelines # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options + - suppress: ResourceNameRestriction + reason: We already have naming validation at service end. suppressions: - code: XmsLongRunningOperationOptions From c53522a6f8f82b0101e702cec22a8727dd8672f3 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 14:20:47 -0700 Subject: [PATCH 38/54] Refactor RecordTypeParameter --- .../preview/2023-07-01-preview/dns.json | 156 ++++-------------- 1 file changed, 34 insertions(+), 122 deletions(-) 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 9327092585a7..5eeb6e7c8e69 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 @@ -253,30 +253,7 @@ "$ref": "#/parameters/RelativeRecordSetNameParameter" }, { - "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", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter" }, { "name": "parameters", @@ -363,7 +340,7 @@ "RecordSets" ], "operationId": "RecordSets_CreateOrUpdate", - "description": "Creates or updates a record set within a DNS zone.", + "description": "Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -375,30 +352,7 @@ "$ref": "#/parameters/RelativeRecordSetNameParameter" }, { - "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", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter" }, { "name": "parameters", @@ -502,7 +456,7 @@ "RecordSets" ], "operationId": "RecordSets_Delete", - "description": "Deletes a record set from a DNS zone. This operation cannot be undone.", + "description": "Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -514,30 +468,7 @@ "$ref": "#/parameters/RelativeRecordSetNameParameter" }, { - "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", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter" }, { "name": "If-Match", @@ -624,30 +555,7 @@ "$ref": "#/parameters/RelativeRecordSetNameParameter" }, { - "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", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -728,30 +636,7 @@ "$ref": "#/parameters/ZoneNameParameter" }, { - "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", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter" }, { "name": "$top", @@ -2157,6 +2042,33 @@ "description": "The name of the record set, relative to the name of the zone.", "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" + }, + "RecordTypeParameter": { + "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", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + }, + "x-ms-parameter-location": "method" } } } From 0c8df547441380ca3b6a4461ff8263a1a3112b9b Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 17:53:29 -0700 Subject: [PATCH 39/54] Revert resource type references from common-types --- .../preview/2023-07-01-preview/dns.json | 84 ++++++++++++++++--- specification/dns/resource-manager/readme.md | 3 + 2 files changed, 76 insertions(+), 11 deletions(-) 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 5eeb6e7c8e69..8325797de848 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 @@ -1608,6 +1608,21 @@ "RecordSet": { "type": "object", "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." @@ -1618,11 +1633,7 @@ "description": "The properties of the record set." } }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], + "x-ms-azure-resource": true, "description": "Describes a DNS record set (a collection of DNS records with the same name and type)." }, "RecordSetUpdateParameters": { @@ -1748,6 +1759,21 @@ "description": "The DNSSEC properties.", "readOnly": true }, + "id": { + "type": "string", + "description": "The ID of the DNSSEC config.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the DNSSEC config.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the DNSSEC config.", + "readOnly": true + }, "etag": { "type": "string", "description": "The etag of the DNSSEC config." @@ -1758,11 +1784,7 @@ "readOnly": true } }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], + "x-ms-azure-resource": true, "description": "Represents the DNSSEC configuration." }, "DnssecConfigListResult": { @@ -1874,7 +1896,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "#/definitions/Resource" } ], "description": "Describes a DNS zone." @@ -1976,6 +1998,46 @@ }, "description": "Represents a single Azure resource and its referencing DNS records." }, + "Resource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "required": [ + "location" + ], + "description": "Common properties of an Azure Resource Manager resource" + }, "SubResource": { "type": "object", "properties": { diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 0e06d9e415a6..48d35dc2a13c 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -82,6 +82,9 @@ directive: # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options - suppress: ResourceNameRestriction reason: We already have naming validation at service end. + - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get + suppress: GetCollectionOnlyHasValueAndNextLink + reason: This is just a Get operation and not a List operation. suppressions: - code: XmsLongRunningOperationOptions From 66ca61f4fa836d2c64c0fdb85bd2715ee96d8f30 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 18:08:35 -0700 Subject: [PATCH 40/54] Suppress ResourceMustReferenceCommonTypes and LroErrorContent --- specification/dns/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 48d35dc2a13c..b574c562d13d 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -85,6 +85,10 @@ directive: - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get suppress: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. + - suppress: ResourceMustReferenceCommonTypes + reason: 'We have already defined Resource which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since Dns Zones service has already shipped public versions' + - suppress: LroErrorContent + reason: 'We have already defined CloudError which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since Dns Zones service has already shipped public versions' suppressions: - code: XmsLongRunningOperationOptions From 369a6c388cec7ec1ce130a3e0953726e054e003c Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 18:11:10 -0700 Subject: [PATCH 41/54] Suppress GetCollectionOnlyHasValueAndNextLink --- specification/dns/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index b574c562d13d..f2a9964bc726 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -82,7 +82,7 @@ directive: # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options - suppress: ResourceNameRestriction reason: We already have naming validation at service end. - - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get + - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get.responses["200"].schema suppress: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. - suppress: ResourceMustReferenceCommonTypes From 3013bbfab8e529b958c983c83784581fb8f7dcae Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 8 May 2023 18:48:26 -0700 Subject: [PATCH 42/54] None --- specification/dns/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index f2a9964bc726..a475abb28189 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -251,4 +251,4 @@ See configuration in [readme.python.md](./readme.python.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file From 54634adecaf581d18f77b2c112a9fb86dd544228 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Tue, 9 May 2023 23:32:39 -0700 Subject: [PATCH 43/54] Use new suppression format --- specification/dns/resource-manager/readme.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index a475abb28189..a446a558e100 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -37,11 +37,6 @@ These settings apply only when `--tag=package-2023-07-preview` is specified on t input-file: - Microsoft.Network/preview/2023-07-01-preview/dns.json directive: - - where: - - $.paths - suppress: - - OperationsAPIImplementation - reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. - where: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}"] @@ -82,9 +77,6 @@ directive: # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options - suppress: ResourceNameRestriction reason: We already have naming validation at service end. - - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get.responses["200"].schema - suppress: GetCollectionOnlyHasValueAndNextLink - reason: This is just a Get operation and not a List operation. - suppress: ResourceMustReferenceCommonTypes reason: 'We have already defined Resource which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since Dns Zones service has already shipped public versions' - suppress: LroErrorContent @@ -96,6 +88,12 @@ suppressions: # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options - code: UnSupportedPatchProperties reason: Breaking change to remove name or type properties. + - where: $.paths + code: OperationsAPIImplementation + reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. + - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get.responses["200"].schema + code: GetCollectionOnlyHasValueAndNextLink + reason: This is just a Get operation and not a List operation. ``` ### Tag: package-2018-05 From 84fbd98787632a0f8a46439adabd94037659e4dd Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Tue, 9 May 2023 23:38:59 -0700 Subject: [PATCH 44/54] Suppress OperationsAPIImplementation and GetCollectionOnlyHasValueAndNextLink without where condition --- specification/dns/resource-manager/readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index a446a558e100..68b1b0ac388f 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -88,11 +88,9 @@ suppressions: # https://azure.github.io/autorest/extensions/#x-ms-long-running-operation-options - code: UnSupportedPatchProperties reason: Breaking change to remove name or type properties. - - where: $.paths - code: OperationsAPIImplementation + - code: OperationsAPIImplementation reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. - - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default"].get.responses["200"].schema - code: GetCollectionOnlyHasValueAndNextLink + - code: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. ``` From 833bb19a729176f997bcb35c74083779f4178989 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 10 May 2023 12:50:23 -0700 Subject: [PATCH 45/54] Fix descriptions --- .../preview/2023-07-01-preview/dns.json | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) 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 8325797de848..ef550bdaa1c6 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 @@ -33,7 +33,7 @@ "DnssecConfigs" ], "operationId": "DnssecConfigs_CreateOrUpdate", - "description": "Creates or updates DNSSEC config on a DNS zone.", + "description": "Creates or updates the DNSSEC configuration on a DNS zone.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -47,7 +47,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The etag of the DNSSEC config. Omit this value to always overwrite the current DNSSEC config. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." + "description": "The etag of the DNSSEC configuration. Omit this value to always overwrite the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." }, { "name": "If-None-Match", @@ -55,7 +55,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfNoneMatch", - "description": "Set to '*' to allow new DNSSEC config to be created, but to prevent updating existing DNSSEC config. Other values will be ignored." + "description": "Set to '*' to allow this DNSSEC configuration to be created, but to prevent updating existing DNSSEC configuration. Other values will be ignored." }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -66,13 +66,13 @@ ], "responses": { "201": { - "description": "The DNSSEC config has been created.", + "description": "The DNSSEC configuration has been provisioned.", "schema": { "$ref": "#/definitions/DnssecConfig" } }, "200": { - "description": "The DNSSEC config has been updated.", + "description": "The DNSSEC configuration has been updated.", "schema": { "$ref": "#/definitions/DnssecConfig" } @@ -96,7 +96,7 @@ "DnssecConfigs" ], "operationId": "DnssecConfigs_Delete", - "description": "Deletes DNSSEC config on a DNS zone. This operation cannot be undone.", + "description": "Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -110,7 +110,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The etag of the DNSSEC config. Omit this value to always delete the DNSSEC config. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + "description": "The etag of this DNSSEC configuration. Omit this value to always delete the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -121,7 +121,7 @@ ], "responses": { "204": { - "description": "The DNSSEC config was not found." + "description": "The DNSSEC configuration was not found." }, "202": { "headers": { @@ -130,10 +130,10 @@ "type": "string" } }, - "description": "The DNSSEC config delete operation has been accepted and will complete asynchronously." + "description": "The DNSSEC configuration delete operation has been accepted and will complete asynchronously." }, "200": { - "description": "The DNSSEC config has been deleted." + "description": "The DNSSEC configuration has been deleted." }, "default": { "description": "Default response. It will be deserialized as per the Error definition.", @@ -154,7 +154,7 @@ "DnssecConfigs" ], "operationId": "DnssecConfigs_Get", - "description": "Gets DNSSEC Config.", + "description": "Gets the DNSSEC configuration.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -196,7 +196,7 @@ "DnssecConfigs" ], "operationId": "DnssecConfigs_ListByDnsZone", - "description": "Lists the DNSSEC configs in a DNS zone.", + "description": "Lists the DNSSEC configurations in a DNS zone.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" @@ -1735,7 +1735,7 @@ "properties": { "provisioningState": { "type": "string", - "description": "Provisioning State of the DNSSEC config.", + "description": "Provisioning State of the DNSSEC configuration.", "readOnly": true }, "signingKeys": { @@ -1761,22 +1761,22 @@ }, "id": { "type": "string", - "description": "The ID of the DNSSEC config.", + "description": "The ID of the DNSSEC configuration.", "readOnly": true }, "name": { "type": "string", - "description": "The name of the DNSSEC config.", + "description": "The name of the DNSSEC configuration.", "readOnly": true }, "type": { "type": "string", - "description": "The type of the DNSSEC config.", + "description": "The type of the DNSSEC configuration.", "readOnly": true }, "etag": { "type": "string", - "description": "The etag of the DNSSEC config." + "description": "The etag of the DNSSEC configuration." }, "systemData": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", @@ -1795,7 +1795,7 @@ "items": { "$ref": "#/definitions/DnssecConfig" }, - "description": "Information about the DNSSEC configs in the response." + "description": "Information about the DNSSEC configurations in the response." }, "nextLink": { "type": "string", @@ -1803,7 +1803,7 @@ "readOnly": true } }, - "description": "The response to a DNSSEC config List operation." + "description": "The response to a List DNSSEC configurations operation." }, "ZoneProperties": { "type": "object", From 2dcc78c98b54ed74431b4b3fc3031f9834b90624 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 10 May 2023 14:10:51 -0700 Subject: [PATCH 46/54] Fix AvoidAdditionalProperties --- .../Microsoft.Network/preview/2023-07-01-preview/dns.json | 2 +- specification/dns/resource-manager/readme.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 ef550bdaa1c6..de8697d49fa9 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 @@ -66,7 +66,7 @@ ], "responses": { "201": { - "description": "The DNSSEC configuration has been provisioned.", + "description": "The DNSSEC configuration has been created.", "schema": { "$ref": "#/definitions/DnssecConfig" } diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 68b1b0ac388f..d2d34342c12e 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -92,6 +92,8 @@ suppressions: reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. - code: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. + - code: AvoidAdditionalProperties + reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. ``` ### Tag: package-2018-05 From 1ff6d60f6ce28b340b94dcab505ba53206ee498c Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Wed, 10 May 2023 14:45:34 -0700 Subject: [PATCH 47/54] None --- specification/dns/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index d2d34342c12e..c6a84daed05e 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -249,4 +249,4 @@ See configuration in [readme.python.md](./readme.python.md) ## Java -See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file +See configuration in [readme.java.md](./readme.java.md) From 0677df24933984957e95298975de93ab52cdde3e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 16:31:51 -0700 Subject: [PATCH 48/54] Address comments --- .../preview/2023-07-01-preview/dns.json | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) 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 de8697d49fa9..ae618b60ecc9 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 @@ -1379,11 +1379,11 @@ "algorithmType": { "type": "integer", "format": "int32", - "description": "The digest algorithm type." + "description": "The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml" }, "value": { "type": "string", - "description": "The digest value." + "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record." } }, "description": "A digest." @@ -1394,19 +1394,19 @@ "keyTag": { "type": "integer", "format": "int32", - "description": "The key tag." + "description": "The key tag value is used to determine which DNSKEY Resource Record is used for signature verification." }, "algorithm": { "type": "integer", "format": "int32", - "description": "The algorithm." + "description": "The algorithm represents the standard security algorithm number of the DNSKEY Resource Record to which this DS record refers. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml" }, "digest": { "$ref": "#/definitions/Digest", - "description": "The digest." + "description": "The digest entity." } }, - "description": "A DS record." + "description": "A DS record. For more information about the DS record format, see RFC 4034: https://www.rfc-editor.org/rfc/rfc4034" }, "TlsaRecord": { "type": "object", @@ -1414,24 +1414,24 @@ "usage": { "type": "integer", "format": "int32", - "description": "The usage." + "description": "The usage specifies the provided association that will be used to match the certificate presented in the TLS handshake." }, "selector": { "type": "integer", "format": "int32", - "description": "The selector." + "description": "The selector specifies which part of the TLS certificate presented by the server will be matched against the association data." }, "matchingType": { "type": "integer", "format": "int32", - "description": "The matchingType." + "description": "The matching type specifies how the certificate association is presented." }, "certAssociationData": { "type": "string", - "description": "The certAssociationData." + "description": "This specifies the certificate association data to be matched." } }, - "description": "A TLSA record." + "description": "A TLSA record. For more information about the TLSA record format, see RFC 6698: https://www.rfc-editor.org/rfc/rfc6698" }, "NaptrRecord": { "type": "object", @@ -1439,31 +1439,31 @@ "order": { "type": "integer", "format": "int32", - "description": "The order." + "description": "The order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of rules. The ordering is from lowest to highest. Valid values: 0-65535." }, "preference": { "type": "integer", "format": "int32", - "description": "The preference." + "description": "The preference specifies the order in which NAPTR records with equal 'order' values should be processed, low numbers being processed before high numbers. Valid values: 0-65535." }, "flags": { "type": "string", - "description": "The flags." + "description": "The flags specific to DDDS applications. Values currently defined in RFC 3404 are uppercase and lowercase letters \"A\", \"P\", \"S\", and \"U\", and the empty string, \"\". Enclose Flags in quotation marks." }, "services": { "type": "string", - "description": "The services." + "description": "The services specific to DDDS applications. Enclose Services in quotation marks." }, "regexp": { "type": "string", - "description": "The regexp." + "description": "The regular expression that the DDDS application uses to convert an input value into an output value. For example: an IP phone system might use a regular expression to convert a phone number that is entered by a user into a SIP URI. Enclose the regular expression in quotation marks. Specify either a value for 'regexp' or a value for 'replacement'." }, "replacement": { "type": "string", - "description": "The replacement." + "description": "The replacement is a fully qualified domain name (FQDN) of the next domain name that you want the DDDS application to submit a DNS query for. The DDDS application replaces the input value with the value specified for replacement. Specify either a value for 'regexp' or a value for 'replacement'. If you specify a value for 'regexp', specify a dot (.) for 'replacement'." } }, - "description": "A NAPTR record." + "description": "A NAPTR record. For more information about the NAPTR record format, see RFC 3403: https://www.rfc-editor.org/rfc/rfc3403" }, "RecordSetProperties": { "type": "object", @@ -1669,22 +1669,22 @@ "properties": { "digestAlgorithmType": { "type": "integer", - "format": "int64", - "description": "The digest algorithm type.", + "format": "int32", + "description": "The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml", "readOnly": true }, "digestValue": { "type": "string", - "description": "The digest value.", + "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.", "readOnly": true }, "record": { "type": "string", - "description": "The record.", + "description": "The record represents a delegation signer (DS) record.", "readOnly": true } }, - "description": "The delegation signer info." + "description": "The delegation signer information." }, "SigningKey": { "type": "object", @@ -1695,36 +1695,36 @@ "items": { "$ref": "#/definitions/DelegationSignerInfo" }, - "description": "The delegation signer info.", + "description": "The delegation signer information.", "readOnly": true }, "flags": { "type": "integer", - "format": "int64", - "description": "The flags.", + "format": "int32", + "description": "The flags specifies how the key is used.", "readOnly": true }, "keyTag": { "type": "integer", - "format": "int64", - "description": "The key tag.", + "format": "int32", + "description": "The key tag value of the DNSKEY Resource Record.", "readOnly": true }, "protocol": { "type": "integer", - "format": "int64", - "description": "The protocol.", + "format": "int32", + "description": "The protocol value. The value is always 3.", "readOnly": true }, "publicKey": { "type": "string", - "description": "The public key.", + "description": "The public key, represented as a Base64 encoding.", "readOnly": true }, "securityAlgorithmType": { "type": "integer", - "format": "int64", - "description": "The signing algorithm.", + "format": "int32", + "description": "The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml", "readOnly": true } }, From f6277b62c818e1460ce7f5d60d4f932c2f3643fb Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 16:43:07 -0700 Subject: [PATCH 49/54] Add DNSKEY and DDDS in custom-words list --- custom-words.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom-words.txt b/custom-words.txt index 843b20a67a6b..f8646530eb40 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -556,6 +556,7 @@ DBFS DCOS DCSPM ddagpu +DDDS Ddos DDTHH deadletter @@ -651,6 +652,7 @@ Distro DMARC DMTS Dnat +DNSKEY dnssec Dnssec DNSSEC From 6a78019fa18146c9a77c450311ace9827ce4c00e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 17:58:36 -0700 Subject: [PATCH 50/54] Address comments --- .../preview/2023-07-01-preview/dns.json | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) 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 ae618b60ecc9..9f690ff19426 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 @@ -1373,13 +1373,21 @@ }, "description": "A CAA record." }, + "DigestAlgorithmType": { + "type": "integer", + "format": "int32", + "description": "The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml" + }, + "SecurityAlgorithmType": { + "type": "integer", + "format": "int32", + "description": "The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml" + }, "Digest": { "type": "object", "properties": { "algorithmType": { - "type": "integer", - "format": "int32", - "description": "The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml" + "$ref": "#/definitions/DigestAlgorithmType" }, "value": { "type": "string", @@ -1397,9 +1405,7 @@ "description": "The key tag value is used to determine which DNSKEY Resource Record is used for signature verification." }, "algorithm": { - "type": "integer", - "format": "int32", - "description": "The algorithm represents the standard security algorithm number of the DNSKEY Resource Record to which this DS record refers. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml" + "$ref": "#/definitions/SecurityAlgorithmType" }, "digest": { "$ref": "#/definitions/Digest", @@ -1668,9 +1674,7 @@ "type": "object", "properties": { "digestAlgorithmType": { - "type": "integer", - "format": "int32", - "description": "The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml", + "$ref": "#/definitions/DigestAlgorithmType", "readOnly": true }, "digestValue": { @@ -1722,9 +1726,7 @@ "readOnly": true }, "securityAlgorithmType": { - "type": "integer", - "format": "int32", - "description": "The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml", + "$ref": "#/definitions/SecurityAlgorithmType", "readOnly": true } }, From 78c929ee819d944221bc682b5b29a26ba0f61e74 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 23:32:48 -0700 Subject: [PATCH 51/54] Address comments --- specification/dns/resource-manager/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index c6a84daed05e..caeb1391e2d3 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -41,7 +41,7 @@ directive: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}"] suppress: PathForNestedResource - reason: DNS Zones API design. + reason: Dns Zones API design. - where: - $.definitions.RecordSetProperties.properties.TTL - $.definitions.RecordSetProperties.properties.ARecords @@ -59,6 +59,7 @@ directive: - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase + reason: Dns Zones API design. We cannot update this since Dns Zones service has already shipped public versions. - where: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put From 2ac767de37bb84c8fab6dbbacc5c7cfdeccac29e Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 23:44:11 -0700 Subject: [PATCH 52/54] Improve suppression docs --- specification/dns/resource-manager/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index caeb1391e2d3..dce0f8234113 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -66,7 +66,7 @@ directive: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].delete - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get suppress: ParametersOrder - reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. + reason: This rule demands changing order of the parameters, but we cannot do it. Changing the order would introduce a breaking change, since Dns Zones service has already shipped public versions. - where: $.definitions.Zone suppress: TopLevelResourcesListBySubscription reason: List by subscription is included in the Zones_List operation. @@ -94,7 +94,7 @@ suppressions: - code: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. - code: AvoidAdditionalProperties - reason: It can introduce a breaking change when updating parameter order, since Dns Zones service has already shipped public versions. + reason: This rule demands removing additional properties, but we cannot do it. Removing additional properties would introduce a breaking change, since Dns Zones service has already shipped public versions. ``` ### Tag: package-2018-05 From 4ef58c7a6d2fa69d574089d318f91ca613f48f47 Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 23:46:53 -0700 Subject: [PATCH 53/54] Change Dns to DNS in description --- specification/dns/resource-manager/readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index dce0f8234113..183564d509de 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -41,7 +41,7 @@ directive: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"] - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}"] suppress: PathForNestedResource - reason: Dns Zones API design. + reason: DNS Zones API design. - where: - $.definitions.RecordSetProperties.properties.TTL - $.definitions.RecordSetProperties.properties.ARecords @@ -59,14 +59,14 @@ directive: - $.definitions.RecordSetUpdateParameters.properties.RecordSet suppress: - DefinitionsPropertiesNamesCamelCase - reason: Dns Zones API design. We cannot update this since Dns Zones service has already shipped public versions. + reason: DNS Zones API design. We cannot update this since DNS Zones service has already shipped public versions. - where: - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].patch - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].put - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].delete - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}"].get suppress: ParametersOrder - reason: This rule demands changing order of the parameters, but we cannot do it. Changing the order would introduce a breaking change, since Dns Zones service has already shipped public versions. + reason: This rule demands changing order of the parameters, but we cannot do it. Changing the order would introduce a breaking change, since DNS Zones service has already shipped public versions. - where: $.definitions.Zone suppress: TopLevelResourcesListBySubscription reason: List by subscription is included in the Zones_List operation. @@ -79,9 +79,9 @@ directive: - suppress: ResourceNameRestriction reason: We already have naming validation at service end. - suppress: ResourceMustReferenceCommonTypes - reason: 'We have already defined Resource which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since Dns Zones service has already shipped public versions' + reason: 'We have already defined Resource which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since DNS Zones service has already shipped public versions' - suppress: LroErrorContent - reason: 'We have already defined CloudError which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since Dns Zones service has already shipped public versions' + reason: 'We have already defined CloudError which has exactly same json structure. Not referencing from common-types here to avoid breaking change, since DNS Zones service has already shipped public versions' suppressions: - code: XmsLongRunningOperationOptions @@ -94,7 +94,7 @@ suppressions: - code: GetCollectionOnlyHasValueAndNextLink reason: This is just a Get operation and not a List operation. - code: AvoidAdditionalProperties - reason: This rule demands removing additional properties, but we cannot do it. Removing additional properties would introduce a breaking change, since Dns Zones service has already shipped public versions. + reason: This rule demands removing additional properties, but we cannot do it. Removing additional properties would introduce a breaking change, since DNS Zones service has already shipped public versions. ``` ### Tag: package-2018-05 From 499c8f6ad403d2d002625d113034203dca7da98d Mon Sep 17 00:00:00 2001 From: Vatsalya Chauhan Date: Mon, 15 May 2023 23:55:47 -0700 Subject: [PATCH 54/54] False commit to kick git CI --- specification/dns/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 183564d509de..69fffefbadf9 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -250,4 +250,4 @@ See configuration in [readme.python.md](./readme.python.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file