diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.d.ts b/lib/services/dnsManagement/lib/dnsManagementClient.d.ts index 47b7ab6f52..dd8b2772e3 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 - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. + * @param {string} subscriptionId - The ID of the target subscription. * * @param {string} [baseUri] - The base URI of the service. * diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.js b/lib/services/dnsManagement/lib/dnsManagementClient.js index 0de5e08bba..229370e385 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 - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. + * @param {string} subscriptionId - The ID of the target 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 diff --git a/lib/services/dnsManagement/lib/models/azureEntityResource.js b/lib/services/dnsManagement/lib/models/azureEntityResource.js new file mode 100644 index 0000000000..a87a9fe033 --- /dev/null +++ b/lib/services/dnsManagement/lib/models/azureEntityResource.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The resource model definition for a Azure Resource Manager resource with an + * etag. + * + * @extends models['Resource'] + */ +class AzureEntityResource extends models['Resource'] { + /** + * Create a AzureEntityResource. + * @member {string} [etag] Resource Etag. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureEntityResource + * + * @returns {object} metadata of AzureEntityResource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureEntityResource', + type: { + name: 'Composite', + className: 'AzureEntityResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureEntityResource; diff --git a/lib/services/dnsManagement/lib/models/index.d.ts b/lib/services/dnsManagement/lib/models/index.d.ts index 4639ea05fb..2ada0aefa6 100644 --- a/lib/services/dnsManagement/lib/models/index.d.ts +++ b/lib/services/dnsManagement/lib/models/index.d.ts @@ -299,20 +299,30 @@ export interface SubResource { * @class * Initializes a new instance of the Resource class. * @constructor - * 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. + * @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. */ export interface Resource extends BaseResource { readonly id?: string; readonly name?: string; readonly type?: string; - location: 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; } /** @@ -339,7 +349,7 @@ export interface Resource extends BaseResource { * networks that resolve records in this DNS zone. This is a only when ZoneType * is Private. */ -export interface Zone extends Resource { +export interface Zone extends TrackedResource { etag?: string; readonly maxNumberOfRecordSets?: number; readonly numberOfRecordSets?: number; @@ -361,6 +371,30 @@ export interface ZoneUpdate { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the ProxyResource class. + * @constructor + * The resource model definition for a ARM proxy resource. It will have + * everything other than required location and tags + * + */ +export interface ProxyResource extends Resource { +} + +/** + * @class + * Initializes a new instance of the AzureEntityResource class. + * @constructor + * The resource model definition for a Azure Resource Manager resource with an + * etag. + * + * @member {string} [etag] Resource Etag. + */ +export interface AzureEntityResource extends Resource { + readonly etag?: string; +} + /** * @class diff --git a/lib/services/dnsManagement/lib/models/index.js b/lib/services/dnsManagement/lib/models/index.js index 0d19602959..abc57ce9da 100644 --- a/lib/services/dnsManagement/lib/models/index.js +++ b/lib/services/dnsManagement/lib/models/index.js @@ -32,7 +32,10 @@ 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.RecordSetListResult = require('./recordSetListResult'); exports.ZoneListResult = require('./zoneListResult'); diff --git a/lib/services/dnsManagement/lib/models/proxyResource.js b/lib/services/dnsManagement/lib/models/proxyResource.js new file mode 100644 index 0000000000..43e93ec60e --- /dev/null +++ b/lib/services/dnsManagement/lib/models/proxyResource.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The resource model definition for a ARM proxy resource. It will have + * everything other than required location and tags + * + * @extends models['Resource'] + */ +class ProxyResource extends models['Resource'] { + /** + * Create a ProxyResource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ProxyResource + * + * @returns {object} metadata of ProxyResource + * + */ + mapper() { + return { + required: false, + serializedName: 'ProxyResource', + type: { + name: 'Composite', + className: 'ProxyResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ProxyResource; diff --git a/lib/services/dnsManagement/lib/models/resource.js b/lib/services/dnsManagement/lib/models/resource.js index e1a4b6ebd6..b9797bc86d 100644 --- a/lib/services/dnsManagement/lib/models/resource.js +++ b/lib/services/dnsManagement/lib/models/resource.js @@ -13,18 +13,17 @@ const models = require('./index'); /** - * Common properties of an Azure Resource Manager resource - * + * Class representing a Resource. * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { /** * Create a 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. + * @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. */ constructor() { super(); @@ -67,27 +66,6 @@ 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/trackedResource.js b/lib/services/dnsManagement/lib/models/trackedResource.js new file mode 100644 index 0000000000..5c6804d7c8 --- /dev/null +++ b/lib/services/dnsManagement/lib/models/trackedResource.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The resource model definition for a ARM tracked top level resource + * + * @extends models['Resource'] + */ +class TrackedResource extends models['Resource'] { + /** + * Create a TrackedResource. + * @member {object} [tags] Resource tags. + * @member {string} location The geo-location where the resource lives + */ + constructor() { + super(); + } + + /** + * Defines the metadata of TrackedResource + * + * @returns {object} metadata of TrackedResource + * + */ + mapper() { + return { + required: false, + serializedName: 'TrackedResource', + type: { + name: 'Composite', + className: 'TrackedResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = TrackedResource; diff --git a/lib/services/dnsManagement/lib/models/zone.js b/lib/services/dnsManagement/lib/models/zone.js index 5c1728ee72..b6d3434c70 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['Resource'] + * @extends models['TrackedResource'] */ -class Zone extends models['Resource'] { +class Zone extends models['TrackedResource'] { /** * Create a Zone. * @member {string} [etag] The etag of the zone. @@ -80,13 +80,6 @@ class Zone extends models['Resource'] { name: 'String' } }, - location: { - required: true, - serializedName: 'location', - type: { - name: 'String' - } - }, tags: { required: false, serializedName: 'tags', @@ -101,6 +94,13 @@ class Zone extends models['Resource'] { } } }, + 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 1153659198..dfe431434e 100644 --- a/lib/services/dnsManagement/lib/operations/index.d.ts +++ b/lib/services/dnsManagement/lib/operations/index.d.ts @@ -1072,10 +1072,11 @@ export interface Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {string} parameters.location Resource location. - * * @param {object} [parameters.tags] Resource tags. * + * @param {string} parameters.location The geo-location where the resource + * lives + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] The etag of the DNS zone. Omit this value @@ -1122,10 +1123,11 @@ export interface Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {string} parameters.location Resource location. - * * @param {object} [parameters.tags] Resource tags. * + * @param {string} parameters.location The geo-location where the resource + * lives + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] The etag of the DNS zone. Omit this value diff --git a/lib/services/dnsManagement/lib/operations/recordSets.js b/lib/services/dnsManagement/lib/operations/recordSets.js index 584fc0dfa2..3fd6b4c92f 100644 --- a/lib/services/dnsManagement/lib/operations/recordSets.js +++ b/lib/services/dnsManagement/lib/operations/recordSets.js @@ -169,9 +169,21 @@ 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.'); } @@ -452,9 +464,21 @@ 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.'); } @@ -678,9 +702,21 @@ 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.'); } @@ -845,9 +881,21 @@ 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.'); } @@ -1036,9 +1084,21 @@ 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.'); } @@ -1220,9 +1280,21 @@ 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.'); } @@ -1403,9 +1475,21 @@ 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.'); } diff --git a/lib/services/dnsManagement/lib/operations/zones.js b/lib/services/dnsManagement/lib/operations/zones.js index 46985a4071..ed245e6ed6 100644 --- a/lib/services/dnsManagement/lib/operations/zones.js +++ b/lib/services/dnsManagement/lib/operations/zones.js @@ -39,10 +39,11 @@ const WebResource = msRest.WebResource; * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {string} parameters.location Resource location. - * * @param {object} [parameters.tags] Resource tags. * + * @param {string} parameters.location The geo-location where the resource + * lives + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] The etag of the DNS zone. Omit this value @@ -115,9 +116,21 @@ 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.'); } @@ -384,9 +397,21 @@ function _get(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.'); } @@ -560,9 +585,21 @@ 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.'); } @@ -739,9 +776,21 @@ function _listByResourceGroup(resourceGroupName, 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.'); } @@ -883,9 +932,21 @@ 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.'); } @@ -1053,9 +1114,21 @@ 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.'); } @@ -1436,10 +1509,11 @@ class Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {string} parameters.location Resource location. - * * @param {object} [parameters.tags] Resource tags. * + * @param {string} parameters.location The geo-location where the resource + * lives + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] The etag of the DNS zone. Omit this value @@ -1498,10 +1572,11 @@ class Zones { * to virtual networks that resolve records in this DNS zone. This is a only * when ZoneType is Private. * - * @param {string} parameters.location Resource location. - * * @param {object} [parameters.tags] Resource tags. * + * @param {string} parameters.location The geo-location where the resource + * lives + * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] The etag of the DNS zone. Omit this value