Skip to content

Commit

Permalink
First Draft - fixes 5589
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyKBjj committed Jan 8, 2025
1 parent 71ff522 commit 1f9ed07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ function Get-TargetResource
[System.String]
$Description,
#my stuff

[Parameter()]
[System.String[]]
$AllowedDataIngestionLocations,

[Parameter()]
[System.Boolean]
$AllowWidgetContentSync,
Expand Down Expand Up @@ -474,6 +479,7 @@ function Get-TargetResource
DisplayName = $policy.DisplayName
Description = $policy.Description

AllowedDataIngestionLocations = [String[]]$policy.AllowedDataIngestionLocations
AllowWidgetContentSync = $policy.AllowWidgetContentSync
appActionIfAccountIsClockedOut = [string]$policy.appActionIfAccountIsClockedOut
appActionIfUnableToAuthenticateUser = [string]$policy.appActionIfUnableToAuthenticateUser
Expand Down Expand Up @@ -594,6 +600,10 @@ function Set-TargetResource
[System.String]
$Description,
#my stuff
[Parameter()]
[System.String[]]
$AllowedDataIngestionLocations,

[Parameter()]
[System.Boolean]
$AllowWidgetContentSync,
Expand Down Expand Up @@ -1102,6 +1112,11 @@ function Test-TargetResource
[System.String]
$Description,
#my stuff

[Parameter()]
[System.String[]]
$AllowedDataIngestionLocations,

[Parameter()]
[System.Boolean]
$AllowWidgetContentSync,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class MSFT_IntuneAppProtectionPolicyiOS : OMI_BaseResource
[Write, Description("Identity of the iOS App Protection Policy.")] String Identity;
[Write, Description("Description of the iOS App Protection Policy.")] String Description;

[Write, Description("Data storage locations where a user may store managed data. Inherited from managedAppProtection.")] String AllowedDataIngestionLocations[];
[Write, Description("Indicates if content sync for widgets is allowed for iOS on App Protection Policies.")] Boolean AllowWidgetContentSync;
[Write, Description("Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time)."), ValueMap{"block","wipe","warn","blockWhenSettingIsSupported"}, Values{"block","wipe","warn","blockWhenSettingIsSupported"}] String appActionIfAccountIsClockedOut;
[Write, Description("If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD. ."), ValueMap{"block","wipe","warn","blockWhenSettingIsSupported"}, Values{"block","wipe","warn","blockWhenSettingIsSupported"}] String appActionIfUnableToAuthenticateUser;
Expand Down

0 comments on commit 1f9ed07

Please sign in to comment.