diff --git a/sdk/dns/arm-dns/LICENSE.txt b/sdk/dns/arm-dns/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/dns/arm-dns/LICENSE.txt +++ b/sdk/dns/arm-dns/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/dns/arm-dns/README.md b/sdk/dns/arm-dns/README.md index 03a719b4e50b..a298c815d4ab 100644 --- a/sdk/dns/arm-dns/README.md +++ b/sdk/dns/arm-dns/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for DnsManagementClient. ### How to Install -``` +```bash npm install @azure/arm-dns ``` @@ -19,13 +19,14 @@ npm install @azure/arm-dns ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -51,7 +52,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -103,5 +104,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/dns/arm-dns/README.png) diff --git a/sdk/dns/arm-dns/package.json b/sdk/dns/arm-dns/package.json index d535adfcb1b5..5d3eb032bf20 100644 --- a/sdk/dns/arm-dns/package.json +++ b/sdk/dns/arm-dns/package.json @@ -4,9 +4,9 @@ "description": "DnsManagementClient Library with typescript type definitions for node.js and browser.", "version": "3.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/dnsManagementClient.js", "types": "./esm/dnsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/dns/arm-dns", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/dns/arm-dns", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/dns/arm-dns/rollup.config.js b/sdk/dns/arm-dns/rollup.config.js index 53c2f5f5cf47..2737b1e41813 100644 --- a/sdk/dns/arm-dns/rollup.config.js +++ b/sdk/dns/arm-dns/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/dnsManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/dnsManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-dns.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/dns/arm-dns/src/dnsManagementClientContext.ts b/sdk/dns/arm-dns/src/dnsManagementClientContext.ts index dfba561a5d21..73ad8a98bae0 100644 --- a/sdk/dns/arm-dns/src/dnsManagementClientContext.ts +++ b/sdk/dns/arm-dns/src/dnsManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-dns"; -const packageVersion = "0.1.0"; +const packageVersion = "3.2.0"; export class DnsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts b/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts index dfca3845c441..c355dc3a376f 100644 --- a/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts +++ b/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + CloudError, + DnsResourceReference, DnsResourceReferenceRequest, - SubResource, DnsResourceReferenceResult, - DnsResourceReference, - CloudError + SubResource } from "../models/mappers"; - diff --git a/sdk/dns/arm-dns/src/models/index.ts b/sdk/dns/arm-dns/src/models/index.ts index e98649e4fd69..d1290f20e2e1 100644 --- a/sdk/dns/arm-dns/src/models/index.ts +++ b/sdk/dns/arm-dns/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,736 +11,563 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ARecord. * An A record. - * */ export interface ARecord { /** - * @member {string} [ipv4Address] The IPv4 address of this A record. + * The IPv4 address of this A record. */ ipv4Address?: string; } /** - * @interface - * An interface representing AaaaRecord. * An AAAA record. - * */ export interface AaaaRecord { /** - * @member {string} [ipv6Address] The IPv6 address of this AAAA record. + * The IPv6 address of this AAAA record. */ ipv6Address?: string; } /** - * @interface - * An interface representing MxRecord. * An MX record. - * */ export interface MxRecord { /** - * @member {number} [preference] The preference value for this MX record. + * The preference value for this MX record. */ preference?: number; /** - * @member {string} [exchange] The domain name of the mail host for this MX - * record. + * The domain name of the mail host for this MX record. */ exchange?: string; } /** - * @interface - * An interface representing NsRecord. * An NS record. - * */ export interface NsRecord { /** - * @member {string} [nsdname] The name server name for this NS record. + * The name server name for this NS record. */ nsdname?: string; } /** - * @interface - * An interface representing PtrRecord. * A PTR record. - * */ export interface PtrRecord { /** - * @member {string} [ptrdname] The PTR target domain name for this PTR - * record. + * The PTR target domain name for this PTR record. */ ptrdname?: string; } /** - * @interface - * An interface representing SrvRecord. * An SRV record. - * */ export interface SrvRecord { /** - * @member {number} [priority] The priority value for this SRV record. + * The priority value for this SRV record. */ priority?: number; /** - * @member {number} [weight] The weight value for this SRV record. + * The weight value for this SRV record. */ weight?: number; /** - * @member {number} [port] The port value for this SRV record. + * The port value for this SRV record. */ port?: number; /** - * @member {string} [target] The target domain name for this SRV record. + * The target domain name for this SRV record. */ target?: string; } /** - * @interface - * An interface representing TxtRecord. * A TXT record. - * */ export interface TxtRecord { /** - * @member {string[]} [value] The text value of this TXT record. + * The text value of this TXT record. */ value?: string[]; } /** - * @interface - * An interface representing CnameRecord. * A CNAME record. - * */ export interface CnameRecord { /** - * @member {string} [cname] The canonical name for this CNAME record. + * The canonical name for this CNAME record. */ cname?: string; } /** - * @interface - * An interface representing SoaRecord. * An SOA record. - * */ export interface SoaRecord { /** - * @member {string} [host] The domain name of the authoritative name server - * for this SOA record. + * The domain name of the authoritative name server for this SOA record. */ host?: string; /** - * @member {string} [email] The email contact for this SOA record. + * The email contact for this SOA record. */ email?: string; /** - * @member {number} [serialNumber] The serial number for this SOA record. + * The serial number for this SOA record. */ serialNumber?: number; /** - * @member {number} [refreshTime] The refresh value for this SOA record. + * The refresh value for this SOA record. */ refreshTime?: number; /** - * @member {number} [retryTime] The retry time for this SOA record. + * The retry time for this SOA record. */ retryTime?: number; /** - * @member {number} [expireTime] The expire time for this SOA record. + * The expire time for this SOA record. */ expireTime?: number; /** - * @member {number} [minimumTtl] The minimum value for this SOA record. By - * convention this is used to determine the negative caching duration. + * The minimum value for this SOA record. By convention this is used to determine the negative + * caching duration. */ minimumTtl?: number; } /** - * @interface - * An interface representing CaaRecord. * A CAA record. - * */ export interface CaaRecord { /** - * @member {number} [flags] The flags for this CAA record as an integer - * between 0 and 255. + * The flags for this CAA record as an integer between 0 and 255. */ flags?: number; /** - * @member {string} [tag] The tag for this CAA record. + * The tag for this CAA record. */ tag?: string; /** - * @member {string} [value] The value for this CAA record. + * The value for this CAA record. */ value?: string; } /** - * @interface - * An interface representing SubResource. * A reference to a another resource - * */ export interface SubResource { /** - * @member {string} [id] Resource Id. + * Resource Id. */ id?: string; } /** - * @interface - * An interface representing RecordSet. - * Describes a DNS record set (a collection of DNS records with the same name - * and type). - * - * @extends BaseResource + * Describes a DNS record set (a collection of DNS records with the same name and type). */ export interface RecordSet extends BaseResource { /** - * @member {string} [id] The ID of the record set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the record set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the record set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the record set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the record set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the record set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [etag] The etag of the record set. + * The etag of the record set. */ etag?: string; /** - * @member {{ [propertyName: string]: string }} [metadata] The metadata - * attached to the record set. + * The metadata attached to the record set. */ metadata?: { [propertyName: string]: string }; /** - * @member {number} [tTL] The TTL (time-to-live) of the records in the record - * set. + * The TTL (time-to-live) of the records in the record set. */ tTL?: number; /** - * @member {string} [fqdn] Fully qualified domain name of the record set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Fully qualified domain name of the record set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly fqdn?: string; /** - * @member {string} [provisioningState] provisioning State of the record set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * provisioning State of the record set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {SubResource} [targetResource] A reference to an azure resource - * from where the dns resource value is taken. + * A reference to an azure resource from where the dns resource value is taken. */ targetResource?: SubResource; /** - * @member {ARecord[]} [aRecords] The list of A records in the record set. + * The list of A records in the record set. */ aRecords?: ARecord[]; /** - * @member {AaaaRecord[]} [aaaaRecords] The list of AAAA records in the - * record set. + * The list of AAAA records in the record set. */ aaaaRecords?: AaaaRecord[]; /** - * @member {MxRecord[]} [mxRecords] The list of MX records in the record set. + * The list of MX records in the record set. */ mxRecords?: MxRecord[]; /** - * @member {NsRecord[]} [nsRecords] The list of NS records in the record set. + * The list of NS records in the record set. */ nsRecords?: NsRecord[]; /** - * @member {PtrRecord[]} [ptrRecords] The list of PTR records in the record - * set. + * The list of PTR records in the record set. */ ptrRecords?: PtrRecord[]; /** - * @member {SrvRecord[]} [srvRecords] The list of SRV records in the record - * set. + * The list of SRV records in the record set. */ srvRecords?: SrvRecord[]; /** - * @member {TxtRecord[]} [txtRecords] The list of TXT records in the record - * set. + * The list of TXT records in the record set. */ txtRecords?: TxtRecord[]; /** - * @member {CnameRecord} [cnameRecord] The CNAME record in the record set. + * The CNAME record in the record set. */ cnameRecord?: CnameRecord; /** - * @member {SoaRecord} [soaRecord] The SOA record in the record set. + * The SOA record in the record set. */ soaRecord?: SoaRecord; /** - * @member {CaaRecord[]} [caaRecords] The list of CAA records in the record - * set. + * The list of CAA records in the record set. */ caaRecords?: CaaRecord[]; } /** - * @interface - * An interface representing RecordSetUpdateParameters. * Parameters supplied to update a record set. - * */ export interface RecordSetUpdateParameters { /** - * @member {RecordSet} [recordSet] Specifies information about the record set - * being updated. + * Specifies information about the record set being updated. */ recordSet?: RecordSet; } /** - * @interface - * An interface representing Resource. * Common properties of an Azure Resource Manager resource - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} location Resource location. + * Resource location. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Zone. * Describes a DNS zone. - * - * @extends Resource */ export interface Zone extends Resource { /** - * @member {string} [etag] The etag of the zone. + * The etag of the zone. */ etag?: string; /** - * @member {number} [maxNumberOfRecordSets] 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. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxNumberOfRecordSets?: number; /** - * @member {number} [numberOfRecordSets] 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. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly numberOfRecordSets?: number; /** - * @member {string[]} [nameServers] The name servers for this DNS zone. This - * is a read-only property and any attempt to set this value will be ignored. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name servers for this DNS zone. This is a read-only property and any attempt to set this + * value will be ignored. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nameServers?: string[]; /** - * @member {ZoneType} [zoneType] The type of this DNS zone (Public or - * Private). Possible values include: 'Public', 'Private'. Default value: - * 'Public' . + * The type of this DNS zone (Public or Private). Possible values include: 'Public', 'Private'. + * Default value: 'Public'. */ zoneType?: ZoneType; /** - * @member {SubResource[]} [registrationVirtualNetworks] A list of references - * to virtual networks that register hostnames in this DNS zone. This is a + * A list of references to virtual networks that register hostnames in this DNS zone. This is a * only when ZoneType is Private. */ registrationVirtualNetworks?: SubResource[]; /** - * @member {SubResource[]} [resolutionVirtualNetworks] A list of references - * to virtual networks that resolve records in this DNS zone. This is a only + * A list of references to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. */ resolutionVirtualNetworks?: SubResource[]; } /** - * @interface - * An interface representing ZoneUpdate. * Describes a request to update a DNS zone. - * */ export interface ZoneUpdate { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing DnsResourceReferenceRequest. * Represents the properties of the Dns Resource Reference Request. - * */ export interface DnsResourceReferenceRequest { /** - * @member {SubResource[]} [targetResources] A list of references to azure - * resources for which referencing dns records need to be queried. + * A list of references to azure resources for which referencing dns records need to be queried. */ targetResources?: SubResource[]; } /** - * @interface - * An interface representing DnsResourceReference. * Represents a single Azure resource and its referencing DNS records. - * */ export interface DnsResourceReference { /** - * @member {SubResource[]} [dnsResources] A list of dns Records + * A list of dns Records */ dnsResources?: SubResource[]; /** - * @member {SubResource} [targetResource] A reference to an azure resource - * from where the dns resource value is taken. + * A reference to an azure resource from where the dns resource value is taken. */ targetResource?: SubResource; } /** - * @interface - * An interface representing DnsResourceReferenceResult. * Represents the properties of the Dns Resource Reference Result. - * */ export interface DnsResourceReferenceResult { /** - * @member {DnsResourceReference[]} [dnsResourceReferences] The result of dns - * resource reference request. A list of dns resource references for each of + * The result of dns resource reference request. A list of dns resource references for each of * the azure resource in the request */ dnsResourceReferences?: DnsResourceReference[]; } /** - * @interface - * An interface representing RecordSetsUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] The etag of the record set. Omit this value to - * always overwrite the current record set. Specify the last-seen etag value - * to prevent accidentally overwritting concurrent changes. + * 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. */ ifMatch?: string; } /** - * @interface - * An interface representing RecordSetsCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] The etag of the record set. Omit this value to - * always overwrite the current record set. Specify the last-seen etag value - * to prevent accidentally overwritting any concurrent changes. + * 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. */ ifMatch?: string; /** - * @member {string} [ifNoneMatch] Set to '*' to allow a new record set to be - * created, but to prevent updating an existing record set. Other values will - * be ignored. + * Set to '*' to allow a new record set to be created, but to prevent updating an existing record + * set. Other values will be ignored. */ ifNoneMatch?: string; } /** - * @interface - * An interface representing RecordSetsDeleteMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] 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. + * 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. */ ifMatch?: string; } /** - * @interface - * An interface representing RecordSetsListByTypeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsListByTypeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The maximum number of record sets to return. If not - * specified, returns up to 100 record sets. + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. */ top?: number; /** - * @member {string} [recordsetnamesuffix] 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 - * . + * 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 . */ recordsetnamesuffix?: string; } /** - * @interface - * An interface representing RecordSetsListByDnsZoneOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsListByDnsZoneOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The maximum number of record sets to return. If not - * specified, returns up to 100 record sets. + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. */ top?: number; /** - * @member {string} [recordsetnamesuffix] 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 - * . + * 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 . */ recordsetnamesuffix?: string; } /** - * @interface - * An interface representing RecordSetsListAllByDnsZoneOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RecordSetsListAllByDnsZoneOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The maximum number of record sets to return. If not - * specified, returns up to 100 record sets. + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. */ top?: number; /** - * @member {string} [recordSetNameSuffix] 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 - * . + * 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 . */ recordSetNameSuffix?: string; } /** - * @interface - * An interface representing ZonesCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] The etag of the DNS zone. Omit this value to - * always overwrite the current zone. Specify the last-seen etag value to - * prevent accidentally overwritting any concurrent changes. + * 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. */ ifMatch?: string; /** - * @member {string} [ifNoneMatch] Set to '*' to allow a new DNS zone to be - * created, but to prevent updating an existing zone. Other values will be - * ignored. + * Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. + * Other values will be ignored. */ ifNoneMatch?: string; } /** - * @interface - * An interface representing ZonesDeleteMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] 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. + * 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. */ ifMatch?: string; } /** - * @interface - * An interface representing ZonesUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] The etag of the DNS zone. Omit this value to - * always overwrite the current zone. Specify the last-seen etag value to - * prevent accidentally overwritting any concurrent changes. + * 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. */ ifMatch?: string; } /** - * @interface - * An interface representing ZonesListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The maximum number of record sets to return. If not - * specified, returns up to 100 record sets. + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. */ top?: number; } /** - * @interface - * An interface representing ZonesListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The maximum number of DNS zones to return. If not - * specified, returns up to 100 zones. + * The maximum number of DNS zones to return. If not specified, returns up to 100 zones. */ top?: number; } /** - * @interface - * An interface representing ZonesBeginDeleteMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ZonesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] 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. + * 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. */ ifMatch?: string; } /** - * @interface * An interface representing DnsManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface DnsManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the RecordSetListResult. * The response to a record set List operation. - * * @extends Array */ export interface RecordSetListResult extends Array { /** - * @member {string} [nextLink] The continuation token for the next page of - * results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The continuation token for the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the ZoneListResult. * The response to a Zone List or ListAll operation. - * * @extends Array */ export interface ZoneListResult extends Array { /** - * @member {string} [nextLink] The continuation token for the next page of - * results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The continuation token for the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } @@ -775,6 +600,7 @@ export type RecordSetsUpdateResponse = RecordSet & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -794,6 +620,7 @@ export type RecordSetsCreateOrUpdateResponse = RecordSet & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -813,6 +640,7 @@ export type RecordSetsGetResponse = RecordSet & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -832,6 +660,7 @@ export type RecordSetsListByTypeResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -851,6 +680,7 @@ export type RecordSetsListByDnsZoneResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -870,6 +700,7 @@ export type RecordSetsListAllByDnsZoneResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -889,6 +720,7 @@ export type RecordSetsListByTypeNextResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -908,6 +740,7 @@ export type RecordSetsListByDnsZoneNextResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -927,6 +760,7 @@ export type RecordSetsListAllByDnsZoneNextResponse = RecordSetListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -946,6 +780,7 @@ export type ZonesCreateOrUpdateResponse = Zone & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -965,6 +800,7 @@ export type ZonesGetResponse = Zone & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -984,6 +820,7 @@ export type ZonesUpdateResponse = Zone & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1003,6 +840,7 @@ export type ZonesListByResourceGroupResponse = ZoneListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1022,6 +860,7 @@ export type ZonesListResponse = ZoneListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1041,6 +880,7 @@ export type ZonesListByResourceGroupNextResponse = ZoneListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1060,6 +900,7 @@ export type ZonesListNextResponse = ZoneListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1079,6 +920,7 @@ export type DnsResourceReferenceGetByTargetResourcesResponse = DnsResourceRefere * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/dns/arm-dns/src/models/mappers.ts b/sdk/dns/arm-dns/src/models/mappers.ts index 64f08a071154..75602f130641 100644 --- a/sdk/dns/arm-dns/src/models/mappers.ts +++ b/sdk/dns/arm-dns/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/dns/arm-dns/src/models/recordSetsMappers.ts b/sdk/dns/arm-dns/src/models/recordSetsMappers.ts index f1197af49b32..d564d6db7062 100644 --- a/sdk/dns/arm-dns/src/models/recordSetsMappers.ts +++ b/sdk/dns/arm-dns/src/models/recordSetsMappers.ts @@ -1,30 +1,27 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RecordSet, - BaseResource, - SubResource, - ARecord, AaaaRecord, + ARecord, + BaseResource, + CaaRecord, + CloudError, + CnameRecord, MxRecord, NsRecord, PtrRecord, - SrvRecord, - TxtRecord, - CnameRecord, - SoaRecord, - CaaRecord, - CloudError, + RecordSet, RecordSetListResult, Resource, + SoaRecord, + SrvRecord, + SubResource, + TxtRecord, Zone } from "../models/mappers"; - diff --git a/sdk/dns/arm-dns/src/models/zonesMappers.ts b/sdk/dns/arm-dns/src/models/zonesMappers.ts index 9bd869eef955..177ff6d4fc9a 100644 --- a/sdk/dns/arm-dns/src/models/zonesMappers.ts +++ b/sdk/dns/arm-dns/src/models/zonesMappers.ts @@ -1,31 +1,28 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - Zone, - Resource, + AaaaRecord, + ARecord, BaseResource, - SubResource, + CaaRecord, CloudError, - ZoneUpdate, - ZoneListResult, - RecordSet, - ARecord, - AaaaRecord, + CnameRecord, MxRecord, NsRecord, PtrRecord, + RecordSet, + Resource, + SoaRecord, SrvRecord, + SubResource, TxtRecord, - CnameRecord, - SoaRecord, - CaaRecord + Zone, + ZoneListResult, + ZoneUpdate } from "../models/mappers"; - diff --git a/sdk/dns/arm-dns/tsconfig.json b/sdk/dns/arm-dns/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/dns/arm-dns/tsconfig.json +++ b/sdk/dns/arm-dns/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true