-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ManagedServicesEligibleAuthorization.cs
50 lines (43 loc) · 3 KB
/
ManagedServicesEligibleAuthorization.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ManagedServices.Models
{
/// <summary> The Azure Active Directory principal identifier, Azure built-in role, and just-in-time access policy that describes the just-in-time access the principal will receive on the delegated resource in the managed tenant. </summary>
public partial class ManagedServicesEligibleAuthorization
{
/// <summary> Initializes a new instance of ManagedServicesEligibleAuthorization. </summary>
/// <param name="principalId"> The identifier of the Azure Active Directory principal. </param>
/// <param name="roleDefinitionId"> The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope. </param>
/// <exception cref="ArgumentNullException"> <paramref name="roleDefinitionId"/> is null. </exception>
public ManagedServicesEligibleAuthorization(Guid principalId, string roleDefinitionId)
{
Argument.AssertNotNull(roleDefinitionId, nameof(roleDefinitionId));
PrincipalId = principalId;
RoleDefinitionId = roleDefinitionId;
}
/// <summary> Initializes a new instance of ManagedServicesEligibleAuthorization. </summary>
/// <param name="principalId"> The identifier of the Azure Active Directory principal. </param>
/// <param name="principalIdDisplayName"> The display name of the Azure Active Directory principal. </param>
/// <param name="roleDefinitionId"> The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope. </param>
/// <param name="justInTimeAccessPolicy"> The just-in-time access policy setting. </param>
internal ManagedServicesEligibleAuthorization(Guid principalId, string principalIdDisplayName, string roleDefinitionId, ManagedServicesJustInTimeAccessPolicy justInTimeAccessPolicy)
{
PrincipalId = principalId;
PrincipalIdDisplayName = principalIdDisplayName;
RoleDefinitionId = roleDefinitionId;
JustInTimeAccessPolicy = justInTimeAccessPolicy;
}
/// <summary> The identifier of the Azure Active Directory principal. </summary>
public Guid PrincipalId { get; set; }
/// <summary> The display name of the Azure Active Directory principal. </summary>
public string PrincipalIdDisplayName { get; set; }
/// <summary> The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope. </summary>
public string RoleDefinitionId { get; set; }
/// <summary> The just-in-time access policy setting. </summary>
public ManagedServicesJustInTimeAccessPolicy JustInTimeAccessPolicy { get; set; }
}
}