| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | |
| | | 10 | | namespace Azure.Security.KeyVault.Administration.Models |
| | | 11 | | { |
| | | 12 | | /// <summary> Role assignment properties. </summary> |
| | | 13 | | public partial class RoleAssignmentProperties |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of RoleAssignmentProperties. </summary> |
| | | 16 | | /// <param name="roleDefinitionId"> The role definition ID used in the role assignment. </param> |
| | | 17 | | /// <param name="principalId"> The principal ID assigned to the role. This maps to the ID inside the Active Dire |
| | | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="roleDefinitionId"/> or <paramref name="principalId" |
| | 22 | 19 | | public RoleAssignmentProperties(string roleDefinitionId, string principalId) |
| | | 20 | | { |
| | 22 | 21 | | if (roleDefinitionId == null) |
| | | 22 | | { |
| | 0 | 23 | | throw new ArgumentNullException(nameof(roleDefinitionId)); |
| | | 24 | | } |
| | 22 | 25 | | if (principalId == null) |
| | | 26 | | { |
| | 0 | 27 | | throw new ArgumentNullException(nameof(principalId)); |
| | | 28 | | } |
| | | 29 | | |
| | 22 | 30 | | RoleDefinitionId = roleDefinitionId; |
| | 22 | 31 | | PrincipalId = principalId; |
| | 22 | 32 | | } |
| | | 33 | | |
| | | 34 | | /// <summary> The role definition ID used in the role assignment. </summary> |
| | 30 | 35 | | public string RoleDefinitionId { get; } |
| | | 36 | | /// <summary> The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can poi |
| | 30 | 37 | | public string PrincipalId { get; } |
| | | 38 | | } |
| | | 39 | | } |