Skip to content

Commit c8773de

Browse files
author
SDKAuto
committed
CodeGen from PR 13045 in Azure/azure-rest-api-specs
Merge 0a180f88f62abdde573083a60288704c1c69ae10 into 21159753c7a34b0347169c139cea18c5d24c8575
1 parent 5ab285e commit c8773de

26 files changed

+687
-82
lines changed

sdk/graphrbac/graph/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/graphrbac/graph/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "GraphRbacManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "5.0.1",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^2.0.0",
8-
"@azure/ms-rest-js": "^2.0.3",
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
99
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
@@ -20,11 +20,11 @@
2020
"module": "./esm/graphRbacManagementClient.js",
2121
"types": "./esm/graphRbacManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
2929
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/graphrbac/graph",
3030
"repository": {

sdk/graphrbac/graph/src/graphRbacManagementClient.ts

Lines changed: 2 additions & 3 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

sdk/graphrbac/graph/src/graphRbacManagementClientContext.ts

Lines changed: 4 additions & 12 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
@@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
1413

1514
const packageName = "@azure/graph";
16-
const packageVersion = "5.0.0";
15+
const packageVersion = "5.0.1";
1716

1817
export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
@@ -47,14 +46,7 @@ export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceCl
4746
this.apiVersion = '1.6';
4847
this.acceptLanguage = 'en-US';
4948
this.longRunningOperationRetryTimeout = 30;
50-
51-
// This is a manual patch to mitigate a bug in autorest.typescript
52-
// https://github.com/Azure/autorest.typescript/issues/545
53-
//
54-
// If you are regenerating this package, and you have seen a diff that removes
55-
// this comment or changes the following line. Please check to see if the bug
56-
// above has been fixed. If not, please keep this change.
57-
this.baseUri = options.baseUri || "https://graph.windows.net";
49+
this.baseUri = options.baseUri || this.baseUri || "https://graph.windows.net";
5850
this.requestContentType = "application/json; charset=utf-8";
5951
this.credentials = credentials;
6052
this.tenantID = tenantID;

sdk/graphrbac/graph/src/models/applicationsMappers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 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.
@@ -16,6 +16,7 @@ export {
1616
ApplicationListResult,
1717
ApplicationUpdateParameters,
1818
AppRole,
19+
AppRoleAssignment,
1920
DirectoryObject,
2021
DirectoryObjectListResult,
2122
GraphError,

sdk/graphrbac/graph/src/models/deletedApplicationsMappers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 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.
@@ -12,6 +12,7 @@ export {
1212
Application,
1313
ApplicationListResult,
1414
AppRole,
15+
AppRoleAssignment,
1516
DirectoryObject,
1617
GraphError,
1718
InformationalUrl,

sdk/graphrbac/graph/src/models/domainsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 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.

sdk/graphrbac/graph/src/models/groupsMappers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 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.
@@ -12,6 +12,7 @@ export {
1212
ADGroup,
1313
Application,
1414
AppRole,
15+
AppRoleAssignment,
1516
CheckGroupMembershipParameters,
1617
CheckGroupMembershipResult,
1718
DirectoryObject,

sdk/graphrbac/graph/src/models/index.ts

Lines changed: 165 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 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.
@@ -178,7 +178,7 @@ export interface GraphError {
178178
/**
179179
* Contains the possible cases for DirectoryObject.
180180
*/
181-
export type DirectoryObjectUnion = DirectoryObject | Application | ADGroup | ServicePrincipal | User;
181+
export type DirectoryObjectUnion = DirectoryObject | Application | AppRoleAssignment | ADGroup | ServicePrincipal | User;
182182

183183
/**
184184
* Represents an Azure Active Directory object.
@@ -390,8 +390,9 @@ export interface ApplicationBase {
390390
errorUrl?: string;
391391
/**
392392
* Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
393+
* Possible values include: 'None', 'SecurityGroup', 'All'
393394
*/
394-
groupMembershipClaims?: any;
395+
groupMembershipClaims?: GroupMembershipClaimTypes;
395396
/**
396397
* The home page of the application.
397398
*/
@@ -575,8 +576,9 @@ export interface Application {
575576
errorUrl?: string;
576577
/**
577578
* Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
579+
* Possible values include: 'None', 'SecurityGroup', 'All'
578580
*/
579-
groupMembershipClaims?: any;
581+
groupMembershipClaims?: GroupMembershipClaimTypes;
580582
/**
581583
* The home page of the application.
582584
*/
@@ -709,6 +711,52 @@ export interface AddOwnerParameters {
709711
[property: string]: any;
710712
}
711713

714+
/**
715+
* AppRoleAssignment information.
716+
*/
717+
export interface AppRoleAssignment {
718+
/**
719+
* Polymorphic Discriminator
720+
*/
721+
objectType: "AppRoleAssignment";
722+
/**
723+
* The object ID.
724+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
725+
*/
726+
readonly objectId?: string;
727+
/**
728+
* The time at which the directory object was deleted.
729+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
730+
*/
731+
readonly deletionTimestamp?: Date;
732+
/**
733+
* The role id that was assigned to the principal. This role must be declared by the target
734+
* resource application resourceId in its appRoles property.
735+
*/
736+
id?: string;
737+
/**
738+
* The display name of the principal that was granted the access.
739+
*/
740+
principalDisplayName?: string;
741+
/**
742+
* The unique identifier (objectId) for the principal being granted the access.
743+
*/
744+
principalId?: string;
745+
/**
746+
* The type of principal. This can either be "User", "Group" or "ServicePrincipal".
747+
*/
748+
principalType?: string;
749+
/**
750+
* The display name of the resource to which the assignment was made.
751+
*/
752+
resourceDisplayName?: string;
753+
/**
754+
* The unique identifier (objectId) for the target resource (service principal) for which the
755+
* assignment was made.
756+
*/
757+
resourceId?: string;
758+
}
759+
712760
/**
713761
* Request parameters for a KeyCredentials update operation
714762
*/
@@ -1122,6 +1170,10 @@ export interface UserUpdateParameters extends UserBase {
11221170
* The mail alias for the user.
11231171
*/
11241172
mailNickname?: string;
1173+
/**
1174+
* The primary email address of the user.
1175+
*/
1176+
mail?: string;
11251177
}
11261178

11271179
/**
@@ -1374,6 +1426,14 @@ export interface UsersListOptionalParams extends msRest.RequestOptionsBase {
13741426
* The filter to apply to the operation.
13751427
*/
13761428
filter?: string;
1429+
/**
1430+
* The expand value for the operation result.
1431+
*/
1432+
expand?: string;
1433+
/**
1434+
* (Optional) Set the maximum number of results per response. Default value: 100.
1435+
*/
1436+
top?: number;
13771437
}
13781438

13791439
/**
@@ -1486,6 +1546,18 @@ export interface ServicePrincipalListResult extends Array<ServicePrincipal> {
14861546
odatanextLink?: string;
14871547
}
14881548

1549+
/**
1550+
* @interface
1551+
* AppRoleAssignment list operation result.
1552+
* @extends Array<AppRoleAssignment>
1553+
*/
1554+
export interface AppRoleAssignmentListResult extends Array<AppRoleAssignment> {
1555+
/**
1556+
* The URL to get the next set of results.
1557+
*/
1558+
odatanextLink?: string;
1559+
}
1560+
14891561
/**
14901562
* @interface
14911563
* Server response for Get tenant users API call.
@@ -1526,6 +1598,14 @@ export interface OAuth2PermissionGrantListResult extends Array<OAuth2PermissionG
15261598
odatanextLink?: string;
15271599
}
15281600

1601+
/**
1602+
* Defines values for GroupMembershipClaimTypes.
1603+
* Possible values include: 'None', 'SecurityGroup', 'All'
1604+
* @readonly
1605+
* @enum {string}
1606+
*/
1607+
export type GroupMembershipClaimTypes = 'None' | 'SecurityGroup' | 'All';
1608+
15291609
/**
15301610
* Defines values for UserType.
15311611
* Possible values include: 'Member', 'Guest'
@@ -2102,6 +2182,46 @@ export type ServicePrincipalsGetResponse = ServicePrincipal & {
21022182
};
21032183
};
21042184

2185+
/**
2186+
* Contains response data for the listAppRoleAssignedTo operation.
2187+
*/
2188+
export type ServicePrincipalsListAppRoleAssignedToResponse = AppRoleAssignmentListResult & {
2189+
/**
2190+
* The underlying HTTP response.
2191+
*/
2192+
_response: msRest.HttpResponse & {
2193+
/**
2194+
* The response body as text (string format)
2195+
*/
2196+
bodyAsText: string;
2197+
2198+
/**
2199+
* The response body as parsed JSON or XML
2200+
*/
2201+
parsedBody: AppRoleAssignmentListResult;
2202+
};
2203+
};
2204+
2205+
/**
2206+
* Contains response data for the listAppRoleAssignments operation.
2207+
*/
2208+
export type ServicePrincipalsListAppRoleAssignmentsResponse = AppRoleAssignmentListResult & {
2209+
/**
2210+
* The underlying HTTP response.
2211+
*/
2212+
_response: msRest.HttpResponse & {
2213+
/**
2214+
* The response body as text (string format)
2215+
*/
2216+
bodyAsText: string;
2217+
2218+
/**
2219+
* The response body as parsed JSON or XML
2220+
*/
2221+
parsedBody: AppRoleAssignmentListResult;
2222+
};
2223+
};
2224+
21052225
/**
21062226
* Contains response data for the listOwners operation.
21072227
*/
@@ -2182,6 +2302,46 @@ export type ServicePrincipalsListNextResponse = ServicePrincipalListResult & {
21822302
};
21832303
};
21842304

2305+
/**
2306+
* Contains response data for the listAppRoleAssignedToNext operation.
2307+
*/
2308+
export type ServicePrincipalsListAppRoleAssignedToNextResponse = AppRoleAssignmentListResult & {
2309+
/**
2310+
* The underlying HTTP response.
2311+
*/
2312+
_response: msRest.HttpResponse & {
2313+
/**
2314+
* The response body as text (string format)
2315+
*/
2316+
bodyAsText: string;
2317+
2318+
/**
2319+
* The response body as parsed JSON or XML
2320+
*/
2321+
parsedBody: AppRoleAssignmentListResult;
2322+
};
2323+
};
2324+
2325+
/**
2326+
* Contains response data for the listAppRoleAssignmentsNext operation.
2327+
*/
2328+
export type ServicePrincipalsListAppRoleAssignmentsNextResponse = AppRoleAssignmentListResult & {
2329+
/**
2330+
* The underlying HTTP response.
2331+
*/
2332+
_response: msRest.HttpResponse & {
2333+
/**
2334+
* The response body as text (string format)
2335+
*/
2336+
bodyAsText: string;
2337+
2338+
/**
2339+
* The response body as parsed JSON or XML
2340+
*/
2341+
parsedBody: AppRoleAssignmentListResult;
2342+
};
2343+
};
2344+
21852345
/**
21862346
* Contains response data for the listOwnersNext operation.
21872347
*/

0 commit comments

Comments
 (0)