| | 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.ResourceManager.Resources.Models |
| | 11 | | { |
| | 12 | | /// <summary> The managed application provider authorization. </summary> |
| | 13 | | public partial class ApplicationProviderAuthorization |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ApplicationProviderAuthorization. </summary> |
| | 16 | | /// <param name="principalId"> The provider's principal identifier. This is the identity that the provider |
| | 17 | | /// <param name="roleDefinitionId"> The provider's role definition identifier. This role will define all th |
| 0 | 18 | | public ApplicationProviderAuthorization(string principalId, string roleDefinitionId) |
| | 19 | | { |
| 0 | 20 | | if (principalId == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(principalId)); |
| | 23 | | } |
| 0 | 24 | | if (roleDefinitionId == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(roleDefinitionId)); |
| | 27 | | } |
| | 28 | |
|
| 0 | 29 | | PrincipalId = principalId; |
| 0 | 30 | | RoleDefinitionId = roleDefinitionId; |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> The provider's principal identifier. This is the identity that the provider will use to call |
| 0 | 34 | | public string PrincipalId { get; set; } |
| | 35 | | /// <summary> The provider's role definition identifier. This role will define all the permissions that the |
| 0 | 36 | | public string RoleDefinitionId { get; set; } |
| | 37 | | } |
| | 38 | | } |