-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathMicrosoftGraphRscConfiguration.cs
More file actions
114 lines (100 loc) · 5.36 KB
/
MicrosoftGraphRscConfiguration.cs
File metadata and controls
114 lines (100 loc) · 5.36 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6306, generator: {generator})
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Graph.Beta.PowerShell.Models
{
using Microsoft.Graph.Beta.PowerShell.TeamsInternal;
using System.Linq;
using static Microsoft.Graph.Beta.PowerShell.Runtime.Extensions;
/// <summary>
/// Model representing RSC configuration for a tenant.
/// </summary>
public partial class MicrosoftGraphRscConfiguration :
IMicrosoftGraphRscConfiguration,
IMicrosoftGraphRscConfigurationInternal,
Runtime.IValidates
{
private readonly PropertyTracker _propertyTracker = new PropertyTracker();
public void TrackProperty(string propertyName) => _propertyTracker.TrackProperty(propertyName);
public bool IsPropertySet(string propertyName) =>_propertyTracker.IsPropertySet(propertyName);
public T SanitizeValue<T>(object value) => PropertyTracker.SanitizeValue<T>(value);
/// <summary>
/// Backing field for Inherited model <see cref= "Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEntity" />
/// </summary>
private Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEntity __microsoftGraphEntity = new Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphEntity();
/// <summary>The unique identifier for an entity. Read-only.</summary>
[Microsoft.Graph.Beta.PowerShell.Origin(Microsoft.Graph.Beta.PowerShell.PropertyOrigin.Inherited)]
public string Id { get => ((Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEntityInternal)__microsoftGraphEntity).Id; set => ((Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEntityInternal)__microsoftGraphEntity).Id = value ?? null; }
/// <summary>Backing field for <see cref="State" /> property.</summary>
private MicrosoftGraphRscConfigurationState _state;
/// <summary>
/// Label selection mode for teams.
/// </summary>
[Microsoft.Graph.Beta.PowerShell.Origin(Microsoft.Graph.Beta.PowerShell.PropertyOrigin.Owned)]
public MicrosoftGraphRscConfigurationState State { get => this._state; set => this._state = value; }
/// <summary>Backing field for <see cref="ScopeType" /> property.</summary>
private MicrosoftGraphRscConfigurationScopeType _scopeType;
/// <summary>
/// Label selection mode for teams.
/// </summary>
[Microsoft.Graph.Beta.PowerShell.Origin(Microsoft.Graph.Beta.PowerShell.PropertyOrigin.Owned)]
public MicrosoftGraphRscConfigurationScopeType ScopeType { get => this._scopeType; set => this._scopeType = value; }
/// <summary>Creates an new <see cref="MicrosoftGraphRscConfiguration" /> instance.</summary>
public MicrosoftGraphRscConfiguration()
{
}
/// <summary>Validates that this object meets the validation criteria.</summary>
/// <param name="eventListener">an <see cref="Microsoft.Graph.Beta.PowerShell.Runtime.IEventListener" /> instance that will receive validation
/// events.</param>
/// <returns>
/// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
/// </returns>
public async global::System.Threading.Tasks.Task Validate(Microsoft.Graph.Beta.PowerShell.Runtime.IEventListener eventListener)
{
await eventListener.AssertNotNull(nameof(__microsoftGraphEntity), __microsoftGraphEntity);
await eventListener.AssertObjectIsValid(nameof(__microsoftGraphEntity), __microsoftGraphEntity);
}
}
/// <summary>
/// Model representing association between a Teams App and Preapproval policies.
/// </summary>
public partial interface IMicrosoftGraphRscConfiguration :
Microsoft.Graph.Beta.PowerShell.Runtime.IJsonSerializable,
IMicrosoftGraphEntity
{
/// <summary>
/// Gets or sets the rsc configuration scope type.
/// </summary>
[Microsoft.Graph.Beta.PowerShell.Runtime.Info(
Required = true,
ReadOnly = true,
Description = @"RSC configuration Scope Type",
SerializedName = @"rscConfigurationScopeType",
PossibleTypes = new[] { typeof(MicrosoftGraphRscConfigurationScopeType) })]
MicrosoftGraphRscConfigurationScopeType ScopeType { get; set; }
/// <summary>
/// Gets or sets the rsc configuration state.
/// </summary>
[Microsoft.Graph.Beta.PowerShell.Runtime.Info(
Required = true,
ReadOnly = false,
Description = @"RSC Configuration State",
SerializedName = @"rscConfigurationState",
PossibleTypes = new[] { typeof(string) })]
MicrosoftGraphRscConfigurationState State { get; set; }
}
/// <summary>
/// Internal model representing association between a Teams App and Preapproval policies.
/// </summary>
internal partial interface IMicrosoftGraphRscConfigurationInternal :
IMicrosoftGraphEntityInternal
{
/// <summary>
/// Gets or sets the rsc configuration state.
/// </summary>
MicrosoftGraphRscConfigurationScopeType ScopeType { get; set; }
/// <summary>
/// Gets or sets the rsc configuration state.
/// </summary>
MicrosoftGraphRscConfigurationState State { get; set; }
}
}