Skip to content

Commit e093a55

Browse files
author
SDKAuto
committed
CodeGen from PR 15888 in Azure/azure-rest-api-specs
Merge 143d3eb6e59bcd890bb58b13220fb1cfda0c99d9 into 1df5cd4d0562f14d112edc77e72843d0d5132136
1 parent eb34da8 commit e093a55

18 files changed

+2712
-229
lines changed

sdk/policyinsights/arm-policyinsights/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/policyinsights/arm-policyinsights/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure PolicyInsightsClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PolicyInsightsClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for PolicyInsightsClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-policyinsights @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and listForManagementGroup remediations as an example written in JavaScript.
4240

4341
##### Sample code
@@ -88,7 +86,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8886
const credential = new InteractiveBrowserCredential(
8987
{
9088
clientId: "<client id for your Azure AD app>",
91-
tenantId: "<optional tenant for your organization>"
89+
tenant: "<optional tenant for your organization>"
9290
});
9391
const client = new Azure.ArmPolicyinsights.PolicyInsightsClient(creds, subscriptionId);
9492
const managementGroupId = "testmanagementGroupId";

sdk/policyinsights/arm-policyinsights/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/policyinsights/arm-policyinsights",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/policyinsights/arm-policyinsights",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
Attestation,
11+
AttestationEvidence,
12+
AttestationListResult,
13+
AzureEntityResource,
14+
BaseResource,
15+
ErrorDefinition,
16+
ErrorResponse,
17+
ProxyResource,
18+
Remediation,
19+
RemediationDeploymentSummary,
20+
RemediationFilters,
21+
Resource,
22+
SystemData,
23+
TrackedResource,
24+
TypedErrorInfo
25+
} from "../models/mappers";

0 commit comments

Comments
 (0)