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

Commit

Permalink
Merge remote-tracking branch 'origin' into restapi_auto_apimanagement…
Browse files Browse the repository at this point in the history
…/resource-manager
  • Loading branch information
Dan Schulte committed Oct 23, 2018
2 parents a4fa550 + 8a315b1 commit cd3357e
Show file tree
Hide file tree
Showing 1,002 changed files with 115,300 additions and 77,497 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Contribute Code or Provide Feedback

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).

If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-node/issues) section of the project.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ This project is licensed under MIT and Apache-2.0.

## Contribute

* If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Open Source Guidelines](https://opensource.microsoft.com/resources).
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Open Source Guidelines](https://opensource.microsoft.com/resources).

### Getting Started Developing

Expand All @@ -190,4 +194,4 @@ get your code included into the project.

1. Commit your changes (`git commit -am 'Add some feature'`)
2. Push to the branch (`git push origin my-new-feature`)
3. Create new Pull Request
3. Create new Pull Request
42 changes: 21 additions & 21 deletions lib/services/applicationinsights-query/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.
98 changes: 49 additions & 49 deletions lib/services/applicationinsights-query/README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
---
uid: azure-applicationinsights-query
summary: *content

---
# Microsoft Azure SDK for Node.js - ApplicationInsightsDataClient
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-applicationinsights-query
```

## How to use

### Authentication, client creation and get metrics as an example.

```javascript
const msRest = require("ms-rest");
const ApplicationInsightsDataClient = require("azure-applicationinsights-query");
const token = "<access_token>";
const creds = new msRest.TokenCredentials(token);
const subscriptionId = "<Subscription_Id>";
const client = new ApplicationInsightsDataClient(creds, subscriptionId);
const appId = "testappId";
const metricId = "requests/count";
const timespan = "testtimespan";
const interval = "P1Y2M3DT4H5M6S";
const aggregation = ["min"];
const segment = ["applicationBuild"];
const top = 1;
const orderby = "testorderby";
const filter = "testfilter";
client.metrics.get(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter).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-applicationinsights-query
summary: *content

---
# Microsoft Azure SDK for Node.js - ApplicationInsightsDataClient
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-applicationinsights-query
```

## How to use

### Authentication, client creation and get metrics as an example.

```javascript
const msRest = require("ms-rest");
const ApplicationInsightsDataClient = require("azure-applicationinsights-query");
const token = "<access_token>";
const creds = new msRest.TokenCredentials(token);
const subscriptionId = "<Subscription_Id>";
const client = new ApplicationInsightsDataClient(creds, subscriptionId);
const appId = "testappId";
const metricId = "requests/count";
const timespan = "testtimespan";
const interval = "P1Y2M3DT4H5M6S";
const aggregation = ["min"];
const segment = ["applicationBuild"];
const top = 1;
const orderby = "testorderby";
const filter = "testfilter";
client.metrics.get(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter).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 @@ -1075,7 +1075,7 @@ export interface Column {
export interface Table {
name: string;
columns: Column[];
rows: string[][];
rows: any[][];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ class MetricsPostBodySchemaParameters {
required: false,
serializedName: 'MetricsAggregationElementType',
type: {
name: 'Enum',
allowedValues: [ 'min', 'max', 'avg', 'sum', 'count', 'unique' ]
name: 'String'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/applicationinsights-query/lib/models/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class Table {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
serializedName: 'ObjectElementType',
type: {
name: 'String'
name: 'Object'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,8 @@ function _get(appId, metricId, options, callback) {
}
if (Array.isArray(aggregation)) {
for (let i = 0; i < aggregation.length; i++) {
if (aggregation[i]) {
let allowedValues = [ 'min', 'max', 'avg', 'sum', 'count', 'unique' ];
if (!allowedValues.some( function(item) { return item === aggregation[i]; })) {
throw new Error(aggregation[i] + ' is not a valid value. The valid values are: ' + allowedValues);
}
if (aggregation[i] !== null && aggregation[i] !== undefined && typeof aggregation[i].valueOf() !== 'string') {
throw new Error('aggregation[i] must be of type string.');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/applicationinsights-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-applicationinsights-query",
"author": "Microsoft Corporation",
"description": "ApplicationInsightsDataClient Library with typescript type definitions for node",
"version": "1.0.0-preview",
"version": "1.0.1-preview",
"dependencies": {
"ms-rest": "^2.3.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error associated with trying to create annotation with Id that already exist
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Properties that define an Analytics item that is associated to an
* Application Insights component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An Application Insights component available features.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An Application Insights component billing features
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An Application Insights component daily data volume cap status
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Describes the body of a purge request for an App Insights component
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/applicationinsights/lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* CDN REST API operation
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error associated with trying to get work item configuration or
* configurations
Expand Down
2 changes: 0 additions & 2 deletions lib/services/applicationinsights/lib/models/workbookError.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error message body that will indicate why the operation failed.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/services/applicationinsights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-arm-appinsights",
"author": "Microsoft Corporation",
"description": "ApplicationInsightsManagementClient Library with typescript type definitions for node",
"version": "2.0.0",
"version": "2.0.1",
"dependencies": {
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
Expand All @@ -14,7 +14,7 @@
"license": "MIT",
"main": "./lib/applicationInsightsManagementClient.js",
"types": "./lib/applicationInsightsManagementClient.d.ts",
"homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/applicationinsights",
"homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/applicationinsights",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-node.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default class AuthorizationManagementClient extends AzureServiceClient {
permissions: operations.Permissions;
roleAssignments: operations.RoleAssignments;
roleDefinitions: operations.RoleDefinitions;
denyAssignments: operations.DenyAssignments;
}

export { AuthorizationManagementClient, models as AuthorizationManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class AuthorizationManagementClient extends ServiceClient {
this.permissions = new operations.Permissions(this);
this.roleAssignments = new operations.RoleAssignments(this);
this.roleDefinitions = new operations.RoleDefinitions(this);
this.denyAssignments = new operations.DenyAssignments(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Loading

0 comments on commit cd3357e

Please sign in to comment.