| | 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.Analytics.Synapse.AccessControl.Models |
| | 11 | | { |
| | 12 | | /// <summary> Role Assignment request details. </summary> |
| | 13 | | public partial class RoleAssignmentOptions |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of RoleAssignmentOptions. </summary> |
| | 16 | | /// <param name="roleId"> Role ID of the Synapse Built-In Role. </param> |
| | 17 | | /// <param name="principalId"> Object ID of the AAD principal or security-group. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="roleId"/> or <paramref name="principalId"/> is null |
| 4 | 19 | | public RoleAssignmentOptions(string roleId, string principalId) |
| | 20 | | { |
| 4 | 21 | | if (roleId == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(roleId)); |
| | 24 | | } |
| 4 | 25 | | if (principalId == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(principalId)); |
| | 28 | | } |
| | 29 | |
|
| 4 | 30 | | RoleId = roleId; |
| 4 | 31 | | PrincipalId = principalId; |
| 4 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Role ID of the Synapse Built-In Role. </summary> |
| 4 | 35 | | public string RoleId { get; } |
| | 36 | | /// <summary> Object ID of the AAD principal or security-group. </summary> |
| 4 | 37 | | public string PrincipalId { get; } |
| | 38 | | } |
| | 39 | | } |