Skip to content

Commit 26dc346

Browse files
author
SDKAuto
committed
CodeGen from PR 15973 in Azure/azure-rest-api-specs
Merge c0ad0c7dd5d896a18383e73b8ffb1d3102e97b88 into 296412a72eeb85c73377e9c626953bf7513a59d6
1 parent ffb22c4 commit 26dc346

File tree

61 files changed

+13852
-1252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+13852
-1252
lines changed

sdk/authorization/arm-authorization/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) 2019 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/authorization/arm-authorization/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure AuthorizationManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AuthorizationManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AuthorizationManagementClient.
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-authorization @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,8 +36,7 @@ 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-
41-
#### nodejs - Authentication, client creation, and list classicAdministrators as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -51,8 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new AuthorizationManagementClient(creds, subscriptionId);
54-
55-
client.classicAdministrators.list().then((result) => {
52+
client.operations.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
5855
}).catch((err) => {
@@ -61,7 +58,7 @@ client.classicAdministrators.list().then((result) => {
6158
});
6259
```
6360

64-
#### browser - Authentication, client creation, and list classicAdministrators as an example written in JavaScript.
61+
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
6562

6663
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6764
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -86,10 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmAuthorization.AuthorizationManagementClient(creds, subscriptionId);
92-
client.classicAdministrators.list().then((result) => {
89+
client.operations.list().then((result) => {
9390
console.log("The result is:");
9491
console.log(result);
9592
}).catch((err) => {

sdk/authorization/arm-authorization/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",
99
"@azure/core-auth": "^1.1.4",
10-
"tslib": "^1.9.3"
10+
"tslib": "^1.10.0"
1111
},
1212
"keywords": [
1313
"node",
@@ -22,12 +22,12 @@
2222
"types": "./esm/authorizationManagementClient.d.ts",
2323
"devDependencies": {
2424
"typescript": "^3.6.0",
25-
"rollup": "^0.66.2",
26-
"rollup-plugin-node-resolve": "^3.4.0",
25+
"rollup": "^1.18.0",
26+
"rollup-plugin-node-resolve": "^5.2.0",
2727
"rollup-plugin-sourcemaps": "^0.4.2",
28-
"uglify-js": "^3.4.9"
28+
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/authorization/arm-authorization",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/authorization/arm-authorization",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/authorization/arm-authorization/rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/authorization/arm-authorization/src/authorizationManagementClient.ts

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -18,13 +17,30 @@ import { AuthorizationManagementClientContext } from "./authorizationManagementC
1817

1918
class AuthorizationManagementClient extends AuthorizationManagementClientContext {
2019
// Operation groups
21-
classicAdministrators: operations.ClassicAdministrators;
22-
globalAdministrator: operations.GlobalAdministrator;
20+
operations: operations.Operations;
21+
accessReviewScheduleDefinitions: operations.AccessReviewScheduleDefinitions;
22+
accessReviewInstances: operations.AccessReviewInstances;
23+
accessReviewInstance: operations.AccessReviewInstanceOperations;
24+
accessReviewInstanceDecisions: operations.AccessReviewInstanceDecisions;
25+
accessReviewDefaultSettings: operations.AccessReviewDefaultSettingsOperations;
26+
accessReviewScheduleDefinitionsAssignedForMyApproval: operations.AccessReviewScheduleDefinitionsAssignedForMyApproval;
27+
accessReviewInstancesAssignedForMyApproval: operations.AccessReviewInstancesAssignedForMyApproval;
28+
accessReviewInstanceMyDecisions: operations.AccessReviewInstanceMyDecisions;
29+
denyAssignments: operations.DenyAssignments;
2330
providerOperationsMetadata: operations.ProviderOperationsMetadataOperations;
2431
roleAssignments: operations.RoleAssignments;
2532
permissions: operations.Permissions;
2633
roleDefinitions: operations.RoleDefinitions;
27-
denyAssignments: operations.DenyAssignments;
34+
roleAssignmentMetrics: operations.RoleAssignmentMetrics;
35+
eligibleChildResources: operations.EligibleChildResources;
36+
roleAssignmentSchedules: operations.RoleAssignmentSchedules;
37+
roleAssignmentScheduleInstances: operations.RoleAssignmentScheduleInstances;
38+
roleAssignmentScheduleRequests: operations.RoleAssignmentScheduleRequests;
39+
roleEligibilitySchedules: operations.RoleEligibilitySchedules;
40+
roleEligibilityScheduleInstances: operations.RoleEligibilityScheduleInstances;
41+
roleEligibilityScheduleRequests: operations.RoleEligibilityScheduleRequests;
42+
roleManagementPolicies: operations.RoleManagementPolicies;
43+
roleManagementPolicyAssignments: operations.RoleManagementPolicyAssignments;
2844

2945
/**
3046
* Initializes a new instance of the AuthorizationManagementClient class.
@@ -39,13 +55,30 @@ class AuthorizationManagementClient extends AuthorizationManagementClientContext
3955
*/
4056
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AuthorizationManagementClientOptions) {
4157
super(credentials, subscriptionId, options);
42-
this.classicAdministrators = new operations.ClassicAdministrators(this);
43-
this.globalAdministrator = new operations.GlobalAdministrator(this);
58+
this.operations = new operations.Operations(this);
59+
this.accessReviewScheduleDefinitions = new operations.AccessReviewScheduleDefinitions(this);
60+
this.accessReviewInstances = new operations.AccessReviewInstances(this);
61+
this.accessReviewInstance = new operations.AccessReviewInstanceOperations(this);
62+
this.accessReviewInstanceDecisions = new operations.AccessReviewInstanceDecisions(this);
63+
this.accessReviewDefaultSettings = new operations.AccessReviewDefaultSettingsOperations(this);
64+
this.accessReviewScheduleDefinitionsAssignedForMyApproval = new operations.AccessReviewScheduleDefinitionsAssignedForMyApproval(this);
65+
this.accessReviewInstancesAssignedForMyApproval = new operations.AccessReviewInstancesAssignedForMyApproval(this);
66+
this.accessReviewInstanceMyDecisions = new operations.AccessReviewInstanceMyDecisions(this);
67+
this.denyAssignments = new operations.DenyAssignments(this);
4468
this.providerOperationsMetadata = new operations.ProviderOperationsMetadataOperations(this);
4569
this.roleAssignments = new operations.RoleAssignments(this);
4670
this.permissions = new operations.Permissions(this);
4771
this.roleDefinitions = new operations.RoleDefinitions(this);
48-
this.denyAssignments = new operations.DenyAssignments(this);
72+
this.roleAssignmentMetrics = new operations.RoleAssignmentMetrics(this);
73+
this.eligibleChildResources = new operations.EligibleChildResources(this);
74+
this.roleAssignmentSchedules = new operations.RoleAssignmentSchedules(this);
75+
this.roleAssignmentScheduleInstances = new operations.RoleAssignmentScheduleInstances(this);
76+
this.roleAssignmentScheduleRequests = new operations.RoleAssignmentScheduleRequests(this);
77+
this.roleEligibilitySchedules = new operations.RoleEligibilitySchedules(this);
78+
this.roleEligibilityScheduleInstances = new operations.RoleEligibilityScheduleInstances(this);
79+
this.roleEligibilityScheduleRequests = new operations.RoleEligibilityScheduleRequests(this);
80+
this.roleManagementPolicies = new operations.RoleManagementPolicies(this);
81+
this.roleManagementPolicyAssignments = new operations.RoleManagementPolicyAssignments(this);
4982
}
5083
}
5184

sdk/authorization/arm-authorization/src/authorizationManagementClientContext.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -10,8 +9,8 @@
109

1110
import * as Models from "./models";
1211
import * as msRest from "@azure/ms-rest-js";
13-
import { TokenCredential } from "@azure/core-auth";
1412
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1514

1615
const packageName = "@azure/arm-authorization";
1716
const packageVersion = "8.4.1";
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
discriminators,
11+
AccessReviewDecision,
12+
AccessReviewDefaultSettings,
13+
AccessReviewInstance,
14+
AccessReviewRecurrencePattern,
15+
AccessReviewRecurrenceRange,
16+
AccessReviewRecurrenceSettings,
17+
AccessReviewReviewer,
18+
AccessReviewScheduleDefinition,
19+
AccessReviewScheduleSettings,
20+
BaseResource,
21+
ErrorDefinition,
22+
ErrorDefinitionProperties,
23+
RoleAssignment
24+
} from "../models/mappers";
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
discriminators,
11+
AccessReviewDecision,
12+
AccessReviewDecisionListResult,
13+
AccessReviewDefaultSettings,
14+
AccessReviewInstance,
15+
AccessReviewReviewer,
16+
AccessReviewScheduleDefinition,
17+
BaseResource,
18+
ErrorDefinition,
19+
ErrorDefinitionProperties,
20+
RoleAssignment
21+
} from "../models/mappers";
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
discriminators,
11+
AccessReviewDecision,
12+
AccessReviewDecisionListResult,
13+
AccessReviewDecisionProperties,
14+
AccessReviewDefaultSettings,
15+
AccessReviewInstance,
16+
AccessReviewReviewer,
17+
AccessReviewScheduleDefinition,
18+
BaseResource,
19+
ErrorDefinition,
20+
ErrorDefinitionProperties,
21+
RoleAssignment
22+
} from "../models/mappers";
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
10-
CloudError
10+
discriminators,
11+
ErrorDefinition,
12+
ErrorDefinitionProperties
1113
} from "../models/mappers";

0 commit comments

Comments
 (0)