diff --git a/packages/@azure/arm-frontdoor/LICENSE.txt b/packages/@azure/arm-frontdoor/LICENSE.txt index a70e8cf66038..8f3d856145c5 100644 --- a/packages/@azure/arm-frontdoor/LICENSE.txt +++ b/packages/@azure/arm-frontdoor/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) 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. diff --git a/packages/@azure/arm-frontdoor/README.md b/packages/@azure/arm-frontdoor/README.md index d373c61ea890..29d1a8f4d60a 100644 --- a/packages/@azure/arm-frontdoor/README.md +++ b/packages/@azure/arm-frontdoor/README.md @@ -1,96 +1,96 @@ -## Azure FrontDoorManagementClient SDK for JavaScript - -This package contains an isomorphic SDK for FrontDoorManagementClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -``` -npm install @azure/arm-frontdoor -``` - -### How to use - -#### nodejs - Authentication, client creation and list frontDoors as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { FrontDoorManagementClient, FrontDoorManagementModels, FrontDoorManagementMappers } from "@azure/arm-frontdoor"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new FrontDoorManagementClient(creds, subscriptionId); - client.frontDoors.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and list frontDoors as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-frontdoor sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +## Azure FrontDoorManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for FrontDoorManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-frontdoor +``` + +### How to use + +#### nodejs - Authentication, client creation and list frontDoors as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { FrontDoorManagementClient, FrontDoorManagementModels, FrontDoorManagementMappers } from "@azure/arm-frontdoor"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new FrontDoorManagementClient(creds, subscriptionId); + client.frontDoors.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and list frontDoors as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-frontdoor sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-frontdoor/lib/models/index.ts b/packages/@azure/arm-frontdoor/lib/models/index.ts index a85d00052dbd..3f770bec5487 100644 --- a/packages/@azure/arm-frontdoor/lib/models/index.ts +++ b/packages/@azure/arm-frontdoor/lib/models/index.ts @@ -787,7 +787,7 @@ export interface ValidateCustomDomainOutput { /** * @interface * An interface representing ErrorResponse. - * Error reponse indicates Front Door service is not able to process the + * Error response indicates Front Door service is not able to process the * incoming request. The reason is provided in the error message. * */ @@ -1031,7 +1031,7 @@ export interface CustomRule { */ rateLimitDurationInMinutes?: number; /** - * @member {number} [rateLimitThreshold] Defines rate limit thresold + * @member {number} [rateLimitThreshold] Defines rate limit threshold */ rateLimitThreshold?: number; /** @@ -1083,7 +1083,7 @@ export interface ManagedRuleSet { */ priority?: number; /** - * @member {number} [version] defines version of the ruleset + * @member {number} [version] defines version of the rule set */ version?: number; } @@ -1154,8 +1154,8 @@ export interface WebApplicationFirewallPolicy1 extends Resource { */ export interface AzureManagedOverrideRuleGroup { /** - * @member {RuleGroupOverride} ruleGroupOverride Describes overrideruleGroup. - * Possible values include: 'SqlInjection', 'XSS' + * @member {RuleGroupOverride} ruleGroupOverride Describes override rule + * group. Possible values include: 'SqlInjection', 'XSS' */ ruleGroupOverride: RuleGroupOverride; /** @@ -1181,7 +1181,7 @@ export interface AzureManagedRuleSet { */ priority?: number; /** - * @member {number} [version] defines version of the ruleset + * @member {number} [version] defines version of the rule set */ version?: number; /** @@ -1208,7 +1208,7 @@ export interface FrontDoorManagementClientOptions extends AzureServiceClientOpti * @interface * An interface representing the FrontDoorListResult. * Result of the request to list Front Doors. It contains a list of Front Door - * objects and a URL link to get the the next set of results. + * objects and a URL link to get the next set of results. * * @extends Array */ @@ -1224,7 +1224,7 @@ export interface FrontDoorListResult extends Array { * @interface * An interface representing the RoutingRuleListResult. * Result of the request to list Routing Rules. It contains a list of Routing - * Rule objects and a URL link to get the the next set of results. + * Rule objects and a URL link to get the next set of results. * * @extends Array */ @@ -1240,8 +1240,7 @@ export interface RoutingRuleListResult extends Array { * @interface * An interface representing the HealthProbeSettingsListResult. * Result of the request to list HealthProbeSettings. It contains a list of - * HealthProbeSettings objects and a URL link to get the the next set of - * results. + * HealthProbeSettings objects and a URL link to get the next set of results. * * @extends Array */ @@ -1257,7 +1256,7 @@ export interface HealthProbeSettingsListResult extends Array @@ -1274,7 +1273,7 @@ export interface LoadBalancingSettingsListResult extends Array */ @@ -1290,7 +1289,7 @@ export interface BackendPoolListResult extends Array { * @interface * An interface representing the FrontendEndpointsListResult. * Result of the request to list frontend endpoints. It contains a list of - * Frontend endpoint objects and a URL link to get the the next set of results. + * Frontend endpoint objects and a URL link to get the next set of results. * * @extends Array */ @@ -1306,8 +1305,8 @@ export interface FrontendEndpointsListResult extends Array { * @interface * An interface representing the WebApplicationFirewallPolicyListResult. * Result of the request to list WebApplicationFirewallPolicies. It contains a - * list of WebApplicationFirewallPolicy objects and a URL link to get the the - * next set of results. + * list of WebApplicationFirewallPolicy objects and a URL link to get the next + * set of results. * * @extends Array */ diff --git a/packages/@azure/arm-frontdoor/lib/operations/frontendEndpoints.ts b/packages/@azure/arm-frontdoor/lib/operations/frontendEndpoints.ts index 4c175ea66604..06f278dfddbf 100644 --- a/packages/@azure/arm-frontdoor/lib/operations/frontendEndpoints.ts +++ b/packages/@azure/arm-frontdoor/lib/operations/frontendEndpoints.ts @@ -291,7 +291,7 @@ const listByFrontDoorOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName0, @@ -317,7 +317,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName0, @@ -356,7 +356,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName0, @@ -381,7 +381,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginEnableHttpsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName0, @@ -413,7 +413,7 @@ const beginEnableHttpsOperationSpec: msRest.OperationSpec = { const beginDisableHttpsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName0, diff --git a/packages/@azure/arm-frontdoor/lib/operations/policies.ts b/packages/@azure/arm-frontdoor/lib/operations/policies.ts index de6db51d7dd9..623fa61e3285 100644 --- a/packages/@azure/arm-frontdoor/lib/operations/policies.ts +++ b/packages/@azure/arm-frontdoor/lib/operations/policies.ts @@ -88,7 +88,7 @@ export class Policies { } /** - * Creates or update policy with specified ruleset name within a resource group. + * Creates or update policy with specified rule set name within a resource group. * @param resourceGroupName The name of the resource group. * @param policyName The name of the resource group. * @param parameters Policy to be created. diff --git a/packages/@azure/arm-frontdoor/package.json b/packages/@azure/arm-frontdoor/package.json index 6cd111399535..084895cf165b 100644 --- a/packages/@azure/arm-frontdoor/package.json +++ b/packages/@azure/arm-frontdoor/package.json @@ -4,8 +4,8 @@ "description": "FrontDoorManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-frontdoor", diff --git a/packages/@azure/arm-frontdoor/rollup.config.js b/packages/@azure/arm-frontdoor/rollup.config.js index a59cc6f58c72..b29ebeda2944 100644 --- a/packages/@azure/arm-frontdoor/rollup.config.js +++ b/packages/@azure/arm-frontdoor/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/frontDoorManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/frontDoorManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-frontdoor.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;