Skip to content

Commit

Permalink
Generated from 2a84e3ec66065a54b71da755056e26c21b0068f5
Browse files Browse the repository at this point in the history
Add RuleSetId to managed rule set definitions api (read only field)
  • Loading branch information
SDK Automation committed Feb 12, 2020
1 parent 1077865 commit 181036e
Show file tree
Hide file tree
Showing 34 changed files with 5,674 additions and 3,018 deletions.
2 changes: 1 addition & 1 deletion sdk/frontdoor/arm-frontdoor/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2020 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
Expand Down
22 changes: 11 additions & 11 deletions sdk/frontdoor/arm-frontdoor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ This package contains an isomorphic SDK for FrontDoorManagementClient.

### 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.
#### nodejs - Authentication, client creation and list networkExperimentProfiles as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```
npm install @azure/ms-rest-nodeauth
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth@"^3.0.0"
```

##### Sample code

```ts
```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";
Expand All @@ -34,7 +35,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new FrontDoorManagementClient(creds, subscriptionId);
client.frontDoors.list().then((result) => {
client.networkExperimentProfiles.list().then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -43,11 +44,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and list frontDoors as an example written in JavaScript.
#### browser - Authentication, client creation and list networkExperimentProfiles as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down Expand Up @@ -77,7 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
authManager.login();
}
const client = new Azure.ArmFrontdoor.FrontDoorManagementClient(res.creds, subscriptionId);
client.frontDoors.list().then((result) => {
client.networkExperimentProfiles.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand All @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Ffrontdoor%2Farm-frontdoor%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/frontdoor/arm-frontdoor/README.png)
24 changes: 13 additions & 11 deletions sdk/frontdoor/arm-frontdoor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "FrontDoorManagementClient Library with typescript type definitions for node.js and browser.",
"version": "3.1.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.1.0",
"@azure/ms-rest-js": "^1.1.0",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -20,18 +20,19 @@
"module": "./esm/frontDoorManagementClient.js",
"types": "./esm/frontDoorManagementClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"uglify-js": "^3.4.9"
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/frontdoor/arm-frontdoor",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/frontdoor/arm-frontdoor",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand All @@ -43,6 +44,7 @@
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
Expand All @@ -52,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}
22 changes: 14 additions & 8 deletions sdk/frontdoor/arm-frontdoor/rollup.config.js
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};

export default config;
24 changes: 14 additions & 10 deletions sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ import { FrontDoorManagementClientContext } from "./frontDoorManagementClientCon

class FrontDoorManagementClient extends FrontDoorManagementClientContext {
// Operation groups
networkExperimentProfiles: operations.NetworkExperimentProfiles;
preconfiguredEndpoints: operations.PreconfiguredEndpoints;
experiments: operations.Experiments;
reports: operations.Reports;
frontDoors: operations.FrontDoors;
routingRules: operations.RoutingRules;
healthProbeSettings: operations.HealthProbeSettings;
loadBalancingSettings: operations.LoadBalancingSettings;
backendPools: operations.BackendPools;
frontendEndpoints: operations.FrontendEndpoints;
endpoints: operations.Endpoints;
rulesEngines: operations.RulesEngines;
policies: operations.Policies;
managedRuleSets: operations.ManagedRuleSets;

/**
* Initializes a new instance of the FrontDoorManagementClient class.
Expand All @@ -36,14 +38,16 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.FrontDoorManagementClientOptions) {
super(credentials, subscriptionId, options);
this.networkExperimentProfiles = new operations.NetworkExperimentProfiles(this);
this.preconfiguredEndpoints = new operations.PreconfiguredEndpoints(this);
this.experiments = new operations.Experiments(this);
this.reports = new operations.Reports(this);
this.frontDoors = new operations.FrontDoors(this);
this.routingRules = new operations.RoutingRules(this);
this.healthProbeSettings = new operations.HealthProbeSettings(this);
this.loadBalancingSettings = new operations.LoadBalancingSettings(this);
this.backendPools = new operations.BackendPools(this);
this.frontendEndpoints = new operations.FrontendEndpoints(this);
this.endpoints = new operations.Endpoints(this);
this.rulesEngines = new operations.RulesEngines(this);
this.policies = new operations.Policies(this);
this.managedRuleSets = new operations.ManagedRuleSets(this);
}

/**
Expand Down Expand Up @@ -109,7 +113,7 @@ const checkFrontDoorNameAvailabilityOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -139,7 +143,7 @@ const checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec: msRest.Operat
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-frontdoor";
const packageVersion = "0.1.0";
const packageVersion = "3.1.0";

export class FrontDoorManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down
11 changes: 4 additions & 7 deletions sdk/frontdoor/arm-frontdoor/src/models/endpointsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
/*
* 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.
*/

export {
discriminators,
PurgeParameters,
ErrorResponse
ErrorResponse,
PurgeParameters
} from "../models/mappers";

59 changes: 59 additions & 0 deletions sdk/frontdoor/arm-frontdoor/src/models/experimentsMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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.
*/

export {
discriminators,
Backend,
BackendPool,
BackendPoolsSettings,
BaseResource,
CacheConfiguration,
CustomHttpsConfiguration,
CustomRule,
CustomRuleList,
Endpoint,
ErrorResponse,
Experiment,
ExperimentList,
ExperimentUpdateModel,
ForwardingConfiguration,
FrontDoor,
FrontendEndpoint,
FrontendEndpointLink,
FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
HeaderAction,
HealthProbeSettingsModel,
KeyVaultCertificateSourceParametersVault,
LatencyMetric,
LatencyScorecard,
LoadBalancingSettingsModel,
ManagedRuleDefinition,
ManagedRuleExclusion,
ManagedRuleGroupDefinition,
ManagedRuleGroupOverride,
ManagedRuleOverride,
ManagedRuleSet,
ManagedRuleSetDefinition,
ManagedRuleSetList,
MatchCondition,
PolicySettings,
PreconfiguredEndpoint,
Profile,
RedirectConfiguration,
Resource,
RouteConfiguration,
RoutingRule,
RulesEngine,
RulesEngineAction,
RulesEngineMatchCondition,
RulesEngineRule,
SubResource,
Timeseries,
TimeseriesDataPoint,
WebApplicationFirewallPolicy
} from "../models/mappers";
Loading

0 comments on commit 181036e

Please sign in to comment.