diff --git a/lib/services/dnsManagement/LICENSE.txt b/lib/services/dnsManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/dnsManagement/LICENSE.txt +++ b/lib/services/dnsManagement/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/services/dnsManagement/README.md b/lib/services/dnsManagement/README.md index a0605693ba..82c1f6898c 100644 --- a/lib/services/dnsManagement/README.md +++ b/lib/services/dnsManagement/README.md @@ -1,44 +1,44 @@ ---- -uid: azure-arm-dns -summary: *content - ---- -# Microsoft Azure SDK for Node.js - DnsManagementClient -This project provides a Node.js package for accessing Azure. Right now it supports: -- **Node.js version 6.x.x or higher** - -## Features - - -## How to Install - -```bash -npm install azure-arm-dns -``` - -## How to use - -### Authentication, client creation and get recordSets as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const DnsManagementClient = require("azure-arm-dns"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new DnsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const zoneName = "testzoneName"; - const relativeRecordSetName = "testrelativeRecordSetName"; - const recordType = "A"; - return client.recordSets.get(resourceGroupName, zoneName, relativeRecordSetName, recordType).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error ocurred:'); - console.dir(err, {depth: null, colors: true}); -}); - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) +--- +uid: azure-arm-dns +summary: *content + +--- +# Microsoft Azure SDK for Node.js - DnsManagementClient +This project provides a Node.js package for accessing Azure. Right now it supports: +- **Node.js version 6.x.x or higher** + +## Features + + +## How to Install + +```bash +npm install azure-arm-dns +``` + +## How to use + +### Authentication, client creation and get recordSets as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const DnsManagementClient = require("azure-arm-dns"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new DnsManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const zoneName = "testzoneName"; + const relativeRecordSetName = "testrelativeRecordSetName"; + const recordType = "A"; + return client.recordSets.get(resourceGroupName, zoneName, relativeRecordSetName, recordType).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.log('An error occurred:'); + console.dir(err, {depth: null, colors: true}); +}); + +## Related projects + +- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.d.ts b/lib/services/dnsManagement/lib/dnsManagementClient.d.ts index 47b7ab6f52..c6e4fba895 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. * @@ -34,11 +34,11 @@ export default class DnsManagementClient extends AzureServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {string} [options.acceptLanguage] - The preferred language for the response. * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); diff --git a/lib/services/dnsManagement/lib/dnsManagementClient.js b/lib/services/dnsManagement/lib/dnsManagementClient.js index 0de5e08bba..5300d8f820 100644 --- a/lib/services/dnsManagement/lib/dnsManagementClient.js +++ b/lib/services/dnsManagement/lib/dnsManagementClient.js @@ -27,16 +27,16 @@ 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 * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { 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/recordSetUpdateParameters.js b/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js index 8702017708..89f488954c 100644 --- a/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js +++ b/lib/services/dnsManagement/lib/models/recordSetUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Parameters supplied to update a record set. * 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 c1e4045aab..dfe431434e 100644 --- a/lib/services/dnsManagement/lib/operations/index.d.ts +++ b/lib/services/dnsManagement/lib/operations/index.d.ts @@ -24,7 +24,8 @@ export interface RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -120,7 +121,8 @@ export interface RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -235,7 +237,8 @@ export interface RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -337,7 +340,8 @@ export interface RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -458,7 +462,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -491,7 +496,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -542,7 +548,8 @@ export interface RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -570,7 +577,8 @@ export interface RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -617,7 +625,8 @@ export interface RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -650,7 +659,8 @@ export interface RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -702,7 +712,8 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -731,7 +742,8 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -779,7 +791,8 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -808,7 +821,8 @@ export interface RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1036,7 +1050,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1057,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 @@ -1085,7 +1101,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1106,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 @@ -1154,7 +1172,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1180,7 +1199,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1224,7 +1244,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1246,7 +1267,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1286,7 +1308,8 @@ export interface Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1315,7 +1338,8 @@ export interface Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1363,7 +1387,8 @@ export interface Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -1384,7 +1409,8 @@ export interface Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -1482,7 +1508,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1508,7 +1535,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). diff --git a/lib/services/dnsManagement/lib/operations/recordSets.js b/lib/services/dnsManagement/lib/operations/recordSets.js index a78fba6519..3fd6b4c92f 100644 --- a/lib/services/dnsManagement/lib/operations/recordSets.js +++ b/lib/services/dnsManagement/lib/operations/recordSets.js @@ -17,7 +17,8 @@ const WebResource = msRest.WebResource; /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -131,6 +132,20 @@ 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.'); } @@ -154,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.'); } @@ -275,7 +302,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -396,6 +424,20 @@ 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.'); } @@ -422,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.'); } @@ -563,7 +617,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -613,6 +668,20 @@ 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.'); } @@ -633,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.'); } @@ -723,7 +804,8 @@ function _deleteMethod(resourceGroupName, zoneName, relativeRecordSetName, recor /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -768,6 +850,20 @@ 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.'); } @@ -785,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.'); } @@ -889,7 +997,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -941,6 +1050,20 @@ 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.'); } @@ -961,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.'); } @@ -1070,7 +1205,8 @@ function _listByType(resourceGroupName, zoneName, recordType, options, callback) /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1118,6 +1254,20 @@ 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.'); } @@ -1130,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.'); } @@ -1238,7 +1400,8 @@ function _listByDnsZone(resourceGroupName, zoneName, options, callback) { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1286,6 +1449,20 @@ 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.'); } @@ -1298,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.'); } @@ -1807,7 +1996,8 @@ class RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1915,7 +2105,8 @@ class RecordSets { /** * Updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2045,7 +2236,8 @@ class RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2159,7 +2351,8 @@ class RecordSets { /** * Creates or updates a record set within a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2295,7 +2488,8 @@ class RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2340,7 +2534,8 @@ class RecordSets { /** * Deletes a record set from a DNS zone. This operation cannot be undone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2406,7 +2601,8 @@ class RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2446,7 +2642,8 @@ class RecordSets { /** * Gets a record set. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2508,7 +2705,8 @@ class RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2553,7 +2751,8 @@ class RecordSets { /** * Lists the record sets of a specified type in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2620,7 +2819,8 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2661,7 +2861,8 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2724,7 +2925,8 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -2765,7 +2967,8 @@ class RecordSets { /** * Lists all record sets in a DNS zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @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 65855a68fc..ed245e6ed6 100644 --- a/lib/services/dnsManagement/lib/operations/zones.js +++ b/lib/services/dnsManagement/lib/operations/zones.js @@ -17,7 +17,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -38,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 @@ -85,6 +87,20 @@ 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.'); } @@ -100,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.'); } @@ -241,7 +269,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -309,7 +338,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -347,15 +377,41 @@ 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.'); } @@ -455,7 +511,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -502,6 +559,20 @@ 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.'); } @@ -514,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.'); } @@ -633,7 +716,8 @@ function _update(resourceGroupName, zoneName, parameters, options, callback) { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -672,15 +756,41 @@ 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.'); } @@ -822,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.'); } @@ -926,7 +1048,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -968,6 +1091,20 @@ 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.'); } @@ -977,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.'); } @@ -1338,7 +1487,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1359,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 @@ -1399,7 +1550,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1420,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 @@ -1483,7 +1636,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1521,7 +1675,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1580,7 +1735,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1614,7 +1770,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1669,7 +1826,8 @@ class Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1710,7 +1868,8 @@ class Zones { /** * Updates a DNS zone. Does not modify DNS records within the zone. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1773,7 +1932,8 @@ class Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -1806,7 +1966,8 @@ class Zones { /** * Lists the DNS zones within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -1946,7 +2107,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). @@ -1984,7 +2146,8 @@ 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. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} zoneName The name of the DNS zone (without a terminating * dot). diff --git a/lib/services/dnsManagement/package-lock.json b/lib/services/dnsManagement/package-lock.json new file mode 100644 index 0000000000..d411ac3bfc --- /dev/null +++ b/lib/services/dnsManagement/package-lock.json @@ -0,0 +1,483 @@ +{ + "name": "azure-arm-dns", + "version": "3.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/node": { + "version": "8.10.26", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.26.tgz", + "integrity": "sha512-opk6bLLErLSwyVVJeSH5Ek7ZWOBSsN0JrvXTNVGLXLAXKB9xlTYajrplR44xVyMrmbut94H6uJ9jqzM/12jxkA==" + }, + "adal-node": { + "version": "0.1.28", + "resolved": "https://registry.npmjs.org/adal-node/-/adal-node-0.1.28.tgz", + "integrity": "sha1-RoxLs+u9lrEnBmn0ucuk4AZepIU=", + "requires": { + "@types/node": "^8.0.47", + "async": ">=0.6.0", + "date-utils": "*", + "jws": "3.x.x", + "request": ">= 2.52.0", + "underscore": ">= 1.3.1", + "uuid": "^3.1.0", + "xmldom": ">= 0.1.x", + "xpath.js": "~1.1.0" + } + }, + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "requires": { + "lodash": "^4.14.0" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "optional": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "combined-stream": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "date-utils": { + "version": "1.2.21", + "resolved": "https://registry.npmjs.org/date-utils/-/date-utils-1.2.21.tgz", + "integrity": "sha1-YfsWzcEnSzyayq/+n8ad+HIKK2Q=" + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=" + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "optional": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", + "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "1.0.6", + "mime-types": "^2.1.12" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", + "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", + "requires": { + "ajv": "^5.3.0", + "har-schema": "^2.0.0" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jwa": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz", + "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.10", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", + "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", + "requires": { + "jwa": "^1.1.5", + "safe-buffer": "^5.0.1" + } + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + }, + "mime-db": { + "version": "1.35.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", + "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==" + }, + "mime-types": { + "version": "2.1.19", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", + "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", + "requires": { + "mime-db": "~1.35.0" + } + }, + "moment": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" + }, + "ms-rest": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/ms-rest/-/ms-rest-2.3.6.tgz", + "integrity": "sha512-M+Lx9P7Wy4TeAk7jqPLwGS1QS1gvxF6Xo+OHv5j1g3Kcb44T/GTUuSjxTKarF6aKyeacZH1ZD++Nt7pcql7dDA==", + "requires": { + "duplexer": "^0.1.1", + "is-buffer": "^1.1.6", + "is-stream": "^1.1.0", + "moment": "^2.21.0", + "request": "^2.87.0", + "through": "^2.3.8", + "tunnel": "0.0.5", + "uuid": "^3.2.1" + } + }, + "ms-rest-azure": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/ms-rest-azure/-/ms-rest-azure-2.5.7.tgz", + "integrity": "sha512-e4lgB0z29Dx4ufu/c+PmEAYY1WXq98GYUBkE+iRx7WsxsN04lrM3B1vj8y+B8rKt7clPUE0niqB9VovVL8zvag==", + "requires": { + "adal-node": "^0.1.28", + "async": "2.6.0", + "moment": "^2.22.2", + "ms-rest": "^2.3.2", + "uuid": "^3.2.1" + } + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sshpk": { + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", + "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + }, + "tunnel": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.5.tgz", + "integrity": "sha512-gj5sdqherx4VZKMcBA4vewER7zdK25Td+z1npBqpbDys4eJrLx+SlYjJvq1bDXs2irkuJM5pf8ktaEQVipkrbA==" + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "xmldom": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz", + "integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk=" + }, + "xpath.js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz", + "integrity": "sha512-jg+qkfS4K8E7965sqaUl8mRngXiKb3WZGfONgE18pr03FUQiuSV6G+Ej4tS55B+rIQSFEIw3phdVAQ4pPqNWfQ==" + } + } +} diff --git a/lib/services/dnsManagement/package.json b/lib/services/dnsManagement/package.json index 707884e292..56bda1e8fd 100644 --- a/lib/services/dnsManagement/package.json +++ b/lib/services/dnsManagement/package.json @@ -2,21 +2,24 @@ "name": "azure-arm-dns", "author": "Microsoft Corporation", "description": "DnsManagementClient Library with typescript type definitions for node", - "version": "2.1.0", + "version": "3.0.0", "dependencies": { - "ms-rest": "^2.3.2", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, - "keywords": [ "node", "azure" ], + "keywords": [ + "node", + "azure" + ], "license": "MIT", "main": "./lib/dnsManagementClient.js", "types": "./lib/dnsManagementClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/dnsManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } }