Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/frontdoorManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
80 changes: 40 additions & 40 deletions lib/services/frontdoorManagement/README.md
Original file line number Diff line number Diff line change
@@ -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 = "<Subscription_Id>";
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 = "<Subscription_Id>";
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)
32 changes: 16 additions & 16 deletions lib/services/frontdoorManagement/lib/operations/backendPools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down
8 changes: 4 additions & 4 deletions lib/services/frontdoorManagement/lib/operations/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
32 changes: 16 additions & 16 deletions lib/services/frontdoorManagement/lib/operations/frontDoors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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') {
Expand Down
Loading