/
JitApprover.cs
44 lines (37 loc) · 1.5 KB
/
JitApprover.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Resources.Models
{
/// <summary> JIT approver definition. </summary>
public partial class JitApprover
{
/// <summary> Initializes a new instance of JitApprover. </summary>
/// <param name="id"> The approver service principal Id. </param>
/// <exception cref="ArgumentNullException"> <paramref name="id"/> is null. </exception>
public JitApprover(string id)
{
Argument.AssertNotNull(id, nameof(id));
Id = id;
}
/// <summary> Initializes a new instance of JitApprover. </summary>
/// <param name="id"> The approver service principal Id. </param>
/// <param name="approverType"> The approver type. </param>
/// <param name="displayName"> The approver display name. </param>
internal JitApprover(string id, JitApproverType? approverType, string displayName)
{
Id = id;
ApproverType = approverType;
DisplayName = displayName;
}
/// <summary> The approver service principal Id. </summary>
public string Id { get; set; }
/// <summary> The approver type. </summary>
public JitApproverType? ApproverType { get; set; }
/// <summary> The approver display name. </summary>
public string DisplayName { get; set; }
}
}