Skip to content

Commit

Permalink
[AutoPR] security/resource-manager (#471)
Browse files Browse the repository at this point in the history
* Generated from 84624804865be53090660f859760f153de313691 (#470)

merged from master

* [AutoPR security/resource-manager] Remove security contact phone field mandatory fields (#427)

* Generated from 3f99e72342d5d4f194ff74c8c553657530955783

Remove security contact phone field mandatory fields

* Generated from e94d9f5b16a429a3f1d2270a981be7218f06fd36

Update security contact examples - refactored - second iteration

* [AutoPR] network/resource-manager (#469)

* Generated from 52981377b86caf85843799cd4294ec9101af0dcf (#467)

Make NIC VM readOnly

* Regenerated "@azure/arm-network" SDK.

* [AutoPR] cognitiveservices/data-plane/Face (#461)

* Regenerated "@azure/arm-cognitiveservices" SDK.

* Generated from c6f7fc714e3befa12ae571daf6a0781a6456406c (#460)

Split Python conf in it's own file

* Regenerated "@azure/cognitiveservices-face" SDK.

* Regenerated "@azure/arm-security" SDK.
  • Loading branch information
AutorestCI authored and kpajdzik committed Nov 12, 2018
1 parent 2bcc400 commit 76a07bc
Show file tree
Hide file tree
Showing 27 changed files with 857 additions and 325 deletions.
41 changes: 30 additions & 11 deletions packages/@azure/arm-security/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
# Azure SecurityCenter SDK for JavaScript
## Azure SecurityCenter SDK for JavaScript

This package contains an isomorphic SDK for SecurityCenter.

## Currently supported environments
### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

## How to Install
### How to Install

```
npm install @azure/arm-security
```

### How to use

#### nodejs - Authentication, client creation and list pricings as an example written in TypeScript.

## How to use
##### Install ms-rest-nodeauth

```
npm install ms-rest-nodeauth
```

### nodejs - Authentication, client creation and list pricings as an example written in TypeScript.
##### Sample code

```ts
import * as msRest from "ms-rest-js";
Expand All @@ -33,7 +43,16 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

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

##### Install ms-rest-browserauth

```
npm install 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
Expand All @@ -46,7 +65,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-security/dist/arm-security.js"></script>
<script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
Expand All @@ -68,10 +87,10 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
});
</script>
</head>
<body>
</body>
<body></body>
</html>
```

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

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* 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,
AllowedConnectionsList,
AllowedConnectionsResource,
ConnectableResource,
ConnectedResource,
CloudError
} from "../models/mappers";

Loading

0 comments on commit 76a07bc

Please sign in to comment.