diff --git a/lib/services/frontdoorManagement/LICENSE.txt b/lib/services/frontdoorManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/frontdoorManagement/LICENSE.txt +++ b/lib/services/frontdoorManagement/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/frontdoorManagement/README.md b/lib/services/frontdoorManagement/README.md index e91d1b359c..60c3cbb0ca 100644 --- a/lib/services/frontdoorManagement/README.md +++ b/lib/services/frontdoorManagement/README.md @@ -1,40 +1,40 @@ ---- -uid: azure-arm-frontdoor -summary: *content - ---- -# Microsoft Azure SDK for Node.js - FrontdoorManagementClient -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-frontdoor -``` - -## How to use - -### Authentication, client creation and list frontDoors as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const FrontdoorManagementClient = require("azure-arm-frontdoor"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new FrontdoorManagementClient(creds, subscriptionId); - return client.frontDoors.list().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) +--- +uid: azure-arm-frontdoor +summary: *content + +--- +# Microsoft Azure SDK for Node.js - FrontdoorManagementClient +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-frontdoor +``` + +## How to use + +### Authentication, client creation and list frontDoors as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const FrontdoorManagementClient = require("azure-arm-frontdoor"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new FrontdoorManagementClient(creds, subscriptionId); + return client.frontDoors.list().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/frontdoorManagement/lib/operations/backendPools.js b/lib/services/frontdoorManagement/lib/operations/backendPools.js index 34d80677b7..4db963cac1 100644 --- a/lib/services/frontdoorManagement/lib/operations/backendPools.js +++ b/lib/services/frontdoorManagement/lib/operations/backendPools.js @@ -78,17 +78,17 @@ function _listByFrontDoor(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -256,17 +256,17 @@ function _get(resourceGroupName, frontDoorName, backendPoolName, options, callba throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (backendPoolName === null || backendPoolName === undefined || typeof backendPoolName.valueOf() !== 'string') { @@ -648,17 +648,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, backendPoolName, throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (backendPoolName === null || backendPoolName === undefined || typeof backendPoolName.valueOf() !== 'string') { @@ -893,17 +893,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, backendPoolName, o throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (backendPoolName === null || backendPoolName === undefined || typeof backendPoolName.valueOf() !== 'string') { diff --git a/lib/services/frontdoorManagement/lib/operations/endpoints.js b/lib/services/frontdoorManagement/lib/operations/endpoints.js index 90ea2a87d6..93b32a7b12 100644 --- a/lib/services/frontdoorManagement/lib/operations/endpoints.js +++ b/lib/services/frontdoorManagement/lib/operations/endpoints.js @@ -158,17 +158,17 @@ function _beginPurgeContent(resourceGroupName, frontDoorName, contentFilePaths, throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (contentFilePaths === null || contentFilePaths === undefined) { diff --git a/lib/services/frontdoorManagement/lib/operations/frontDoors.js b/lib/services/frontdoorManagement/lib/operations/frontDoors.js index 415c410655..a730df07fd 100644 --- a/lib/services/frontdoorManagement/lib/operations/frontDoors.js +++ b/lib/services/frontdoorManagement/lib/operations/frontDoors.js @@ -364,17 +364,17 @@ function _get(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -724,17 +724,17 @@ function _validateCustomDomain(resourceGroupName, frontDoorName, customDomainPro throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (customDomainProperties === null || customDomainProperties === undefined) { @@ -949,17 +949,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, frontDoorParamet throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontDoorParameters === null || frontDoorParameters === undefined) { @@ -1173,17 +1173,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, options, callback) throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { diff --git a/lib/services/frontdoorManagement/lib/operations/frontendEndpoints.js b/lib/services/frontdoorManagement/lib/operations/frontendEndpoints.js index 20779f395c..2db92c4aa0 100644 --- a/lib/services/frontdoorManagement/lib/operations/frontendEndpoints.js +++ b/lib/services/frontdoorManagement/lib/operations/frontendEndpoints.js @@ -79,17 +79,17 @@ function _listByFrontDoor(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -257,17 +257,17 @@ function _get(resourceGroupName, frontDoorName, frontendEndpointName, options, c throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontendEndpointName === null || frontendEndpointName === undefined || typeof frontendEndpointName.valueOf() !== 'string') { @@ -827,17 +827,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, frontendEndpoint throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontendEndpointName === null || frontendEndpointName === undefined || typeof frontendEndpointName.valueOf() !== 'string') { @@ -1072,17 +1072,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, frontendEndpointNa throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontendEndpointName === null || frontendEndpointName === undefined || typeof frontendEndpointName.valueOf() !== 'string') { @@ -1275,17 +1275,17 @@ function _beginEnableHttps(resourceGroupName, frontDoorName, frontendEndpointNam throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontendEndpointName === null || frontendEndpointName === undefined || typeof frontendEndpointName.valueOf() !== 'string') { @@ -1469,17 +1469,17 @@ function _beginDisableHttps(resourceGroupName, frontDoorName, frontendEndpointNa throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (frontendEndpointName === null || frontendEndpointName === undefined || typeof frontendEndpointName.valueOf() !== 'string') { diff --git a/lib/services/frontdoorManagement/lib/operations/healthProbeSettings.js b/lib/services/frontdoorManagement/lib/operations/healthProbeSettings.js index 2976abe5f8..4e8c2c528b 100644 --- a/lib/services/frontdoorManagement/lib/operations/healthProbeSettings.js +++ b/lib/services/frontdoorManagement/lib/operations/healthProbeSettings.js @@ -79,17 +79,17 @@ function _listByFrontDoor(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -258,17 +258,17 @@ function _get(resourceGroupName, frontDoorName, healthProbeSettingsName, options throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (healthProbeSettingsName === null || healthProbeSettingsName === undefined || typeof healthProbeSettingsName.valueOf() !== 'string') { @@ -648,17 +648,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, healthProbeSetti throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (healthProbeSettingsName === null || healthProbeSettingsName === undefined || typeof healthProbeSettingsName.valueOf() !== 'string') { @@ -893,17 +893,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, healthProbeSetting throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (healthProbeSettingsName === null || healthProbeSettingsName === undefined || typeof healthProbeSettingsName.valueOf() !== 'string') { diff --git a/lib/services/frontdoorManagement/lib/operations/loadBalancingSettings.js b/lib/services/frontdoorManagement/lib/operations/loadBalancingSettings.js index e448ae6d5b..a70f1d0717 100644 --- a/lib/services/frontdoorManagement/lib/operations/loadBalancingSettings.js +++ b/lib/services/frontdoorManagement/lib/operations/loadBalancingSettings.js @@ -79,17 +79,17 @@ function _listByFrontDoor(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -258,17 +258,17 @@ function _get(resourceGroupName, frontDoorName, loadBalancingSettingsName, optio throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (loadBalancingSettingsName === null || loadBalancingSettingsName === undefined || typeof loadBalancingSettingsName.valueOf() !== 'string') { @@ -652,17 +652,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, loadBalancingSet throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (loadBalancingSettingsName === null || loadBalancingSettingsName === undefined || typeof loadBalancingSettingsName.valueOf() !== 'string') { @@ -897,17 +897,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, loadBalancingSetti throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (loadBalancingSettingsName === null || loadBalancingSettingsName === undefined || typeof loadBalancingSettingsName.valueOf() !== 'string') { diff --git a/lib/services/frontdoorManagement/lib/operations/routingRules.js b/lib/services/frontdoorManagement/lib/operations/routingRules.js index de2f82f988..ab33e89cd5 100644 --- a/lib/services/frontdoorManagement/lib/operations/routingRules.js +++ b/lib/services/frontdoorManagement/lib/operations/routingRules.js @@ -78,17 +78,17 @@ function _listByFrontDoor(resourceGroupName, frontDoorName, options, callback) { throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { @@ -256,17 +256,17 @@ function _get(resourceGroupName, frontDoorName, routingRuleName, options, callba throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (routingRuleName === null || routingRuleName === undefined || typeof routingRuleName.valueOf() !== 'string') { @@ -704,17 +704,17 @@ function _beginCreateOrUpdate(resourceGroupName, frontDoorName, routingRuleName, throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (routingRuleName === null || routingRuleName === undefined || typeof routingRuleName.valueOf() !== 'string') { @@ -949,17 +949,17 @@ function _beginDeleteMethod(resourceGroupName, frontDoorName, routingRuleName, o throw new Error('frontDoorName cannot be null or undefined and it must be of type string.'); } if (frontDoorName !== null && frontDoorName !== undefined) { - if (frontDoorName.length > 74) + if (frontDoorName.length > 64) { - throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 74'); + throw new Error('"frontDoorName" should satisfy the constraint - "MaxLength": 64'); } if (frontDoorName.length < 5) { throw new Error('"frontDoorName" should satisfy the constraint - "MinLength": 5'); } - if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/) === null) + if (frontDoorName.match(/^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/) === null) { - throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$/'); + throw new Error('"frontDoorName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/'); } } if (routingRuleName === null || routingRuleName === undefined || typeof routingRuleName.valueOf() !== 'string') {