From 33460ad2fc21bf988ddc774cc56f0cecf99f0aa5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 13 Sep 2018 21:58:48 +0000 Subject: [PATCH] Generated from 05e508ae8b3f08cf116cc2d22f17f16cf088830e Add azure-sdk-for-js swagger-to-sdk entry in DNS readme.md --- .../lib/dnsManagementClient.d.ts | 3 +- .../dnsManagement/lib/dnsManagementClient.js | 5 +- .../lib/models/dnsResourceReference.js | 2 - .../lib/models/dnsResourceReferenceRequest.js | 2 - .../lib/models/dnsResourceReferenceResult.js | 2 - .../dnsManagement/lib/models/index.d.ts | 102 ++++--- .../dnsManagement/lib/models/index.js | 8 +- .../dnsManagement/lib/models/recordSet.js | 20 ++ .../lib/models/recordSetUpdateParameters.js | 5 + .../dnsManagement/lib/models/resource.js | 34 ++- lib/services/dnsManagement/lib/models/zone.js | 18 +- .../dnsManagement/lib/operations/index.d.ts | 179 ++++++++---- .../dnsManagement/lib/operations/index.js | 1 + .../lib/operations/recordSets.js | 275 ++++-------------- .../dnsManagement/lib/operations/zones.js | 211 ++------------ lib/services/dnsManagement/package.json | 2 +- 16 files changed, 330 insertions(+), 539 deletions(-) diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.d.ts b/lib/services/dnsManagement/lib/dnsManagementClient.d.ts index c6e4fba895..e87667c686 100644 --- a/lib/services/dnsManagement/lib/dnsManagementClient.d.ts +++ b/lib/services/dnsManagement/lib/dnsManagementClient.d.ts @@ -21,7 +21,7 @@ export default class DnsManagementClient extends AzureServiceClient { * @class * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * - * @param {string} subscriptionId - The ID of the target subscription. + * @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. * * @param {string} [baseUri] - The base URI of the service. * @@ -58,6 +58,7 @@ export default class DnsManagementClient extends AzureServiceClient { // Operation groups recordSets: operations.RecordSets; zones: operations.Zones; + dnsResourceReferenceOperations: operations.DnsResourceReferenceOperations; } export { DnsManagementClient, models as DnsManagementModels }; diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.js b/lib/services/dnsManagement/lib/dnsManagementClient.js index 5300d8f820..40c670f518 100644 --- a/lib/services/dnsManagement/lib/dnsManagementClient.js +++ b/lib/services/dnsManagement/lib/dnsManagementClient.js @@ -27,7 +27,7 @@ class DnsManagementClient extends ServiceClient { /** * Create a DnsManagementClient. * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * @param {string} subscriptionId - The ID of the target subscription. + * @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline @@ -50,7 +50,7 @@ class DnsManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-03-01-preview'; + this.apiVersion = '2018-05-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -74,6 +74,7 @@ class DnsManagementClient extends ServiceClient { } this.recordSets = new operations.RecordSets(this); this.zones = new operations.Zones(this); + this.dnsResourceReferenceOperations = new operations.DnsResourceReferenceOperations(this); this.models = models; msRest.addSerializationMixin(this); } diff --git a/lib/services/dnsManagement/lib/models/dnsResourceReference.js b/lib/services/dnsManagement/lib/models/dnsResourceReference.js index 313ce7980e..6b1c9bb566 100644 --- a/lib/services/dnsManagement/lib/models/dnsResourceReference.js +++ b/lib/services/dnsManagement/lib/models/dnsResourceReference.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a single Azure resource and its referencing DNS records. * diff --git a/lib/services/dnsManagement/lib/models/dnsResourceReferenceRequest.js b/lib/services/dnsManagement/lib/models/dnsResourceReferenceRequest.js index 28cecc0a70..735aa7d65f 100644 --- a/lib/services/dnsManagement/lib/models/dnsResourceReferenceRequest.js +++ b/lib/services/dnsManagement/lib/models/dnsResourceReferenceRequest.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents the properties of the Dns Resource Reference Request. * diff --git a/lib/services/dnsManagement/lib/models/dnsResourceReferenceResult.js b/lib/services/dnsManagement/lib/models/dnsResourceReferenceResult.js index 3a496a25de..40a4c2c8d6 100644 --- a/lib/services/dnsManagement/lib/models/dnsResourceReferenceResult.js +++ b/lib/services/dnsManagement/lib/models/dnsResourceReferenceResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents the properties of the Dns Resource Reference Result. * diff --git a/lib/services/dnsManagement/lib/models/index.d.ts b/lib/services/dnsManagement/lib/models/index.d.ts index 2ada0aefa6..64e830e0f9 100644 --- a/lib/services/dnsManagement/lib/models/index.d.ts +++ b/lib/services/dnsManagement/lib/models/index.d.ts @@ -164,6 +164,18 @@ export interface CaaRecord { value?: string; } +/** + * @class + * Initializes a new instance of the SubResource class. + * @constructor + * A reference to a another resource + * + * @member {string} [id] Resource Id. + */ +export interface SubResource { + id?: string; +} + /** * @class * Initializes a new instance of the RecordSet class. @@ -179,6 +191,10 @@ export interface CaaRecord { * @member {number} [tTL] The TTL (time-to-live) of the records in the record * set. * @member {string} [fqdn] Fully qualified domain name of the record set. + * @member {string} [provisioningState] provisioning State of the record set. + * @member {object} [targetResource] A reference to an azure resource from + * where the dns resource value is taken. + * @member {string} [targetResource.id] Resource Id. * @member {array} [aRecords] The list of A records in the record set. * @member {array} [aaaaRecords] The list of AAAA records in the record set. * @member {array} [mxRecords] The list of MX records in the record set. @@ -212,6 +228,8 @@ export interface RecordSet extends BaseResource { metadata?: { [propertyName: string]: string }; tTL?: number; readonly fqdn?: string; + readonly provisioningState?: string; + targetResource?: SubResource; aRecords?: ARecord[]; aaaaRecords?: AaaaRecord[]; mxRecords?: MxRecord[]; @@ -242,6 +260,11 @@ export interface RecordSet extends BaseResource { * the record set. * @member {string} [recordSet.fqdn] Fully qualified domain name of the record * set. + * @member {string} [recordSet.provisioningState] provisioning State of the + * record set. + * @member {object} [recordSet.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * @member {string} [recordSet.targetResource.id] Resource Id. * @member {array} [recordSet.aRecords] The list of A records in the record * set. * @member {array} [recordSet.aaaaRecords] The list of AAAA records in the @@ -283,46 +306,24 @@ export interface RecordSetUpdateParameters { recordSet?: RecordSet; } -/** - * @class - * Initializes a new instance of the SubResource class. - * @constructor - * A reference to a another resource - * - * @member {string} [id] Resource Id. - */ -export interface SubResource { - id?: string; -} - /** * @class * Initializes a new instance of the Resource class. * @constructor - * @member {string} [id] Fully qualified resource Id for the resource. Ex - - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * @member {string} [name] The name of the resource - * @member {string} [type] The type of the resource. Ex- - * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + * Common properties of an Azure Resource Manager resource + * + * @member {string} [id] Resource ID. + * @member {string} [name] Resource name. + * @member {string} [type] Resource type. + * @member {string} location Resource location. + * @member {object} [tags] Resource tags. */ export interface Resource extends BaseResource { readonly id?: string; readonly name?: string; readonly type?: string; -} - -/** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor - * The resource model definition for a ARM tracked top level resource - * - * @member {object} [tags] Resource tags. - * @member {string} location The geo-location where the resource lives - */ -export interface TrackedResource extends Resource { - tags?: { [propertyName: string]: string }; location: string; + tags?: { [propertyName: string]: string }; } /** @@ -349,7 +350,7 @@ export interface TrackedResource extends Resource { * networks that resolve records in this DNS zone. This is a only when ZoneType * is Private. */ -export interface Zone extends TrackedResource { +export interface Zone extends Resource { etag?: string; readonly maxNumberOfRecordSets?: number; readonly numberOfRecordSets?: number; @@ -373,26 +374,45 @@ export interface ZoneUpdate { /** * @class - * Initializes a new instance of the ProxyResource class. + * Initializes a new instance of the DnsResourceReferenceRequest class. + * @constructor + * Represents the properties of the Dns Resource Reference Request. + * + * @member {array} [targetResources] A list of references to azure resources + * for which referencing dns records need to be queried. + */ +export interface DnsResourceReferenceRequest { + targetResources?: SubResource[]; +} + +/** + * @class + * Initializes a new instance of the DnsResourceReference class. * @constructor - * The resource model definition for a ARM proxy resource. It will have - * everything other than required location and tags + * Represents a single Azure resource and its referencing DNS records. * + * @member {array} [dnsResources] A list of dns Records + * @member {object} [targetResource] A reference to an azure resource from + * where the dns resource value is taken. + * @member {string} [targetResource.id] Resource Id. */ -export interface ProxyResource extends Resource { +export interface DnsResourceReference { + dnsResources?: SubResource[]; + targetResource?: SubResource; } /** * @class - * Initializes a new instance of the AzureEntityResource class. + * Initializes a new instance of the DnsResourceReferenceResult class. * @constructor - * The resource model definition for a Azure Resource Manager resource with an - * etag. + * Represents the properties of the Dns Resource Reference Result. * - * @member {string} [etag] Resource Etag. + * @member {array} [dnsResourceReferences] The result of dns resource reference + * request. A list of dns resource references for each of the azure resource in + * the request */ -export interface AzureEntityResource extends Resource { - readonly etag?: string; +export interface DnsResourceReferenceResult { + dnsResourceReferences?: DnsResourceReference[]; } diff --git a/lib/services/dnsManagement/lib/models/index.js b/lib/services/dnsManagement/lib/models/index.js index abc57ce9da..b10124f69d 100644 --- a/lib/services/dnsManagement/lib/models/index.js +++ b/lib/services/dnsManagement/lib/models/index.js @@ -28,14 +28,14 @@ exports.TxtRecord = require('./txtRecord'); exports.CnameRecord = require('./cnameRecord'); exports.SoaRecord = require('./soaRecord'); exports.CaaRecord = require('./caaRecord'); +exports.SubResource = require('./subResource'); exports.RecordSet = require('./recordSet'); exports.RecordSetUpdateParameters = require('./recordSetUpdateParameters'); -exports.SubResource = require('./subResource'); exports.Resource = require('./resource'); -exports.TrackedResource = require('./trackedResource'); exports.Zone = require('./zone'); exports.ZoneUpdate = require('./zoneUpdate'); -exports.ProxyResource = require('./proxyResource'); -exports.AzureEntityResource = require('./azureEntityResource'); +exports.DnsResourceReferenceRequest = require('./dnsResourceReferenceRequest'); +exports.DnsResourceReference = require('./dnsResourceReference'); +exports.DnsResourceReferenceResult = require('./dnsResourceReferenceResult'); exports.RecordSetListResult = require('./recordSetListResult'); exports.ZoneListResult = require('./zoneListResult'); diff --git a/lib/services/dnsManagement/lib/models/recordSet.js b/lib/services/dnsManagement/lib/models/recordSet.js index f41f63c404..6fcf7f6d40 100644 --- a/lib/services/dnsManagement/lib/models/recordSet.js +++ b/lib/services/dnsManagement/lib/models/recordSet.js @@ -29,6 +29,10 @@ class RecordSet extends models['BaseResource'] { * @member {number} [tTL] The TTL (time-to-live) of the records in the record * set. * @member {string} [fqdn] Fully qualified domain name of the record set. + * @member {string} [provisioningState] provisioning State of the record set. + * @member {object} [targetResource] A reference to an azure resource from + * where the dns resource value is taken. + * @member {string} [targetResource.id] Resource Id. * @member {array} [aRecords] The list of A records in the record set. * @member {array} [aaaaRecords] The list of AAAA records in the record set. * @member {array} [mxRecords] The list of MX records in the record set. @@ -133,6 +137,22 @@ class RecordSet extends models['BaseResource'] { name: 'String' } }, + provisioningState: { + required: false, + readOnly: true, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + targetResource: { + required: false, + serializedName: 'properties.targetResource', + type: { + name: 'Composite', + className: 'SubResource' + } + }, aRecords: { required: false, serializedName: 'properties.ARecords', diff --git a/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js b/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js index 89f488954c..e75c52a527 100644 --- a/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js +++ b/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js @@ -29,6 +29,11 @@ class RecordSetUpdateParameters { * the record set. * @member {string} [recordSet.fqdn] Fully qualified domain name of the * record set. + * @member {string} [recordSet.provisioningState] provisioning State of the + * record set. + * @member {object} [recordSet.targetResource] A reference to an azure + * resource from where the dns resource value is taken. + * @member {string} [recordSet.targetResource.id] Resource Id. * @member {array} [recordSet.aRecords] The list of A records in the record * set. * @member {array} [recordSet.aaaaRecords] The list of AAAA records in the diff --git a/lib/services/dnsManagement/lib/models/resource.js b/lib/services/dnsManagement/lib/models/resource.js index b9797bc86d..e1a4b6ebd6 100644 --- a/lib/services/dnsManagement/lib/models/resource.js +++ b/lib/services/dnsManagement/lib/models/resource.js @@ -13,17 +13,18 @@ const models = require('./index'); /** - * Class representing a Resource. + * Common properties of an Azure Resource Manager resource + * * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Fully qualified resource Id for the resource. Ex - - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * @member {string} [name] The name of the resource - * @member {string} [type] The type of the resource. Ex- - * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + * @member {string} [id] Resource ID. + * @member {string} [name] Resource name. + * @member {string} [type] Resource type. + * @member {string} location Resource location. + * @member {object} [tags] Resource tags. */ constructor() { super(); @@ -66,6 +67,27 @@ class Resource extends models['BaseResource'] { type: { name: 'String' } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/lib/services/dnsManagement/lib/models/zone.js b/lib/services/dnsManagement/lib/models/zone.js index b6d3434c70..5c1728ee72 100644 --- a/lib/services/dnsManagement/lib/models/zone.js +++ b/lib/services/dnsManagement/lib/models/zone.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * Describes a DNS zone. * - * @extends models['TrackedResource'] + * @extends models['Resource'] */ -class Zone extends models['TrackedResource'] { +class Zone extends models['Resource'] { /** * Create a Zone. * @member {string} [etag] The etag of the zone. @@ -80,6 +80,13 @@ class Zone extends models['TrackedResource'] { name: 'String' } }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, tags: { required: false, serializedName: 'tags', @@ -94,13 +101,6 @@ class Zone extends models['TrackedResource'] { } } }, - location: { - required: true, - serializedName: 'location', - type: { - name: 'String' - } - }, etag: { required: false, serializedName: 'etag', diff --git a/lib/services/dnsManagement/lib/operations/index.d.ts b/lib/services/dnsManagement/lib/operations/index.d.ts index dfe431434e..3f5e970c14 100644 --- a/lib/services/dnsManagement/lib/operations/index.d.ts +++ b/lib/services/dnsManagement/lib/operations/index.d.ts @@ -24,8 +24,7 @@ export interface RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -47,6 +46,11 @@ export interface RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -121,8 +125,7 @@ export interface RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -144,6 +147,11 @@ export interface RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -237,8 +245,7 @@ export interface RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -262,6 +269,11 @@ export interface RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -340,8 +352,7 @@ export interface RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -365,6 +376,11 @@ export interface RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -462,8 +478,7 @@ export interface RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -496,8 +511,7 @@ export interface RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -548,8 +562,7 @@ export interface RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -577,8 +590,7 @@ export interface RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -625,8 +637,7 @@ export interface RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -659,8 +670,7 @@ export interface RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -712,8 +722,7 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -742,8 +751,7 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -791,8 +799,7 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -821,8 +828,7 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1050,8 +1056,7 @@ export interface Zones { /** * Creates or updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1072,10 +1077,9 @@ export interface Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.location Resource location. * - * @param {string} parameters.location The geo-location where the resource - * lives + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -1101,8 +1105,7 @@ export interface Zones { /** * Creates or updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1123,10 +1126,9 @@ export interface Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.location Resource location. * - * @param {string} parameters.location The geo-location where the resource - * lives + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -1172,8 +1174,7 @@ export interface Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1199,8 +1200,7 @@ export interface Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1244,8 +1244,7 @@ export interface Zones { * Gets a DNS zone. Retrieves the zone properties, but not the record sets * within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1267,8 +1266,7 @@ export interface Zones { * Gets a DNS zone. Retrieves the zone properties, but not the record sets * within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1308,8 +1306,7 @@ export interface Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1338,8 +1335,7 @@ export interface Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1387,8 +1383,7 @@ export interface Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -1409,8 +1404,7 @@ export interface Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -1508,8 +1502,7 @@ export interface Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1535,8 +1528,7 @@ export interface Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1689,3 +1681,74 @@ export interface Zones { listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } + +/** + * @class + * DnsResourceReferenceOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the DnsManagementClient. + */ +export interface DnsResourceReferenceOperations { + + + /** + * Returns the DNS records specified by the referencing targetResourceIds. + * + * @param {object} parameters Properties for dns resource reference request. + * + * @param {array} [parameters.targetResources] A list of references to azure + * resources for which referencing dns records need to be queried. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getByTargetResourcesWithHttpOperationResponse(parameters: models.DnsResourceReferenceRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Returns the DNS records specified by the referencing targetResourceIds. + * + * @param {object} parameters Properties for dns resource reference request. + * + * @param {array} [parameters.targetResources] A list of references to azure + * resources for which referencing dns records need to be queried. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {DnsResourceReferenceResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {DnsResourceReferenceResult} [result] - The deserialized result object if an error did not occur. + * See {@link DnsResourceReferenceResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + getByTargetResources(parameters: models.DnsResourceReferenceRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getByTargetResources(parameters: models.DnsResourceReferenceRequest, callback: ServiceCallback): void; + getByTargetResources(parameters: models.DnsResourceReferenceRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} diff --git a/lib/services/dnsManagement/lib/operations/index.js b/lib/services/dnsManagement/lib/operations/index.js index 73416feeb5..f42330ecfe 100644 --- a/lib/services/dnsManagement/lib/operations/index.js +++ b/lib/services/dnsManagement/lib/operations/index.js @@ -16,3 +16,4 @@ exports.RecordSets = require('./recordSets'); exports.Zones = require('./zones'); +exports.DnsResourceReferenceOperations = require('./dnsResourceReferenceOperations'); diff --git a/lib/services/dnsManagement/lib/operations/recordSets.js b/lib/services/dnsManagement/lib/operations/recordSets.js index 3fd6b4c92f..b12f07c67e 100644 --- a/lib/services/dnsManagement/lib/operations/recordSets.js +++ b/lib/services/dnsManagement/lib/operations/recordSets.js @@ -17,8 +17,7 @@ const WebResource = msRest.WebResource; /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -40,6 +39,11 @@ const WebResource = msRest.WebResource; * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -132,20 +136,6 @@ function _update(resourceGroupName, zoneName, relativeRecordSetName, recordType, if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -169,21 +159,9 @@ function _update(resourceGroupName, zoneName, relativeRecordSetName, recordType, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -302,8 +280,7 @@ function _update(resourceGroupName, zoneName, relativeRecordSetName, recordType, /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -327,6 +304,11 @@ function _update(resourceGroupName, zoneName, relativeRecordSetName, recordType, * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -424,20 +406,6 @@ function _createOrUpdate(resourceGroupName, zoneName, relativeRecordSetName, rec if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -464,21 +432,9 @@ function _createOrUpdate(resourceGroupName, zoneName, relativeRecordSetName, rec if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -617,8 +573,7 @@ function _createOrUpdate(resourceGroupName, zoneName, relativeRecordSetName, rec /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -668,20 +623,6 @@ function _deleteMethod(resourceGroupName, zoneName, relativeRecordSetName, recor if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -702,21 +643,9 @@ function _deleteMethod(resourceGroupName, zoneName, relativeRecordSetName, recor if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -804,8 +733,7 @@ function _deleteMethod(resourceGroupName, zoneName, relativeRecordSetName, recor /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -850,20 +778,6 @@ function _get(resourceGroupName, zoneName, relativeRecordSetName, recordType, op if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -881,21 +795,9 @@ function _get(resourceGroupName, zoneName, relativeRecordSetName, recordType, op if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -997,8 +899,7 @@ function _get(resourceGroupName, zoneName, relativeRecordSetName, recordType, op /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1050,20 +951,6 @@ function _listByType(resourceGroupName, zoneName, recordType, options, callback) if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -1084,21 +971,9 @@ function _listByType(resourceGroupName, zoneName, recordType, options, callback) if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1205,8 +1080,7 @@ function _listByType(resourceGroupName, zoneName, recordType, options, callback) /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1254,20 +1128,6 @@ function _listByDnsZone(resourceGroupName, zoneName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -1280,21 +1140,9 @@ function _listByDnsZone(resourceGroupName, zoneName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1400,8 +1248,7 @@ function _listByDnsZone(resourceGroupName, zoneName, options, callback) { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1449,20 +1296,6 @@ function _listAllByDnsZone(resourceGroupName, zoneName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -1475,21 +1308,9 @@ function _listAllByDnsZone(resourceGroupName, zoneName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1996,8 +1817,7 @@ class RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2019,6 +1839,11 @@ class RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -2105,8 +1930,7 @@ class RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2128,6 +1952,11 @@ class RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -2236,8 +2065,7 @@ class RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2261,6 +2089,11 @@ class RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -2351,8 +2184,7 @@ class RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2376,6 +2208,11 @@ class RecordSets { * @param {number} [parameters.tTL] The TTL (time-to-live) of the records in * the record set. * + * @param {object} [parameters.targetResource] A reference to an azure resource + * from where the dns resource value is taken. + * + * @param {string} [parameters.targetResource.id] Resource Id. + * * @param {array} [parameters.aRecords] The list of A records in the record * set. * @@ -2488,8 +2325,7 @@ class RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2534,8 +2370,7 @@ class RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2601,8 +2436,7 @@ class RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2642,8 +2476,7 @@ class RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2705,8 +2538,7 @@ class RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2751,8 +2583,7 @@ class RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2819,8 +2650,7 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2861,8 +2691,7 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2925,8 +2754,7 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2967,8 +2795,7 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). diff --git a/lib/services/dnsManagement/lib/operations/zones.js b/lib/services/dnsManagement/lib/operations/zones.js index ed245e6ed6..65855a68fc 100644 --- a/lib/services/dnsManagement/lib/operations/zones.js +++ b/lib/services/dnsManagement/lib/operations/zones.js @@ -17,8 +17,7 @@ const WebResource = msRest.WebResource; /** * Creates or updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -39,10 +38,9 @@ const WebResource = msRest.WebResource; * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.location Resource location. * - * @param {string} parameters.location The geo-location where the resource - * lives + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -87,20 +85,6 @@ function _createOrUpdate(resourceGroupName, zoneName, parameters, options, callb if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -116,21 +100,9 @@ function _createOrUpdate(resourceGroupName, zoneName, parameters, options, callb if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -269,8 +241,7 @@ function _createOrUpdate(resourceGroupName, zoneName, parameters, options, callb * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -338,8 +309,7 @@ function _deleteMethod(resourceGroupName, zoneName, options, callback) { * Gets a DNS zone. Retrieves the zone properties, but not the record sets * within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -377,41 +347,15 @@ function _get(resourceGroupName, zoneName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -511,8 +455,7 @@ function _get(resourceGroupName, zoneName, options, callback) { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -559,20 +502,6 @@ function _update(resourceGroupName, zoneName, parameters, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -585,21 +514,9 @@ function _update(resourceGroupName, zoneName, parameters, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -716,8 +633,7 @@ function _update(resourceGroupName, zoneName, parameters, options, callback) { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -756,41 +672,15 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (top !== null && top !== undefined && typeof top !== 'number') { throw new Error('top must be of type number.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -932,21 +822,9 @@ function _list(options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1048,8 +926,7 @@ function _list(options, callback) { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1091,20 +968,6 @@ function _beginDeleteMethod(resourceGroupName, zoneName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName !== null && resourceGroupName !== undefined) { - if (resourceGroupName.length > 90) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); - } - if (resourceGroupName.length < 1) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); - } - if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) - { - throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); - } - } if (zoneName === null || zoneName === undefined || typeof zoneName.valueOf() !== 'string') { throw new Error('zoneName cannot be null or undefined and it must be of type string.'); } @@ -1114,21 +977,9 @@ function _beginDeleteMethod(resourceGroupName, zoneName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } - if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { - if (this.client.apiVersion.length < 1) - { - throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { - if (this.client.subscriptionId.length < 1) - { - throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); - } - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1487,8 +1338,7 @@ class Zones { /** * Creates or updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1509,10 +1359,9 @@ class Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.location Resource location. * - * @param {string} parameters.location The geo-location where the resource - * lives + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -1550,8 +1399,7 @@ class Zones { /** * Creates or updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1572,10 +1420,9 @@ class Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.location Resource location. * - * @param {string} parameters.location The geo-location where the resource - * lives + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -1636,8 +1483,7 @@ class Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1675,8 +1521,7 @@ class Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1735,8 +1580,7 @@ class Zones { * Gets a DNS zone. Retrieves the zone properties, but not the record sets * within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1770,8 +1614,7 @@ class Zones { * Gets a DNS zone. Retrieves the zone properties, but not the record sets * within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1826,8 +1669,7 @@ class Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1868,8 +1710,7 @@ class Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1932,8 +1773,7 @@ class Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -1966,8 +1806,7 @@ class Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -2107,8 +1946,7 @@ class Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2146,8 +1984,7 @@ class Zones { * Deletes a DNS zone. WARNING: All DNS records in the zone will also be * deleted. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. The name - * is case insensitive. + * @param {string} resourceGroupName The name of the resource group. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). diff --git a/lib/services/dnsManagement/package.json b/lib/services/dnsManagement/package.json index f0b38fd934..95d2456087 100644 --- a/lib/services/dnsManagement/package.json +++ b/lib/services/dnsManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/dnsManagementClient.js", "types": "./lib/dnsManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/dnsManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"