@@ -21,44 +21,44 @@ func main() {
2121 // Define the payload for creating a new computer prestage
2222 prestage := jamfpro.ResourceComputerPrestage {
2323 DisplayName : "jamfpro-sdk-example-computerPrestageFull-config" ,
24- Mandatory : jamfpro . TruePtr () ,
25- MDMRemovable : jamfpro . TruePtr () ,
24+ Mandatory : true ,
25+ MDMRemovable : true ,
2626 SupportPhoneNumber : "111-222-3333" ,
2727 SupportEmailAddress : "email@company.com" ,
2828 Department : "department name" ,
29- DefaultPrestage : jamfpro . FalsePtr () ,
29+ DefaultPrestage : false ,
3030 EnrollmentSiteId : "-1" ,
31- KeepExistingSiteMembership : jamfpro . FalsePtr () ,
32- KeepExistingLocationInformation : jamfpro . FalsePtr () ,
33- RequireAuthentication : jamfpro . FalsePtr () ,
31+ KeepExistingSiteMembership : false ,
32+ KeepExistingLocationInformation : false ,
33+ RequireAuthentication : false ,
3434 AuthenticationPrompt : "hello welcome to your enterprise managed macOS device" ,
35- PreventActivationLock : jamfpro . FalsePtr () ,
36- EnableDeviceBasedActivationLock : jamfpro . FalsePtr () ,
35+ PreventActivationLock : false ,
36+ EnableDeviceBasedActivationLock : false ,
3737 DeviceEnrollmentProgramInstanceId : "1" ,
3838 SkipSetupItems : jamfpro.ComputerPrestageSubsetSkipSetupItems {
3939 // Selected items are not displayed in the Setup Assistant during enrollment
40- Biometric : jamfpro . TruePtr () ,
41- TermsOfAddress : jamfpro . TruePtr () ,
42- FileVault : jamfpro . TruePtr () ,
43- ICloudDiagnostics : jamfpro . TruePtr () ,
44- Diagnostics : jamfpro . TruePtr () ,
45- Accessibility : jamfpro . TruePtr () ,
46- AppleID : jamfpro . TruePtr () ,
47- ScreenTime : jamfpro . TruePtr () ,
48- Siri : jamfpro . TruePtr () ,
49- DisplayTone : jamfpro . FalsePtr () , // Deprecated
50- Restore : jamfpro . TruePtr () ,
51- Appearance : jamfpro . TruePtr () ,
52- Privacy : jamfpro . TruePtr () ,
53- Payment : jamfpro . TruePtr () ,
54- Registration : jamfpro . TruePtr () ,
55- TOS : jamfpro . TruePtr () ,
56- ICloudStorage : jamfpro . TruePtr () ,
57- Location : jamfpro . FalsePtr () ,
58- Intelligence : jamfpro . TruePtr () ,
59- EnableLockdownMode : jamfpro . TruePtr () ,
60- Welcome : jamfpro . TruePtr () ,
61- Wallpaper : jamfpro . TruePtr () ,
40+ Biometric : true ,
41+ TermsOfAddress : true ,
42+ FileVault : true ,
43+ ICloudDiagnostics : true ,
44+ Diagnostics : true ,
45+ Accessibility : true ,
46+ AppleID : true ,
47+ ScreenTime : true ,
48+ Siri : true ,
49+ DisplayTone : false , // Deprecated
50+ Restore : true ,
51+ Appearance : true ,
52+ Privacy : true ,
53+ Payment : true ,
54+ Registration : true ,
55+ TOS : true ,
56+ ICloudStorage : true ,
57+ Location : false ,
58+ Intelligence : true ,
59+ EnableLockdownMode : true ,
60+ Welcome : true ,
61+ Wallpaper : true ,
6262 },
6363 LocationInformation : jamfpro.ComputerPrestageSubsetLocationInformation {
6464 ID : "-1" , // Required
@@ -74,8 +74,8 @@ func main() {
7474 },
7575 PurchasingInformation : jamfpro.ComputerPrestageSubsetPurchasingInformation {
7676 ID : "-1" , // Required
77- Leased : jamfpro . FalsePtr () ,
78- Purchased : jamfpro . TruePtr () ,
77+ Leased : false ,
78+ Purchased : true ,
7979 AppleCareId : "" ,
8080 PONumber : "" ,
8181 Vendor : "" ,
@@ -89,33 +89,33 @@ func main() {
8989 VersionLock : 0 ,
9090 },
9191 EnrollmentCustomizationId : "0" ,
92- AutoAdvanceSetup : jamfpro . FalsePtr () ,
93- InstallProfilesDuringSetup : jamfpro . TruePtr () ,
92+ AutoAdvanceSetup : false ,
93+ InstallProfilesDuringSetup : true ,
9494 PrestageInstalledProfileIds : []string {},
9595 CustomPackageIds : []string {"1" , "2" },
9696 CustomPackageDistributionPointId : "-1" , // -2 for all cloud distribution points , -1 for not used, then id for all distribution points
97- EnableRecoveryLock : jamfpro . FalsePtr () ,
97+ EnableRecoveryLock : false ,
9898 RecoveryLockPasswordType : "MANUAL" ,
99- RotateRecoveryLockPassword : jamfpro . FalsePtr () ,
99+ RotateRecoveryLockPassword : false ,
100100 PrestageMinimumOsTargetVersionType : "MINIMUM_OS_SPECIFIC_VERSION" , // NO_ENFORCEMENT / MINIMUM_OS_LATEST_VERSION / MINIMUM_OS_LATEST_MAJOR_VERSION / MINIMUM_OS_LATEST_MINOR_VERSION / MINIMUM_OS_SPECIFIC_VERSION
101101 MinimumOsSpecificVersion : "14.6" , // Required if PrestageMinimumOsTargetVersionType is MINIMUM_OS_SPECIFIC_VERSION
102102 //ProfileUuid: "0386E7C8D455A040106850A8A2033968", // Automated Device Enrollment instance to associate with the PreStage enrollment. Devices associated with the selected Automated Device Enrollment instance can be assigned the PreStage enrollment
103103 SiteId : "-1" ,
104104 VersionLock : 0 ,
105105 AccountSettings : jamfpro.ComputerPrestageSubsetAccountSettings {
106- PayloadConfigured : jamfpro . TruePtr () ,
107- LocalAdminAccountEnabled : jamfpro . TruePtr () ,
106+ PayloadConfigured : true ,
107+ LocalAdminAccountEnabled : true ,
108108 AdminUsername : "testadmin" ,
109109 AdminPassword : "testpassword" ,
110- HiddenAdminAccount : jamfpro . TruePtr () ,
111- LocalUserManaged : jamfpro . FalsePtr () ,
110+ HiddenAdminAccount : true ,
111+ LocalUserManaged : false ,
112112 UserAccountType : "ADMINISTRATOR" ,
113113 VersionLock : 0 ,
114- PrefillPrimaryAccountInfoFeatureEnabled : jamfpro . TruePtr () ,
114+ PrefillPrimaryAccountInfoFeatureEnabled : true ,
115115 PrefillType : "UNKNOWN" , // UNKNOWN / DEVICE_OWNER / CUSTOM
116116 PrefillAccountFullName : "" , // Required if PrefillType is CUSTOM
117117 PrefillAccountUserName : "" , // Required if PrefillType is CUSTOM
118- PreventPrefillInfoFromModification : jamfpro . FalsePtr () ,
118+ PreventPrefillInfoFromModification : false ,
119119 },
120120 }
121121
0 commit comments