Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR frontdoor/resource-manager] Update FrontDoor WAF API with new preview features (2019-03-01) #4984

Closed
Closed
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) 2019 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.
86 changes: 43 additions & 43 deletions lib/services/frontdoorManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
---
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)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FfrontdoorManagement%2FREADME.png)
---
uid: azure-arm-frontdoor
summary: *content
---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## 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)
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class FrontDoorManagementClient extends AzureServiceClient {
frontendEndpoints: operations.FrontendEndpoints;
endpoints: operations.Endpoints;
policies: operations.Policies;
managedRuleSets: operations.ManagedRuleSets;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ class FrontDoorManagementClient extends ServiceClient {
this.frontendEndpoints = new operations.FrontendEndpoints(this);
this.endpoints = new operations.Endpoints(this);
this.policies = new operations.Policies(this);
this.managedRuleSets = new operations.ManagedRuleSets(this);
this.models = models;
this._checkFrontDoorNameAvailability = _checkFrontDoorNameAvailability;
this._checkFrontDoorNameAvailabilityWithSubscription = _checkFrontDoorNameAvailabilityWithSubscription;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
class AzureAsyncOperationResult {
/**
* Create a AzureAsyncOperationResult.
* @member {string} [status] Status of the Azure async operation. Possible
* @property {string} [status] Status of the Azure async operation. Possible
* values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values
* include: 'InProgress', 'Succeeded', 'Failed'
* @member {object} [error]
* @member {string} [error.code]
* @member {string} [error.message]
* @member {string} [error.target]
* @member {array} [error.details]
* @member {string} [error.innerError]
* @property {object} [error]
* @property {string} [error.code]
* @property {string} [error.message]
* @property {string} [error.target]
* @property {array} [error.details]
* @property {string} [error.innerError]
*/
constructor() {
}
Expand Down
16 changes: 8 additions & 8 deletions lib/services/frontdoorManagement/lib/models/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
class Backend {
/**
* Create a Backend.
* @member {string} [address] Location of the backend (IP address or FQDN)
* @member {number} [httpPort] The HTTP TCP port number. Must be between 1
* @property {string} [address] Location of the backend (IP address or FQDN)
* @property {number} [httpPort] The HTTP TCP port number. Must be between 1
* and 65535.
* @member {number} [httpsPort] The HTTPS TCP port number. Must be between 1
* and 65535.
* @member {string} [enabledState] Whether to enable use of this backend.
* @property {number} [httpsPort] The HTTPS TCP port number. Must be between
* 1 and 65535.
* @property {string} [enabledState] Whether to enable use of this backend.
* Permitted values are 'Enabled' or 'Disabled'. Possible values include:
* 'Enabled', 'Disabled'
* @member {number} [priority] Priority to use for load balancing. Higher
* @property {number} [priority] Priority to use for load balancing. Higher
* priorities will not be used for load balancing if any lower priority
* backend is healthy.
* @member {number} [weight] Weight of this endpoint for load balancing
* @property {number} [weight] Weight of this endpoint for load balancing
* purposes.
* @member {string} [backendHostHeader] The value to use as the host header
* @property {string} [backendHostHeader] The value to use as the host header
* sent to the backend. If blank or unspecified, this defaults to the
* incoming host.
*/
Expand Down
19 changes: 10 additions & 9 deletions lib/services/frontdoorManagement/lib/models/backendPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ const models = require('./index');
class BackendPool extends models['SubResource'] {
/**
* Create a BackendPool.
* @member {array} [backends] The set of backends for this pool
* @member {object} [loadBalancingSettings] Load balancing settings for a
* @property {array} [backends] The set of backends for this pool
* @property {object} [loadBalancingSettings] Load balancing settings for a
* backend pool
* @member {string} [loadBalancingSettings.id] Resource ID.
* @member {object} [healthProbeSettings] L7 health probe settings for a
* @property {string} [loadBalancingSettings.id] Resource ID.
* @property {object} [healthProbeSettings] L7 health probe settings for a
* backend pool
* @member {string} [healthProbeSettings.id] Resource ID.
* @member {string} [resourceState] Resource status. Possible values include:
* 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @property {string} [healthProbeSettings.id] Resource ID.
* @property {string} [resourceState] Resource status. Possible values
* include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled',
* 'Deleting'
* @property {string} [name] Resource name.
* @property {string} [type] Resource type.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

/**
* Result of the request to list Backend Pools. It contains a list of Backend
* Pools objects and a URL link to get the the next set of results.
* Pools objects and a URL link to get the next set of results.
*/
class BackendPoolListResult extends Array {
/**
* Create a BackendPoolListResult.
* @member {string} [nextLink] URL to get the next set of BackendPool objects
* if there are any.
* @property {string} [nextLink] URL to get the next set of BackendPool
* objects if there are any.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
class BackendPoolUpdateParameters {
/**
* Create a BackendPoolUpdateParameters.
* @member {array} [backends] The set of backends for this pool
* @member {object} [loadBalancingSettings] Load balancing settings for a
* @property {array} [backends] The set of backends for this pool
* @property {object} [loadBalancingSettings] Load balancing settings for a
* backend pool
* @member {string} [loadBalancingSettings.id] Resource ID.
* @member {object} [healthProbeSettings] L7 health probe settings for a
* @property {string} [loadBalancingSettings.id] Resource ID.
* @property {object} [healthProbeSettings] L7 health probe settings for a
* backend pool
* @member {string} [healthProbeSettings.id] Resource ID.
* @property {string} [healthProbeSettings.id] Resource ID.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
class CacheConfiguration {
/**
* Create a CacheConfiguration.
* @member {string} [queryParameterStripDirective] Treatment of URL query
* @property {string} [queryParameterStripDirective] Treatment of URL query
* terms when forming the cache key. Possible values include: 'StripNone',
* 'StripAll'
* @member {string} [dynamicCompression] Whether to use dynamic compression
* @property {string} [dynamicCompression] Whether to use dynamic compression
* for cached content. Possible values include: 'Enabled', 'Disabled'
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class CheckNameAvailabilityInput {
/**
* Create a CheckNameAvailabilityInput.
* @member {string} name The resource name to validate.
* @member {string} type The type of the resource whose name is to be
* @property {string} name The resource name to validate.
* @property {string} type The type of the resource whose name is to be
* validated. Possible values include: 'Microsoft.Network/frontDoors',
* 'Microsoft.Network/frontDoors/frontendEndpoints'
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
class CheckNameAvailabilityOutput {
/**
* Create a CheckNameAvailabilityOutput.
* @member {string} [nameAvailability] Indicates whether the name is
* @property {string} [nameAvailability] Indicates whether the name is
* available. Possible values include: 'Available', 'Unavailable'
* @member {string} [reason] The reason why the name is not available.
* @member {string} [message] The detailed error message describing why the
* @property {string} [reason] The reason why the name is not available.
* @property {string} [message] The detailed error message describing why the
* name is not available.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
class CustomHttpsConfiguration {
/**
* Create a CustomHttpsConfiguration.
* @member {string} [certificateSource] Defines the source of the SSL
* @property {string} [certificateSource] Defines the source of the SSL
* certificate. Possible values include: 'AzureKeyVault', 'FrontDoor'
* @member {string} [protocolType] Defines the TLS extension protocol that is
* used for secure delivery. Possible values include: 'ServerNameIndication'
* @member {object} [vault] The Key Vault containing the SSL certificate
* @member {string} [vault.id] Resource ID.
* @member {string} [secretName] The name of the Key Vault secret
* @property {string} [protocolType] Defines the TLS extension protocol that
* is used for secure delivery. Possible values include:
* 'ServerNameIndication'
* @property {object} [vault] The Key Vault containing the SSL certificate
* @property {string} [vault.id] Resource ID.
* @property {string} [secretName] The name of the Key Vault secret
* representing the full certificate PFX
* @member {string} [secretVersion] The version of the Key Vault secret
* @property {string} [secretVersion] The version of the Key Vault secret
* representing the full certificate PFX
* @member {string} [certificateType] Defines the type of the certificate
* @property {string} [certificateType] Defines the type of the certificate
* used for secure connections to a frontendEndpoint. Possible values
* include: 'Dedicated'
*/
Expand Down
Loading