-
Notifications
You must be signed in to change notification settings - Fork 243
/
ManagedIOSLobApp.cs
137 lines (137 loc) · 6.34 KB
/
ManagedIOSLobApp.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// <auto-generated/>
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System;
namespace Microsoft.Graph.Models {
/// <summary>
/// Contains properties and inherited properties for Managed iOS Line Of Business apps.
/// </summary>
public class ManagedIOSLobApp : ManagedMobileLobApp, IParsable
{
/// <summary>Contains properties of the possible iOS device types the mobile app can run on.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public IosDeviceType? ApplicableDeviceType {
get { return BackingStore?.Get<IosDeviceType?>("applicableDeviceType"); }
set { BackingStore?.Set("applicableDeviceType", value); }
}
#nullable restore
#else
public IosDeviceType ApplicableDeviceType {
get { return BackingStore?.Get<IosDeviceType>("applicableDeviceType"); }
set { BackingStore?.Set("applicableDeviceType", value); }
}
#endif
/// <summary>The build number of managed iOS Line of Business (LoB) app.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? BuildNumber {
get { return BackingStore?.Get<string?>("buildNumber"); }
set { BackingStore?.Set("buildNumber", value); }
}
#nullable restore
#else
public string BuildNumber {
get { return BackingStore?.Get<string>("buildNumber"); }
set { BackingStore?.Set("buildNumber", value); }
}
#endif
/// <summary>The Identity Name.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? BundleId {
get { return BackingStore?.Get<string?>("bundleId"); }
set { BackingStore?.Set("bundleId", value); }
}
#nullable restore
#else
public string BundleId {
get { return BackingStore?.Get<string>("bundleId"); }
set { BackingStore?.Set("bundleId", value); }
}
#endif
/// <summary>The expiration time.</summary>
public DateTimeOffset? ExpirationDateTime {
get { return BackingStore?.Get<DateTimeOffset?>("expirationDateTime"); }
set { BackingStore?.Set("expirationDateTime", value); }
}
/// <summary>The value for the minimum applicable operating system.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public IosMinimumOperatingSystem? MinimumSupportedOperatingSystem {
get { return BackingStore?.Get<IosMinimumOperatingSystem?>("minimumSupportedOperatingSystem"); }
set { BackingStore?.Set("minimumSupportedOperatingSystem", value); }
}
#nullable restore
#else
public IosMinimumOperatingSystem MinimumSupportedOperatingSystem {
get { return BackingStore?.Get<IosMinimumOperatingSystem>("minimumSupportedOperatingSystem"); }
set { BackingStore?.Set("minimumSupportedOperatingSystem", value); }
}
#endif
/// <summary>The version number of managed iOS Line of Business (LoB) app.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? VersionNumber {
get { return BackingStore?.Get<string?>("versionNumber"); }
set { BackingStore?.Set("versionNumber", value); }
}
#nullable restore
#else
public string VersionNumber {
get { return BackingStore?.Get<string>("versionNumber"); }
set { BackingStore?.Set("versionNumber", value); }
}
#endif
/// <summary>
/// Instantiates a new <see cref="ManagedIOSLobApp"/> and sets the default values.
/// </summary>
public ManagedIOSLobApp() : base()
{
OdataType = "#microsoft.graph.managedIOSLobApp";
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="ManagedIOSLobApp"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static new ManagedIOSLobApp CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new ManagedIOSLobApp();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
{
{"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue<IosDeviceType>(IosDeviceType.CreateFromDiscriminatorValue); } },
{"buildNumber", n => { BuildNumber = n.GetStringValue(); } },
{"bundleId", n => { BundleId = n.GetStringValue(); } },
{"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } },
{"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue<IosMinimumOperatingSystem>(IosMinimumOperatingSystem.CreateFromDiscriminatorValue); } },
{"versionNumber", n => { VersionNumber = n.GetStringValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public override void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue<IosDeviceType>("applicableDeviceType", ApplicableDeviceType);
writer.WriteStringValue("buildNumber", BuildNumber);
writer.WriteStringValue("bundleId", BundleId);
writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime);
writer.WriteObjectValue<IosMinimumOperatingSystem>("minimumSupportedOperatingSystem", MinimumSupportedOperatingSystem);
writer.WriteStringValue("versionNumber", VersionNumber);
}
}
}