|
1 | 1 | /* |
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. |
4 | 4 | * |
5 | 5 | * Code generated by Microsoft (R) AutoRest Code Generator. |
6 | 6 | * Changes may cause incorrect behavior and will be lost if the code is regenerated. |
@@ -178,7 +178,7 @@ export interface GraphError { |
178 | 178 | /** |
179 | 179 | * Contains the possible cases for DirectoryObject. |
180 | 180 | */ |
181 | | -export type DirectoryObjectUnion = DirectoryObject | Application | ADGroup | ServicePrincipal | User; |
| 181 | +export type DirectoryObjectUnion = DirectoryObject | Application | AppRoleAssignment | ADGroup | ServicePrincipal | User; |
182 | 182 |
|
183 | 183 | /** |
184 | 184 | * Represents an Azure Active Directory object. |
@@ -390,8 +390,9 @@ export interface ApplicationBase { |
390 | 390 | errorUrl?: string; |
391 | 391 | /** |
392 | 392 | * 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' |
393 | 394 | */ |
394 | | - groupMembershipClaims?: any; |
| 395 | + groupMembershipClaims?: GroupMembershipClaimTypes; |
395 | 396 | /** |
396 | 397 | * The home page of the application. |
397 | 398 | */ |
@@ -575,8 +576,9 @@ export interface Application { |
575 | 576 | errorUrl?: string; |
576 | 577 | /** |
577 | 578 | * 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' |
578 | 580 | */ |
579 | | - groupMembershipClaims?: any; |
| 581 | + groupMembershipClaims?: GroupMembershipClaimTypes; |
580 | 582 | /** |
581 | 583 | * The home page of the application. |
582 | 584 | */ |
@@ -709,6 +711,52 @@ export interface AddOwnerParameters { |
709 | 711 | [property: string]: any; |
710 | 712 | } |
711 | 713 |
|
| 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 | + |
712 | 760 | /** |
713 | 761 | * Request parameters for a KeyCredentials update operation |
714 | 762 | */ |
@@ -1122,6 +1170,10 @@ export interface UserUpdateParameters extends UserBase { |
1122 | 1170 | * The mail alias for the user. |
1123 | 1171 | */ |
1124 | 1172 | mailNickname?: string; |
| 1173 | + /** |
| 1174 | + * The primary email address of the user. |
| 1175 | + */ |
| 1176 | + mail?: string; |
1125 | 1177 | } |
1126 | 1178 |
|
1127 | 1179 | /** |
@@ -1374,6 +1426,14 @@ export interface UsersListOptionalParams extends msRest.RequestOptionsBase { |
1374 | 1426 | * The filter to apply to the operation. |
1375 | 1427 | */ |
1376 | 1428 | 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; |
1377 | 1437 | } |
1378 | 1438 |
|
1379 | 1439 | /** |
@@ -1486,6 +1546,18 @@ export interface ServicePrincipalListResult extends Array<ServicePrincipal> { |
1486 | 1546 | odatanextLink?: string; |
1487 | 1547 | } |
1488 | 1548 |
|
| 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 | + |
1489 | 1561 | /** |
1490 | 1562 | * @interface |
1491 | 1563 | * Server response for Get tenant users API call. |
@@ -1526,6 +1598,14 @@ export interface OAuth2PermissionGrantListResult extends Array<OAuth2PermissionG |
1526 | 1598 | odatanextLink?: string; |
1527 | 1599 | } |
1528 | 1600 |
|
| 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 | + |
1529 | 1609 | /** |
1530 | 1610 | * Defines values for UserType. |
1531 | 1611 | * Possible values include: 'Member', 'Guest' |
@@ -2102,6 +2182,46 @@ export type ServicePrincipalsGetResponse = ServicePrincipal & { |
2102 | 2182 | }; |
2103 | 2183 | }; |
2104 | 2184 |
|
| 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 | + |
2105 | 2225 | /** |
2106 | 2226 | * Contains response data for the listOwners operation. |
2107 | 2227 | */ |
@@ -2182,6 +2302,46 @@ export type ServicePrincipalsListNextResponse = ServicePrincipalListResult & { |
2182 | 2302 | }; |
2183 | 2303 | }; |
2184 | 2304 |
|
| 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 | + |
2185 | 2345 | /** |
2186 | 2346 | * Contains response data for the listOwnersNext operation. |
2187 | 2347 | */ |
|
0 commit comments