forked from microsoftgraph/msgraph-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManagedAppProtection.cs
More file actions
72 lines (72 loc) · 5.12 KB
/
Copy pathAndroidManagedAppProtection.cs
File metadata and controls
72 lines (72 loc) · 5.12 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
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ApiSdk.Models {
public class AndroidManagedAppProtection : TargetedManagedAppProtection, IParsable {
/// <summary>List of apps to which the policy is deployed.</summary>
public List<ManagedMobileApp> Apps { get; set; }
/// <summary>Friendly name of the preferred custom browser to open weblink on Android.</summary>
public string CustomBrowserDisplayName { get; set; }
/// <summary>Unique identifier of a custom browser to open weblink on Android.</summary>
public string CustomBrowserPackageId { get; set; }
/// <summary>Count of apps to which the current policy is deployed.</summary>
public int? DeployedAppCount { get; set; }
/// <summary>Navigation property to deployment summary of the configuration.</summary>
public ManagedAppPolicyDeploymentSummary DeploymentSummary { get; set; }
/// <summary>When this setting is enabled, app level encryption is disabled if device level encryption is enabled</summary>
public bool? DisableAppEncryptionIfDeviceEncryptionIsEnabled { get; set; }
/// <summary>Indicates whether application data for managed apps should be encrypted</summary>
public bool? EncryptAppData { get; set; }
/// <summary>Define the oldest required Android security patch level a user can have to gain secure access to the app.</summary>
public string MinimumRequiredPatchVersion { get; set; }
/// <summary>Define the oldest recommended Android security patch level a user can have for secure access to the app.</summary>
public string MinimumWarningPatchVersion { get; set; }
/// <summary>Indicates whether a managed user can take screen captures of managed apps</summary>
public bool? ScreenCaptureBlocked { get; set; }
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
/// </summary>
public static new AndroidManagedAppProtection CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new AndroidManagedAppProtection();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public new IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) {
{"apps", n => { Apps = n.GetCollectionOfObjectValues<ManagedMobileApp>(ManagedMobileApp.CreateFromDiscriminatorValue).ToList(); } },
{"customBrowserDisplayName", n => { CustomBrowserDisplayName = n.GetStringValue(); } },
{"customBrowserPackageId", n => { CustomBrowserPackageId = n.GetStringValue(); } },
{"deployedAppCount", n => { DeployedAppCount = n.GetIntValue(); } },
{"deploymentSummary", n => { DeploymentSummary = n.GetObjectValue<ManagedAppPolicyDeploymentSummary>(ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); } },
{"disableAppEncryptionIfDeviceEncryptionIsEnabled", n => { DisableAppEncryptionIfDeviceEncryptionIsEnabled = n.GetBoolValue(); } },
{"encryptAppData", n => { EncryptAppData = n.GetBoolValue(); } },
{"minimumRequiredPatchVersion", n => { MinimumRequiredPatchVersion = n.GetStringValue(); } },
{"minimumWarningPatchVersion", n => { MinimumWarningPatchVersion = n.GetStringValue(); } },
{"screenCaptureBlocked", n => { ScreenCaptureBlocked = n.GetBoolValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteCollectionOfObjectValues<ManagedMobileApp>("apps", Apps);
writer.WriteStringValue("customBrowserDisplayName", CustomBrowserDisplayName);
writer.WriteStringValue("customBrowserPackageId", CustomBrowserPackageId);
writer.WriteIntValue("deployedAppCount", DeployedAppCount);
writer.WriteObjectValue<ManagedAppPolicyDeploymentSummary>("deploymentSummary", DeploymentSummary);
writer.WriteBoolValue("disableAppEncryptionIfDeviceEncryptionIsEnabled", DisableAppEncryptionIfDeviceEncryptionIsEnabled);
writer.WriteBoolValue("encryptAppData", EncryptAppData);
writer.WriteStringValue("minimumRequiredPatchVersion", MinimumRequiredPatchVersion);
writer.WriteStringValue("minimumWarningPatchVersion", MinimumWarningPatchVersion);
writer.WriteBoolValue("screenCaptureBlocked", ScreenCaptureBlocked);
}
}
}