@@ -37,19 +37,19 @@ type ResponsePolicyCreateAndUpdate struct {
3737
3838// ResourcePolicy represents the response structure for a single policy
3939type ResourcePolicy struct {
40- General PolicySubsetGeneral `xml:"general"`
41- Scope * PolicySubsetScope `xml:"scope,omitempty"`
42- SelfService * PolicySubsetSelfService `xml:"self_service,omitempty"`
43- PackageConfiguration * PolicySubsetPackageConfiguration `xml:"package_configuration,omitempty"`
44- Scripts * []PolicySubsetScript `xml:"scripts>script,omitempty"`
45- Printers * PolicySubsetPrinters `xml:"printers,omitempty"`
46- DockItems * PolicySubsetDockItems `xml:"dock_items,omitempty"`
47- AccountMaintenance * PolicySubsetAccountMaintenance `xml:"account_maintenance,omitempty"`
48- Maintenance * PolicySubsetMaintenance `xml:"maintenance,omitempty"`
49- FilesProcesses * PolicySubsetFilesProcesses `xml:"files_processes,omitempty"`
50- UserInteraction * PolicySubsetUserInteraction `xml:"user_interaction,omitempty"`
51- DiskEncryption * PolicySubsetDiskEncryption `xml:"disk_encryption,omitempty"`
52- Reboot * PolicySubsetReboot `xml:"reboot,omitempty"`
40+ General PolicySubsetGeneral `xml:"general"` // Required
41+ Scope PolicySubsetScope `xml:"scope,omitempty"` // Required? Come back to later
42+ SelfService PolicySubsetSelfService `xml:"self_service,omitempty"` // Not required but also not listable
43+ PackageConfiguration PolicySubsetPackageConfiguration `xml:"package_configuration"` // List inside
44+ Scripts []PolicySubsetScript `xml:"scripts>script"` // Done
45+ Printers PolicySubsetPrinters `xml:"printers"` // List Inside
46+ DockItems [] PolicySubsetDockItem `xml:"dock_items>dock_item"` // Done
47+ AccountMaintenance PolicySubsetAccountMaintenance `xml:"account_maintenance,omitempty"` // Come back to
48+ Maintenance PolicySubsetMaintenance `xml:"maintenance"` // Only one
49+ FilesProcesses PolicySubsetFilesProcesses `xml:"files_processes,omitempty"` // Only one
50+ UserInteraction PolicySubsetUserInteraction `xml:"user_interaction,omitempty"` // Only one
51+ DiskEncryption PolicySubsetDiskEncryption `xml:"disk_encryption,omitempty"` // Only one
52+ Reboot PolicySubsetReboot `xml:"reboot,omitempty"` // Only One
5353}
5454
5555// Subsets & Containers
@@ -154,19 +154,19 @@ type PolicySubsetScopeExclusions struct {
154154
155155// PolicySubsetSelfService represents the self service settings of a policy
156156type PolicySubsetSelfService struct {
157- UseForSelfService bool `xml:"use_for_self_service"`
158- SelfServiceDisplayName string `xml:"self_service_display_name"`
159- InstallButtonText string `xml:"install_button_text"`
160- ReinstallButtonText string `xml:"re_install_button_text"`
161- SelfServiceDescription string `xml:"self_service_description"`
162- ForceUsersToViewDescription bool `xml:"force_users_to_view_description"`
163- SelfServiceIcon * SharedResourceSelfServiceIcon `xml:"self_service_icon"`
164- FeatureOnMainPage bool `xml:"feature_on_main_page"`
165- SelfServiceCategories * []PolicySubsetSelfServiceCategory `xml:"self_service_categories>category"`
166- Notification bool `xml:"notification"`
167- NotificationType string `xml:"notification_type"`
168- NotificationSubject string `xml:"notification_subject"`
169- NotificationMessage string `xml:"notification_message"`
157+ UseForSelfService bool `xml:"use_for_self_service"`
158+ SelfServiceDisplayName string `xml:"self_service_display_name"`
159+ InstallButtonText string `xml:"install_button_text"`
160+ ReinstallButtonText string `xml:"re_install_button_text"`
161+ SelfServiceDescription string `xml:"self_service_description"`
162+ ForceUsersToViewDescription bool `xml:"force_users_to_view_description"`
163+ SelfServiceIcon * SharedResourceSelfServiceIcon `xml:"self_service_icon"`
164+ FeatureOnMainPage bool `xml:"feature_on_main_page"`
165+ SelfServiceCategories []PolicySubsetSelfServiceCategory `xml:"self_service_categories>category"`
166+ Notification bool `xml:"notification"`
167+ NotificationType string `xml:"notification_type"`
168+ NotificationSubject string `xml:"notification_subject"`
169+ NotificationMessage string `xml:"notification_message"`
170170}
171171
172172// Package Configuration
@@ -206,9 +206,8 @@ type PolicySubsetScript struct {
206206
207207// PolicySubsetPrinters represents the printers settings of a policy
208208type PolicySubsetPrinters struct {
209- // Size int `xml:"size"`
210- LeaveExistingDefault bool `xml:"leave_existing_default"`
211- Printer * []PolicySubsetPrinter `xml:"printer"`
209+ LeaveExistingDefault bool `xml:"leave_existing_default"`
210+ Printer []PolicySubsetPrinter `xml:"printer"`
212211}
213212
214213type PolicySubsetPrinter struct {
@@ -220,12 +219,6 @@ type PolicySubsetPrinter struct {
220219
221220// Dock Items
222221
223- // PolicySubsetDockItems represents the dock items settings of a policy
224- type PolicySubsetDockItems struct {
225- // Size int `xml:"size"`
226- DockItem * []PolicySubsetDockItem `xml:"dock_item"`
227- }
228-
229222type PolicySubsetDockItem struct {
230223 ID int `xml:"id"`
231224 Name string `xml:"name"`
0 commit comments