ruby-jss 4.1.0 → 4.1.1b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (599) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +17 -0
  3. data/lib/jamf/api/classic/api_objects/ldap_server.rb +6 -1
  4. data/lib/jamf/api/classic/api_objects/patch_policy.rb +9 -4
  5. data/lib/jamf/api/classic/api_objects/patch_title/version.rb +1 -2
  6. data/lib/jamf/api/classic/api_objects/patch_title.rb +26 -15
  7. data/lib/jamf/api/classic/base_classes/api_object.rb +4 -4
  8. data/lib/jamf/api/classic/base_classes/configuration_profile.rb +2 -2
  9. data/lib/jamf/api/classic/base_classes/patch_source.rb +0 -2
  10. data/lib/jamf/api/connection/jamf_pro_api.rb +2 -0
  11. data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_preview_search_results.rb +3 -3
  12. data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_v2_search_results.rb +3 -3
  13. data/lib/jamf/api/jamf_pro/oapi_schemas/account.rb +3 -3
  14. data/lib/jamf/api/jamf_pro/oapi_schemas/account_driven_user_enrollment_session_token_settings.rb +3 -3
  15. data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +3 -3
  16. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences.rb +3 -3
  17. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_search_type.rb +105 -0
  18. data/lib/jamf/api/jamf_pro/oapi_schemas/{order_by.rb → account_preferences_user_interface_display_theme.rb} +15 -20
  19. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +3 -3
  20. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v4.rb +3 -3
  21. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v5.rb +299 -0
  22. data/lib/jamf/api/jamf_pro/oapi_schemas/account_settings_request.rb +3 -3
  23. data/lib/jamf/api/jamf_pro/oapi_schemas/account_settings_response.rb +3 -3
  24. data/lib/jamf/api/jamf_pro/oapi_schemas/{update_apple_tv.rb → activation_code.rb} +16 -18
  25. data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search.rb +3 -3
  26. data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_criteria_choices.rb +3 -3
  27. data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_search_results.rb +3 -3
  28. data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search.rb +3 -3
  29. data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search_search_results.rb +3 -3
  30. data/lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb +3 -3
  31. data/lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb +3 -3
  32. data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_request.rb +3 -3
  33. data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_response.rb +3 -3
  34. data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_search_result.rb +3 -3
  35. data/lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb +3 -3
  36. data/lib/jamf/api/jamf_pro/oapi_schemas/api_role_privileges.rb +3 -3
  37. data/lib/jamf/api/jamf_pro/oapi_schemas/api_role_request.rb +3 -3
  38. data/lib/jamf/api/jamf_pro/oapi_schemas/api_role_result.rb +3 -3
  39. data/lib/jamf/api/jamf_pro/oapi_schemas/app_analytics_setting.rb +4 -4
  40. data/lib/jamf/api/jamf_pro/oapi_schemas/app_config_reinstall_code.rb +3 -3
  41. data/lib/jamf/api/jamf_pro/oapi_schemas/app_path.rb +3 -3
  42. data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field.rb +3 -3
  43. data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field_search_results.rb +3 -3
  44. data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_settings.rb +3 -3
  45. data/lib/jamf/api/jamf_pro/oapi_schemas/application_attributes.rb +4 -4
  46. data/lib/jamf/api/jamf_pro/oapi_schemas/application_configuration.rb +4 -4
  47. data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +3 -3
  48. data/lib/jamf/api/jamf_pro/oapi_schemas/assignment.rb +3 -3
  49. data/lib/jamf/api/jamf_pro/oapi_schemas/attributes.rb +3 -3
  50. data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account.rb +3 -3
  51. data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +3 -3
  52. data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token.rb +3 -5
  53. data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token_v1.rb +3 -3
  54. data/lib/jamf/api/jamf_pro/oapi_schemas/authentication_type.rb +3 -3
  55. data/lib/jamf/api/jamf_pro/oapi_schemas/authorization.rb +3 -3
  56. data/lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb +3 -3
  57. data/lib/jamf/api/jamf_pro/oapi_schemas/available_os_updates.rb +3 -3
  58. data/lib/jamf/api/jamf_pro/oapi_schemas/available_updates.rb +3 -3
  59. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration.rb +3 -3
  60. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_request.rb +3 -3
  61. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_update.rb +3 -3
  62. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_mappings.rb +3 -3
  63. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration.rb +10 -3
  64. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_request.rb +3 -3
  65. data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_update.rb +3 -3
  66. data/lib/jamf/api/jamf_pro/oapi_schemas/branding_image_url.rb +3 -3
  67. data/lib/jamf/api/jamf_pro/oapi_schemas/building.rb +3 -3
  68. data/lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb +3 -3
  69. data/lib/jamf/api/jamf_pro/oapi_schemas/cache_settings.rb +3 -3
  70. data/lib/jamf/api/jamf_pro/oapi_schemas/categories_search_results.rb +3 -3
  71. data/lib/jamf/api/jamf_pro/oapi_schemas/category.rb +3 -3
  72. data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_details.rb +5 -3
  73. data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v2.rb +5 -3
  74. data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_key.rb +3 -3
  75. data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_record.rb +3 -3
  76. data/lib/jamf/api/jamf_pro/oapi_schemas/change_password.rb +94 -0
  77. data/lib/jamf/api/jamf_pro/oapi_schemas/classic_ldap_mappings.rb +3 -3
  78. data/lib/jamf/api/jamf_pro/oapi_schemas/clear_restrictions_password_command.rb +77 -0
  79. data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v3.rb +4 -4
  80. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_distribution_point_upload_capability.rb +88 -0
  81. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common.rb +3 -3
  82. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_request.rb +3 -3
  83. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_response.rb +3 -3
  84. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_pool_statistics.rb +3 -3
  85. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_status.rb +3 -3
  86. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore.rb +3 -3
  87. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore_file.rb +3 -3
  88. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_request.rb +3 -3
  89. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_response.rb +3 -3
  90. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_request.rb +3 -3
  91. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_response.rb +3 -3
  92. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_update.rb +3 -3
  93. data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_response.rb +9 -3
  94. data/lib/jamf/api/jamf_pro/oapi_schemas/compliance_vendor_device_information.rb +3 -3
  95. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +3 -3
  96. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +3 -3
  97. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +3 -3
  98. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +3 -3
  99. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +3 -3
  100. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +3 -3
  101. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +3 -3
  102. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +3 -3
  103. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +3 -3
  104. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +3 -3
  105. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +3 -3
  106. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +3 -3
  107. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +3 -3
  108. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +3 -3
  109. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +3 -3
  110. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +3 -3
  111. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +3 -3
  112. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +3 -3
  113. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +3 -3
  114. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general_update.rb +15 -3
  115. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_group.rb +3 -3
  116. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +3 -3
  117. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware_update.rb +3 -3
  118. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +3 -3
  119. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb +3 -3
  120. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_preferences.rb +15 -3
  121. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_settings.rb +3 -3
  122. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault.rb +3 -3
  123. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault_search_results.rb +3 -3
  124. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_recovery_lock_password_response.rb +3 -3
  125. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_search_results.rb +3 -3
  126. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_update_request.rb +3 -3
  127. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +3 -3
  128. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +3 -3
  129. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_location.rb +3 -3
  130. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +3 -3
  131. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +3 -3
  132. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system_update.rb +3 -3
  133. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_overview.rb +3 -3
  134. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +3 -3
  135. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +3 -3
  136. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +3 -3
  137. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +3 -3
  138. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +3 -3
  139. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v2.rb +3 -3
  140. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v3.rb +3 -3
  141. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v2.rb +3 -3
  142. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v3.rb +3 -3
  143. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +3 -3
  144. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +3 -3
  145. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +3 -3
  146. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +3 -3
  147. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +17 -3
  148. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +3 -3
  149. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +3 -3
  150. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +3 -3
  151. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +3 -3
  152. data/lib/jamf/api/jamf_pro/oapi_schemas/computers_search_results.rb +3 -3
  153. data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_profile.rb +5 -6
  154. data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_search_results.rb +3 -3
  155. data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_candidate_request.rb +3 -3
  156. data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_response.rb +3 -3
  157. data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_status_response.rb +3 -3
  158. data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_update_request.rb +3 -3
  159. data/lib/jamf/api/jamf_pro/oapi_schemas/country.rb +3 -3
  160. data/lib/jamf/api/jamf_pro/oapi_schemas/country_codes.rb +3 -3
  161. data/lib/jamf/api/jamf_pro/oapi_schemas/create_path.rb +3 -3
  162. data/lib/jamf/api/jamf_pro/oapi_schemas/{location.rb → credentials.rb} +39 -35
  163. data/lib/jamf/api/jamf_pro/oapi_schemas/csa_token.rb +10 -7
  164. data/lib/jamf/api/jamf_pro/oapi_schemas/current_account.rb +3 -3
  165. data/lib/jamf/api/jamf_pro/oapi_schemas/current_authorization.rb +3 -3
  166. data/lib/jamf/api/jamf_pro/oapi_schemas/dashboard_api_error.rb +3 -3
  167. data/lib/jamf/api/jamf_pro/oapi_schemas/dashboard_item.rb +3 -3
  168. data/lib/jamf/api/jamf_pro/oapi_schemas/dashboard_setup.rb +3 -3
  169. data/lib/jamf/api/jamf_pro/oapi_schemas/dashboard_setup_task.rb +3 -3
  170. data/lib/jamf/api/jamf_pro/oapi_schemas/data_roaming_setting.rb +4 -4
  171. data/lib/jamf/api/jamf_pro/oapi_schemas/database_password.rb +3 -5
  172. data/lib/jamf/api/jamf_pro/oapi_schemas/day_of_week.rb +3 -3
  173. data/lib/jamf/api/jamf_pro/oapi_schemas/declarative_management_command.rb +5 -5
  174. data/lib/jamf/api/jamf_pro/oapi_schemas/delete_user_command.rb +5 -5
  175. data/lib/jamf/api/jamf_pro/oapi_schemas/department.rb +3 -3
  176. data/lib/jamf/api/jamf_pro/oapi_schemas/departments_search_results.rb +3 -3
  177. data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task.rb +3 -3
  178. data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task_search_results.rb +3 -3
  179. data/lib/jamf/api/jamf_pro/oapi_schemas/{ios_details_v2.rb → details_v2.rb} +8 -7
  180. data/lib/jamf/api/jamf_pro/oapi_schemas/device_communication_settings.rb +3 -3
  181. data/lib/jamf/api/jamf_pro/oapi_schemas/device_compliance_information.rb +3 -3
  182. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb +3 -3
  183. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb +3 -3
  184. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_body.rb +3 -3
  185. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb +3 -3
  186. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb +3 -3
  187. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb +3 -3
  188. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb +3 -3
  189. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage.rb +3 -3
  190. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb +3 -3
  191. data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb +3 -3
  192. data/lib/jamf/api/jamf_pro/oapi_schemas/device_information_command.rb +83 -0
  193. data/lib/jamf/api/jamf_pro/oapi_schemas/diagnostic_submission_setting.rb +4 -4
  194. data/lib/jamf/api/jamf_pro/oapi_schemas/{vpp_admin_account.rb → dock_item.rb} +41 -36
  195. data/lib/jamf/api/jamf_pro/oapi_schemas/{mobile_device_attachment.rb → download_url.rb} +13 -19
  196. data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declaration.rb +111 -0
  197. data/lib/jamf/api/jamf_pro/oapi_schemas/{recipients.rb → dss_declarations.rb} +12 -12
  198. data/lib/jamf/api/jamf_pro/oapi_schemas/ebook.rb +3 -3
  199. data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_exclusions.rb +3 -3
  200. data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_limitations.rb +3 -3
  201. data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_scope.rb +3 -3
  202. data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_search_results.rb +3 -3
  203. data/lib/jamf/api/jamf_pro/oapi_schemas/enable_lost_mode_command.rb +5 -5
  204. data/lib/jamf/api/jamf_pro/oapi_schemas/engage.rb +3 -3
  205. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_preview.rb +3 -3
  206. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_v2.rb +3 -3
  207. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization.rb +3 -3
  208. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_branding_settings.rb +3 -3
  209. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependencies.rb +5 -3
  210. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependency.rb +3 -3
  211. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_ldap_group_access.rb +3 -3
  212. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel.rb +3 -3
  213. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_ldap_auth.rb +3 -3
  214. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_list.rb +3 -3
  215. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_sso_auth.rb +3 -3
  216. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_text.rb +3 -3
  217. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results.rb +3 -3
  218. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results_v2.rb +3 -3
  219. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_v2.rb +3 -3
  220. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +3 -3
  221. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method_prestage.rb +3 -3
  222. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_process_text_object.rb +3 -3
  223. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v2.rb +3 -3
  224. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v3.rb +9 -3
  225. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v4.rb +264 -0
  226. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_sso_config.rb +5 -4
  227. data/lib/jamf/api/jamf_pro/oapi_schemas/erase_device_command.rb +5 -5
  228. data/lib/jamf/api/jamf_pro/oapi_schemas/export_field.rb +3 -3
  229. data/lib/jamf/api/jamf_pro/oapi_schemas/export_parameters.rb +11 -3
  230. data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute_v2.rb +3 -3
  231. data/lib/jamf/api/jamf_pro/oapi_schemas/external_recipient.rb +3 -3
  232. data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment.rb +3 -3
  233. data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_delete.rb +3 -3
  234. data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_v2.rb +3 -3
  235. data/lib/jamf/api/jamf_pro/oapi_schemas/file_data.rb +117 -0
  236. data/lib/jamf/api/jamf_pro/oapi_schemas/file_transfer_item.rb +100 -0
  237. data/lib/jamf/api/jamf_pro/oapi_schemas/font_path.rb +3 -3
  238. data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v2.rb +3 -3
  239. data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v3.rb +3 -3
  240. data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization.rb +3 -3
  241. data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel.rb +3 -3
  242. data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_ldap_auth.rb +3 -3
  243. data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_sso_auth.rb +3 -3
  244. data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_text.rb +3 -3
  245. data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage.rb +3 -3
  246. data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb +3 -3
  247. data/lib/jamf/api/jamf_pro/oapi_schemas/group_mappings.rb +3 -3
  248. data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +3 -3
  249. data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search.rb +3 -3
  250. data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_request.rb +3 -3
  251. data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_response.rb +3 -3
  252. data/lib/jamf/api/jamf_pro/oapi_schemas/{initialize.rb → gsx_connection.rb} +37 -43
  253. data/lib/jamf/api/jamf_pro/oapi_schemas/gsx_connection_update.rb +114 -0
  254. data/lib/jamf/api/jamf_pro/oapi_schemas/gsx_keystore.rb +117 -0
  255. data/lib/jamf/api/jamf_pro/oapi_schemas/{recipient.rb → gsx_test_response.rb} +20 -18
  256. data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results.rb +11 -3
  257. data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb +7 -5
  258. data/lib/jamf/api/jamf_pro/oapi_schemas/href_response.rb +24 -5
  259. data/lib/jamf/api/jamf_pro/oapi_schemas/icon_response.rb +3 -3
  260. data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name_v2.rb +4 -4
  261. data/lib/jamf/api/jamf_pro/oapi_schemas/ids.rb +5 -3
  262. data/lib/jamf/api/jamf_pro/oapi_schemas/initialize_v1.rb +3 -3
  263. data/lib/jamf/api/jamf_pro/oapi_schemas/install_package.rb +3 -3
  264. data/lib/jamf/api/jamf_pro/oapi_schemas/internal_recipient.rb +3 -3
  265. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_information.rb +3 -3
  266. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_list_mobile_device.rb +3 -3
  267. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_list_mobile_device_search_results.rb +3 -3
  268. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_error.rb +3 -3
  269. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error.rb +3 -3
  270. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error_cause.rb +3 -3
  271. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_success.rb +3 -3
  272. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +3 -3
  273. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column.rb +3 -3
  274. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column_result.rb +3 -3
  275. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_invalid_csv_response.rb +3 -3
  276. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record.rb +3 -3
  277. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results.rb +3 -3
  278. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb +3 -3
  279. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb +3 -3
  280. data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_configuration.rb +3 -3
  281. data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_search_results.rb +3 -3
  282. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_application_response.rb +3 -3
  283. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_package_response.rb +3 -3
  284. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information.rb +3 -3
  285. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information_v2.rb +3 -3
  286. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_server_url.rb +3 -10
  287. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_version.rb +3 -3
  288. data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_protect_plan.rb +3 -3
  289. data/lib/jamf/api/jamf_pro/oapi_schemas/jcds_properties.rb +94 -0
  290. data/lib/jamf/api/jamf_pro/oapi_schemas/language_code.rb +3 -3
  291. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_account_management_history.rb +123 -0
  292. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_account_management_history_response.rb +90 -0
  293. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_audit.rb +3 -3
  294. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_audit_v2.rb +3 -3
  295. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_history.rb +4 -3
  296. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_history_response.rb +5 -3
  297. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_and_audits.rb +3 -3
  298. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_and_audits_v2.rb +3 -3
  299. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_audits_results.rb +3 -3
  300. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_audits_results_v2.rb +5 -3
  301. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_response.rb +3 -3
  302. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_password_response_v2.rb +5 -3
  303. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_pending_rotation.rb +3 -3
  304. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_pending_rotation_response.rb +3 -3
  305. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_request.rb +3 -3
  306. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_request_v2.rb +3 -3
  307. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_response.rb +3 -3
  308. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_response_v2.rb +3 -3
  309. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user.rb +3 -3
  310. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password.rb +3 -3
  311. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_request.rb +3 -3
  312. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_request_v2.rb +3 -3
  313. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_response.rb +3 -3
  314. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_response_v2.rb +3 -3
  315. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_v2.rb +3 -3
  316. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_results.rb +3 -3
  317. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_results_v2.rb +3 -3
  318. data/lib/jamf/api/jamf_pro/oapi_schemas/laps_user_v2.rb +3 -3
  319. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_request.rb +3 -3
  320. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_response.rb +3 -3
  321. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_update.rb +3 -3
  322. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group.rb +3 -3
  323. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group_search_results.rb +3 -3
  324. data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_server.rb +3 -3
  325. data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile.rb +3 -3
  326. data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile_search_results.rb +3 -3
  327. data/lib/jamf/api/jamf_pro/oapi_schemas/locale.rb +3 -3
  328. data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +3 -3
  329. data/lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb +3 -3
  330. data/lib/jamf/api/jamf_pro/oapi_schemas/location_v2.rb +3 -3
  331. data/lib/jamf/api/jamf_pro/oapi_schemas/log_out_user_command.rb +77 -0
  332. data/lib/jamf/api/jamf_pro/oapi_schemas/login_content.rb +107 -0
  333. data/lib/jamf/api/jamf_pro/oapi_schemas/login_content_put.rb +101 -0
  334. data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_configuration.rb +3 -3
  335. data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_search_results.rb +3 -3
  336. data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb +3 -3
  337. data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb +3 -3
  338. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan.rb +11 -3
  339. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_group_post.rb +3 -3
  340. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post.rb +3 -3
  341. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post_response.rb +3 -3
  342. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle.rb +10 -3
  343. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status.rb +169 -0
  344. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status_wrapper.rb +91 -0
  345. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plans.rb +3 -3
  346. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_status.rb +3 -3
  347. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_statuses.rb +3 -3
  348. data/lib/jamf/api/jamf_pro/oapi_schemas/markdown.rb +3 -3
  349. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_client_type.rb +3 -3
  350. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command.rb +3 -3
  351. data/lib/jamf/api/jamf_pro/oapi_schemas/{update_ios.rb → mdm_command_base.rb} +13 -12
  352. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client.rb +3 -3
  353. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client_request.rb +3 -3
  354. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_request.rb +7 -5
  355. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_results.rb +3 -3
  356. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_state.rb +3 -3
  357. data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_type.rb +11 -87
  358. data/lib/jamf/api/jamf_pro/oapi_schemas/membership_mappings.rb +3 -3
  359. data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_request.rb +3 -3
  360. data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_response.rb +3 -3
  361. data/lib/jamf/api/jamf_pro/oapi_schemas/memcached_endpoints.rb +3 -3
  362. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application.rb +5 -5
  363. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application_inventory_detail.rb +3 -3
  364. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment_v2.rb +5 -4
  365. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate.rb +3 -3
  366. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v2.rb +5 -4
  367. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_get_v2.rb +3 -3
  368. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_v2.rb +24 -8
  369. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook.rb +4 -5
  370. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook_inventory_detail.rb +3 -3
  371. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute.rb +3 -3
  372. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute_results.rb +3 -3
  373. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_general.rb +5 -4
  374. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_group.rb +3 -3
  375. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_hardware.rb +3 -3
  376. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_inventory.rb +4 -19
  377. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_inventory_search_results.rb +5 -3
  378. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ios_general.rb +3 -3
  379. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ios_inventory.rb +16 -3
  380. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_lost_mode_location.rb +3 -3
  381. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_network.rb +3 -3
  382. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage.rb +3 -3
  383. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name.rb +3 -3
  384. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +3 -3
  385. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names.rb +3 -3
  386. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +3 -3
  387. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results.rb +3 -3
  388. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb +3 -3
  389. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb +3 -3
  390. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_profile.rb +3 -3
  391. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_provisioning_profiles.rb +5 -5
  392. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_purchasing.rb +4 -4
  393. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_response.rb +74 -0
  394. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results_v2.rb +3 -3
  395. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_section.rb +3 -3
  396. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_security.rb +3 -3
  397. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_service_subscriptions.rb +4 -4
  398. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_shared_user.rb +3 -3
  399. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_tv_os_general.rb +3 -3
  400. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_tv_os_inventory.rb +16 -3
  401. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_user_and_location.rb +3 -3
  402. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_user_profile.rb +4 -4
  403. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_v2.rb +5 -3
  404. data/lib/jamf/api/jamf_pro/oapi_schemas/{security.rb → mobile_device_watch_os_general.rb} +24 -42
  405. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_watch_os_inventory.rb +94 -0
  406. data/lib/jamf/api/jamf_pro/oapi_schemas/network_v2.rb +4 -4
  407. data/lib/jamf/api/jamf_pro/oapi_schemas/notification.rb +3 -3
  408. data/lib/jamf/api/jamf_pro/oapi_schemas/notification_type.rb +9 -4
  409. data/lib/jamf/api/jamf_pro/oapi_schemas/notification_v1.rb +3 -3
  410. data/lib/jamf/api/jamf_pro/oapi_schemas/o_auth_client_credentials.rb +3 -3
  411. data/lib/jamf/api/jamf_pro/oapi_schemas/object_history.rb +5 -3
  412. data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb +15 -5
  413. data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb +3 -3
  414. data/lib/jamf/api/jamf_pro/oapi_schemas/onboarding_configuration.rb +101 -0
  415. data/lib/jamf/api/jamf_pro/oapi_schemas/{extension_attribute.rb → onboarding_eligible_item.rb} +19 -30
  416. data/lib/jamf/api/jamf_pro/oapi_schemas/onboarding_eligible_items_search_result.rb +94 -0
  417. data/lib/jamf/api/jamf_pro/oapi_schemas/{mobile_device.rb → onboarding_item.rb} +47 -60
  418. data/lib/jamf/api/jamf_pro/oapi_schemas/package.rb +326 -0
  419. data/lib/jamf/api/jamf_pro/oapi_schemas/package_manifest.rb +3 -3
  420. data/lib/jamf/api/jamf_pro/oapi_schemas/{id_and_name.rb → packages_search_results.rb} +19 -21
  421. data/lib/jamf/api/jamf_pro/oapi_schemas/parent_app.rb +3 -3
  422. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policies.rb +3 -3
  423. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_detail.rb +3 -3
  424. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_details.rb +3 -3
  425. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_list_view.rb +3 -3
  426. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_detail.rb +3 -3
  427. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_detail_action.rb +3 -3
  428. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_eligible_retry_count.rb +3 -3
  429. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_retry.rb +3 -3
  430. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_v2.rb +3 -3
  431. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_logs.rb +3 -3
  432. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_v2_on_dashboard.rb +3 -3
  433. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration.rb +3 -3
  434. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_base.rb +3 -3
  435. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_definition_kill_app.rb +3 -3
  436. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_dependencies.rb +3 -3
  437. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_dependency.rb +3 -3
  438. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_extension_attributes.rb +3 -3
  439. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_patch.rb +3 -3
  440. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_definition.rb +3 -3
  441. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_definitions.rb +3 -3
  442. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_extension_attributes.rb +3 -3
  443. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_packages.rb +3 -3
  444. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_report.rb +3 -3
  445. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_report_search_result.rb +3 -3
  446. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_summary.rb +3 -3
  447. data/lib/jamf/api/jamf_pro/oapi_schemas/patch_summary_version.rb +3 -3
  448. data/lib/jamf/api/jamf_pro/oapi_schemas/personal_hotspot_setting.rb +4 -4
  449. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_configuration_post.rb +3 -3
  450. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device.rb +3 -3
  451. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_post.rb +3 -3
  452. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_response.rb +3 -3
  453. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_group_post.rb +3 -3
  454. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +3 -3
  455. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_status.rb +3 -3
  456. data/lib/jamf/api/jamf_pro/oapi_schemas/plugin_path.rb +3 -3
  457. data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties.rb +3 -3
  458. data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties_v1.rb +3 -3
  459. data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v2.rb +3 -3
  460. data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v3.rb +3 -3
  461. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependencies.rb +3 -3
  462. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependency.rb +3 -3
  463. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment.rb +3 -3
  464. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment_v2.rb +3 -3
  465. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb +3 -3
  466. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +3 -3
  467. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope.rb +3 -3
  468. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment.rb +3 -3
  469. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +3 -3
  470. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response.rb +3 -3
  471. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb +3 -3
  472. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_update.rb +3 -3
  473. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb +3 -3
  474. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status.rb +3 -3
  475. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status_v2.rb +3 -3
  476. data/lib/jamf/api/jamf_pro/oapi_schemas/process_texts_search_results.rb +3 -3
  477. data/lib/jamf/api/jamf_pro/oapi_schemas/protect_registration_request.rb +3 -3
  478. data/lib/jamf/api/jamf_pro/oapi_schemas/protect_settings_response.rb +3 -3
  479. data/lib/jamf/api/jamf_pro/oapi_schemas/protect_updatable_settings_request.rb +3 -3
  480. data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing_v2.rb +4 -4
  481. data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v2.rb +3 -3
  482. data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v3.rb +3 -3
  483. data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage.rb +3 -3
  484. data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb +3 -3
  485. data/lib/jamf/api/jamf_pro/oapi_schemas/recalculation_results.rb +3 -3
  486. data/lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb +3 -3
  487. data/lib/jamf/api/jamf_pro/oapi_schemas/reenrollment.rb +3 -3
  488. data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_response.rb +3 -3
  489. data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_search_results.rb +3 -3
  490. data/lib/jamf/api/jamf_pro/oapi_schemas/renew_mdm_profile_response.rb +3 -3
  491. data/lib/jamf/api/jamf_pro/oapi_schemas/restart_device_command.rb +5 -5
  492. data/lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration.rb +100 -0
  493. data/lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration_request.rb +92 -0
  494. data/lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration_search_results.rb +91 -0
  495. data/lib/jamf/api/jamf_pro/oapi_schemas/safelisted_app.rb +3 -3
  496. data/lib/jamf/api/jamf_pro/oapi_schemas/{mobile_device_search_results.rb → scheduler_job.rb} +12 -13
  497. data/lib/jamf/api/jamf_pro/oapi_schemas/{admin_account.rb → scheduler_jobs.rb} +14 -13
  498. data/lib/jamf/api/jamf_pro/oapi_schemas/scheduler_summary.rb +100 -0
  499. data/lib/jamf/api/jamf_pro/oapi_schemas/scheduler_trigger.rb +95 -0
  500. data/lib/jamf/api/jamf_pro/oapi_schemas/script.rb +3 -3
  501. data/lib/jamf/api/jamf_pro/oapi_schemas/scripts_search_results.rb +3 -3
  502. data/lib/jamf/api/jamf_pro/oapi_schemas/security_v2.rb +5 -4
  503. data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_install_settings.rb +3 -3
  504. data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_interaction_settings.rb +3 -3
  505. data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_login_settings.rb +3 -3
  506. data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_settings.rb +3 -3
  507. data/lib/jamf/api/jamf_pro/oapi_schemas/session.rb +3 -3
  508. data/lib/jamf/api/jamf_pro/oapi_schemas/session_candidate_request.rb +3 -3
  509. data/lib/jamf/api/jamf_pro/oapi_schemas/session_details.rb +3 -3
  510. data/lib/jamf/api/jamf_pro/oapi_schemas/session_details_search_results.rb +3 -3
  511. data/lib/jamf/api/jamf_pro/oapi_schemas/{purchasing.rb → session_history_item.rb} +48 -56
  512. data/lib/jamf/api/jamf_pro/oapi_schemas/session_history_item_details.rb +82 -0
  513. data/lib/jamf/api/jamf_pro/oapi_schemas/{apple_tv_details.rb → session_history_item_with_details.rb} +60 -40
  514. data/lib/jamf/api/jamf_pro/oapi_schemas/session_history_search_results.rb +91 -0
  515. data/lib/jamf/api/jamf_pro/oapi_schemas/session_status.rb +3 -3
  516. data/lib/jamf/api/jamf_pro/oapi_schemas/set_auto_admin_password_command.rb +5 -5
  517. data/lib/jamf/api/jamf_pro/oapi_schemas/set_recovery_lock_command.rb +5 -5
  518. data/lib/jamf/api/jamf_pro/oapi_schemas/settings_command.rb +5 -13
  519. data/lib/jamf/api/jamf_pro/oapi_schemas/shared_device_compliance_feature_toggle.rb +83 -0
  520. data/lib/jamf/api/jamf_pro/oapi_schemas/shared_device_configuration.rb +4 -4
  521. data/lib/jamf/api/jamf_pro/oapi_schemas/shut_down_device_command.rb +77 -0
  522. data/lib/jamf/api/jamf_pro/oapi_schemas/signature.rb +3 -3
  523. data/lib/jamf/api/jamf_pro/oapi_schemas/site.rb +3 -4
  524. data/lib/jamf/api/jamf_pro/oapi_schemas/site_object.rb +150 -0
  525. data/lib/jamf/api/jamf_pro/oapi_schemas/smart_search_criterion.rb +3 -3
  526. data/lib/jamf/api/jamf_pro/oapi_schemas/{jamf_nation_credentials.rb → smtp_basic_credentials.rb} +15 -15
  527. data/lib/jamf/api/jamf_pro/oapi_schemas/smtp_connection_settings.rb +113 -0
  528. data/lib/jamf/api/jamf_pro/oapi_schemas/smtp_graph_api_credentials.rb +98 -0
  529. data/lib/jamf/api/jamf_pro/oapi_schemas/{mobile_device_certificate_v1.rb → smtp_sender_settings.rb} +14 -13
  530. data/lib/jamf/api/jamf_pro/oapi_schemas/{mobile_device_search_params.rb → smtp_server.rb} +68 -54
  531. data/lib/jamf/api/jamf_pro/oapi_schemas/smtp_server_test.rb +83 -0
  532. data/lib/jamf/api/jamf_pro/oapi_schemas/{vpp_token_subscription.rb → smtp_server_v2.rb} +48 -44
  533. data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_configuration_on_dashboard.rb +3 -3
  534. data/lib/jamf/api/jamf_pro/oapi_schemas/software_update_settings.rb +4 -4
  535. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_failover_data.rb +3 -3
  536. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore.rb +3 -3
  537. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_cert_parse_response.rb +3 -3
  538. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_details.rb +3 -3
  539. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_parse.rb +3 -3
  540. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response.rb +3 -3
  541. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response_with_details.rb +3 -3
  542. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_with_details.rb +3 -3
  543. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_metadata_url.rb +5 -3
  544. data/lib/jamf/api/jamf_pro/oapi_schemas/{sso_settings.rb → sso_settings_v1.rb} +6 -6
  545. data/lib/jamf/api/jamf_pro/oapi_schemas/sso_settings_v2.rb +253 -0
  546. data/lib/jamf/api/jamf_pro/oapi_schemas/startup_status.rb +3 -3
  547. data/lib/jamf/api/jamf_pro/oapi_schemas/static_group.rb +3 -3
  548. data/lib/jamf/api/jamf_pro/oapi_schemas/static_group_assignment.rb +3 -3
  549. data/lib/jamf/api/jamf_pro/oapi_schemas/static_group_search_results.rb +3 -3
  550. data/lib/jamf/api/jamf_pro/oapi_schemas/static_group_summary.rb +3 -3
  551. data/lib/jamf/api/jamf_pro/oapi_schemas/static_user_group.rb +3 -3
  552. data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity.rb +3 -3
  553. data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_certificate_upload.rb +3 -3
  554. data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_create.rb +3 -3
  555. data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_search_results.rb +3 -3
  556. data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_update.rb +3 -3
  557. data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_features.rb +3 -3
  558. data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_request.rb +3 -3
  559. data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_response.rb +3 -3
  560. data/lib/jamf/api/jamf_pro/oapi_schemas/time_frame.rb +3 -3
  561. data/lib/jamf/api/jamf_pro/oapi_schemas/time_zone.rb +3 -3
  562. data/lib/jamf/api/jamf_pro/oapi_schemas/tv_os_details.rb +3 -3
  563. data/lib/jamf/api/jamf_pro/oapi_schemas/udids.rb +3 -3
  564. data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios_v2.rb +3 -3
  565. data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device_v2.rb +4 -4
  566. data/lib/jamf/api/jamf_pro/oapi_schemas/update_tv_os.rb +3 -3
  567. data/lib/jamf/api/jamf_pro/oapi_schemas/user_mappings.rb +3 -3
  568. data/lib/jamf/api/jamf_pro/oapi_schemas/user_preferences_settings.rb +3 -3
  569. data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_attributes.rb +3 -3
  570. data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search.rb +3 -3
  571. data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_request.rb +3 -3
  572. data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_response.rb +3 -3
  573. data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +3 -3
  574. data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_ca_record.rb +3 -3
  575. data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record.rb +3 -3
  576. data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record_search_results.rb +3 -3
  577. data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_service_status.rb +3 -3
  578. data/lib/jamf/api/jamf_pro/oapi_schemas/verbose_package_deployment_response.rb +3 -3
  579. data/lib/jamf/api/jamf_pro/oapi_schemas/voice_roaming_setting.rb +4 -4
  580. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content.rb +3 -3
  581. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content_list.rb +3 -3
  582. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location.rb +3 -3
  583. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_list_view.rb +9 -3
  584. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_patch.rb +3 -3
  585. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_post.rb +3 -3
  586. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_locations.rb +3 -3
  587. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription.rb +3 -3
  588. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription_base.rb +3 -3
  589. data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscriptions.rb +3 -3
  590. data/lib/jamf/api/jamf_pro/oapi_schemas/{ios_details.rb → watch_os_details_v2.rb} +27 -81
  591. data/lib/jamf/api/jamf_pro/oapi_schemas/web_link.rb +3 -3
  592. data/lib/jamf/utility.rb +16 -6
  593. data/lib/jamf/version.rb +1 -1
  594. metadata +67 -33
  595. data/lib/jamf/api/jamf_pro/oapi_schemas/android_details.rb +0 -162
  596. data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v2.rb +0 -164
  597. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details.rb +0 -249
  598. data/lib/jamf/api/jamf_pro/oapi_schemas/network.rb +0 -171
  599. data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device.rb +0 -122
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 891d497b1459d24035000f157551cd1d87cd5028d4229f3c4702173229c06138
4
- data.tar.gz: 6b6cb140ab919684ffcdb51c09102b3bbe0cce9ae0fed225fc53f789dd057332
3
+ metadata.gz: 79bd6a4bdae5e6c446652e6c15f06922532fa66e978e0238e0bb92f018c728a6
4
+ data.tar.gz: ae766e278b152d9c999340d77d005c4674e5f13f72e9cd8bde28d4ffe1dfdad4
5
5
  SHA512:
6
- metadata.gz: 99ebd2400e27522e6baffda8d0f1239a70e5dad3fbb240deb6078341fe012661d892154f866c5401495b0d9549faf6d852b5c7d8c45fcbbaf044ecfb6ca708c9
7
- data.tar.gz: 06e95ad34b057d7d905268c234943647777f30a59929c8a48d0db7299240eea82643c54f11b9fc8221c90e357a753b3e50af4cb6c15c6d4e435fd16809560830
6
+ metadata.gz: 752c98d446489c0f91b63536c31c49fb9c672fdb07c905a8c4ebe8bd30ffe2eae3edbfe502c419c840314082e82fe02ecd91afb70552a62c943d78179717fd58
7
+ data.tar.gz: 7eb7ecb074e94b4588b423fed8ab15f80c14cc091005e7016622738a1b4c133adf5c0ea110c173156efd63d061f4c7d27929d6d5eb12980c03c8201995d01aec
data/CHANGES.md CHANGED
@@ -14,6 +14,23 @@ __Please update all installations of ruby-jss to at least v1.6.0.__
14
14
 
15
15
  Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue and providing examples of how it could be exploited.
16
16
 
17
+ --------
18
+ ## \[4.1.1] In testing
19
+
20
+ ### Changed
21
+ - `expand_min_os` (used when specifying min. OS for Packages and Scripts) now expands up to macOS v30, so we have 15 years to hopefully not need to use it anymore.
22
+
23
+ - Auto-generated base classes from OAPI3 schema updated to Jamf Pro 11.6.1. See NOTE below.
24
+
25
+ ### Fixed
26
+
27
+ - `LdapServer.check_membership` no longer fails or gives invalid responses when you provide a connection object via `cnx:`
28
+ - A bug in Jamf::PatchTitle which prevented use of non-default connection objects.
29
+ - Some ObjectModel classes from the OAPI3 schema were not getting generated, causing problems when using Zeitwerk's `eager_load`. Thanks to @j-o-lantern0422 and @jcruce13 for reporting the issue, and @nick-f for providing a fix!
30
+
31
+
32
+ NOTE: Given the nature of this issue, along with known inconsistencies in the data structures and naming of items in the OAPI3 schema, plus the fact that we're starting to migrate to the JP API for more complex object handling (e.g. `Jamf::MobileDevice`) we're probably going to stop using the auto-generated `Jamf::OAPISchemas` classes - at least in the way we have been using them. Most likely we'll still generate them, but then hand-edit them to create more robust, bespoke classes for the items we implement (as we did in the Classic API), and only include those required for the objects implemented. Feedback is welcome, via GitHub or The [#ruby-jss channel in Macadmins Slack](https://macadmins.slack.com/archives/C03C7F563MK)
33
+
17
34
  --------
18
35
  ## \[4.1.0] 2024-04-06
19
36
 
@@ -97,6 +97,7 @@ module Jamf
97
97
 
98
98
  all_objects(:refresh, cnx: cnx).each do |ldap|
99
99
  next if ldap.find_user(user, :exact).empty?
100
+
100
101
  return ldap.id
101
102
  end
102
103
  nil
@@ -130,6 +131,7 @@ module Jamf
130
131
 
131
132
  all_objects(:refresh, cnx: cnx).each do |ldap|
132
133
  next if ldap.find_group(group, :exact).empty?
134
+
133
135
  return ldap.id
134
136
  end
135
137
  nil
@@ -167,7 +169,7 @@ module Jamf
167
169
  def self.check_membership(ldap_server, user, group, api: nil, cnx: Jamf.cnx)
168
170
  cnx = api if api
169
171
 
170
- ldap_server_id = valid_id ldap_server
172
+ ldap_server_id = valid_id ldap_server, cnx: cnx
171
173
  raise Jamf::NoSuchItemError, "No LdapServer matching #{ldap_server}" unless ldap_server_id
172
174
 
173
175
  rsrc = "#{RSRC_BASE}/id/#{ldap_server_id}/group/#{CGI.escape group.to_s}/user/#{CGI.escape user.to_s}"
@@ -313,6 +315,7 @@ module Jamf
313
315
  #
314
316
  def find_user(user, exact = false)
315
317
  raise Jamf::NoSuchItemError, 'LdapServer not yet saved in the JSS' unless @in_jss
318
+
316
319
  raw = cnx.c_get("#{RSRC_BASE}/id/#{@id}/user/#{CGI.escape user.to_s}")[:ldap_users]
317
320
  exact ? raw.select { |u| u[:username] == user } : raw
318
321
  end
@@ -325,6 +328,7 @@ module Jamf
325
328
  #
326
329
  def find_group(group, exact = false)
327
330
  raise Jamf::NoSuchItemError, 'LdapServer not yet saved in the JSS' unless @in_jss
331
+
328
332
  raw = cnx.c_get("#{RSRC_BASE}/id/#{@id}/group/#{CGI.escape group.to_s}")[:ldap_groups]
329
333
  exact ? raw.select { |u| u[:groupname] == group } : raw
330
334
  end
@@ -337,6 +341,7 @@ module Jamf
337
341
  #
338
342
  def check_membership(user, group)
339
343
  raise Jamf::NoSuchItemError, 'LdapServer not yet saved in the JSS' unless @in_jss
344
+
340
345
  self.class.check_membership @id, user, group, cnx: @cnx
341
346
  end
342
347
 
@@ -262,9 +262,12 @@ module Jamf
262
262
  # @see APIObject#fetch
263
263
  #
264
264
  def self.fetch(searchterm = nil, **args)
265
+ cnx = args[:cnx]
266
+ cnx ||= Jamf.cnx
267
+
265
268
  name_search = args.delete :name
266
269
  if name_search
267
- id = valid_id name_search
270
+ id = valid_id name_search, cnx: cnx
268
271
  raise Jamf::NoSuchItemError, "No #{self::RSRC_OBJECT_KEY} found #{err_detail}" unless id
269
272
 
270
273
  args[:id] = id
@@ -369,6 +372,8 @@ module Jamf
369
372
  unless in_jss
370
373
  @init_data[:general] ||= {}
371
374
  @init_data[:software_title_configuration_id] = validate_patch_title @init_data[:patch_title]
375
+ # need this set here for the validations below
376
+ @patch_title_id = @init_data[:software_title_configuration_id]
372
377
 
373
378
  # were we given target_version in the make params?
374
379
  validate_target_version @init_data[:target_version] if @init_data[:target_version]
@@ -424,7 +429,7 @@ module Jamf
424
429
  #
425
430
  def patch_title(refresh = false)
426
431
  @patch_title = nil if refresh
427
- @patch_title ||= Jamf::PatchTitle.fetch id: patch_title_id
432
+ @patch_title ||= Jamf::PatchTitle.fetch id: patch_title_id, cnx: @cnx
428
433
  end
429
434
 
430
435
  # @return [String] the name of the PatchTitle for this patch policy
@@ -573,7 +578,7 @@ module Jamf
573
578
  end
574
579
  raise Jamf::MissingDataError, ':patch_title is required' unless a_title
575
580
 
576
- title_id = Jamf::PatchTitle.valid_id a_title
581
+ title_id = Jamf::PatchTitle.valid_id a_title, cnx: @cnx
577
582
  return title_id if title_id
578
583
 
579
584
  raise Jamf::NoSuchItemError, "No Patch Title matches '#{a_title}'"
@@ -605,7 +610,7 @@ module Jamf
605
610
  # Update our local version data after the target_version is changed
606
611
  #
607
612
  def refetch_version_info
608
- tmp = self.class.fetch id: id
613
+ tmp = self.class.fetch id: id, cnx: @cnx
609
614
  @release_date = tmp.release_date
610
615
  @incremental_update = tmp.incremental_update
611
616
  @reboot = tmp.reboot
@@ -26,7 +26,6 @@
26
26
  ###
27
27
  module Jamf
28
28
 
29
- #
30
29
  class PatchTitle < Jamf::APIObject
31
30
 
32
31
  # A Patch Software Title Version in the JSS.
@@ -148,7 +147,7 @@ module Jamf
148
147
  return if @package_id == pkgid
149
148
 
150
149
  @package_id = pkgid
151
- @package_name = pkgid == :none ? nil : Jamf::Package.map_all_ids_to(:name)[pkgid]
150
+ @package_name = pkgid == :none ? nil : Jamf::Package.map_all_ids_to(:name, cnx: @title.cnx)[pkgid]
152
151
  @title.changed_pkg_for_version version
153
152
  end
154
153
 
@@ -313,6 +313,8 @@ module Jamf
313
313
  # so all other lookup values have to be converted to ID before
314
314
  # the call to super
315
315
  #
316
+ # NOTE: The only truely unique identifiers are id and source_name_id
317
+ #
316
318
  def self.fetch(identifier = nil, **params)
317
319
  # default connection if unspecified
318
320
  cnx = params.delete :cnx
@@ -322,22 +324,34 @@ module Jamf
322
324
  # source: and source_id: are considered the same, source_id: wins
323
325
  params[:source_id] ||= params[:source]
324
326
 
325
- # if given a source name, this converts it to an id
326
- params[:source_id] = Jamf::PatchInternalSource.valid_id params[:source_id]
327
- params[:source_id] ||= Jamf::PatchExternalSource.valid_id params[:source_id]
328
-
329
- # build a possible source_name_id
330
- params[:source_name_id] ||= "#{params[:source_id]}-#{params[:name_id]}"
327
+ # if given a source name in params[:source_id] this converts it to an id
328
+ if params[:source_id]
329
+ params[:source_id] = Jamf::PatchInternalSource.valid_id(params[:source_id], cnx: cnx)
330
+ params[:source_id] ||= Jamf::PatchExternalSource.valid_id(params[:source_id], cnx: cnx)
331
+ end
331
332
 
332
333
  id =
333
334
  if identifier
334
- valid_id identifier
335
+ valid_id identifier, cnx: cnx
336
+
335
337
  elsif params[:id]
336
- all_ids.include?(params[:id]) ? params[:id] : nil
338
+ all_ids(cnx: cnx).include?(params[:id]) ? params[:id] : nil
339
+
337
340
  elsif params[:source_name_id]
338
- map_all_ids_to(:source_name_id).invert[params[:source_name_id]]
341
+ # TODO: make 'map_all' work with :source_name_id
342
+ # map_all(:source_name_id, to: :id, cnx: cnx)[params[:source_name_id]]
343
+ map_all(:id, to: :source_name_id, cnx: cnx).invert[params[:source_name_id]]
344
+
345
+ # WARNING: name_id may not be unique
346
+ elsif params[:name_id]
347
+ # TODO: make 'map_all' work with :source_name_id
348
+ # map_all(:source_name_id, to: :id, cnx: cnx)[params[:source_name_id]]
349
+ map_all(:id, to: :name_id, cnx: cnx).invert[params[:name_id]]
350
+
351
+ # WARNING: name_id may not be unique
339
352
  elsif params[:name]
340
- map_all_ids_to(:name).invert[params[:name]]
353
+ # map_all_ids_to(:name, cnx: cnx).invert[params[:name]]
354
+ map_all(:name, to: :id, cnx: cnx)[params[:name]]
341
355
  end
342
356
 
343
357
  raise Jamf::NoSuchItemError, "No matching #{name} found" unless id
@@ -392,14 +406,11 @@ module Jamf
392
406
 
393
407
  raise Jamf::MissingDataError, 'source: and name_id: must be provided' unless @init_data[:name_id] && @init_data[:source_id]
394
408
 
395
- @source_id = Jamf::PatchSource.valid_id(@init_data[:source_id])
396
-
409
+ @source_id = Jamf::PatchSource.valid_id(@init_data[:source_id], cnx: @cnx)
397
410
  raise Jamf::NoSuchItemError, "No Patch Sources match '#{@init_data[:source]}'" unless source_id
398
411
 
399
412
  @name_id = @init_data[:name_id]
400
-
401
- valid_name_id = Jamf::PatchSource.available_name_ids(@source_id).include? @name_id
402
-
413
+ valid_name_id = Jamf::PatchSource.available_name_ids(@source_id, cnx: @cnx).include? @name_id
403
414
  raise Jamf::NoSuchItemError, "source #{@init_data[:source]} doesn't offer name_id '#{@init_data[:name_id]}'" unless valid_name_id
404
415
  end
405
416
 
@@ -1567,10 +1567,10 @@ module Jamf
1567
1567
 
1568
1568
  raise Jamf::InvalidConnectionError, 'Not connected to MySQL' unless Jamf::DB_CNX.connected?
1569
1569
 
1570
- unless defined? self.class::OBJECT_HISTORY_OBJECT_TYPE
1571
- raise Jamf::UnsupportedError,
1572
- "Object History access is not supported for #{self.class} objects at this time"
1573
- end
1570
+ return if defined? self.class::OBJECT_HISTORY_OBJECT_TYPE
1571
+
1572
+ raise Jamf::UnsupportedError,
1573
+ "Object History access is not supported for #{self.class} objects at this time"
1574
1574
  end
1575
1575
 
1576
1576
  # If we're making a new object in the JSS, make sure we were given
@@ -142,7 +142,7 @@ module Jamf
142
142
  # *ruby* Array full of *ruby* hashes, and they will be converted to a
143
143
  # Plist and embedded into the API XML appropriately.
144
144
  #
145
- # WARNING: This is experimental! Editing the Plist Payload of a Config
145
+ # WARNING: This can be dangerous! Editing the Plist Payload of a Config
146
146
  # profile may break the profile. Make sure you test on a fake profile
147
147
  # before using this method in production.
148
148
  #
@@ -151,7 +151,7 @@ module Jamf
151
151
  def payload_content=(new_content)
152
152
  payload_plist_data = parsed_payloads
153
153
  payload_plist_data['PayloadContent'] = new_content
154
- @payloads = JSS.xml_plist_from new_content
154
+ @payloads = Jamf.xml_plist_from payload_plist_data
155
155
  @need_to_update = true
156
156
  @update_payloads = true
157
157
  end
@@ -248,7 +248,6 @@ module Jamf
248
248
  #
249
249
  def self.available_name_ids(source, api: nil, cnx: Jamf.cnx)
250
250
  cnx = api if api
251
-
252
251
  available_titles(source, cnx: cnx).map { |t| t[:name_id] }
253
252
  end
254
253
 
@@ -270,7 +269,6 @@ module Jamf
270
269
  #
271
270
  def self.valid_patch_source_id(ident, refresh = false, api: nil, cnx: Jamf.cnx)
272
271
  cnx = api if api
273
-
274
272
  id = Jamf::PatchInternalSource.valid_id ident, refresh, cnx: cnx
275
273
  id ||= Jamf::PatchExternalSource.valid_id ident, refresh, cnx: cnx
276
274
  id
@@ -134,6 +134,8 @@ module Jamf
134
134
  validate_connected
135
135
  rsrc = rsrc.delete_prefix Jamf::Connection::SLASH
136
136
  resp = @jp_cnx.patch(rsrc) do |req|
137
+ # Patch requests must use this content type!
138
+ req.headers['Content-Type'] = 'application/merge-patch+json'
137
139
  req.body = data
138
140
  end
139
141
  @last_http_response = resp
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -35,8 +35,8 @@ module Jamf
35
35
  # Description of this class from the OAPI Schema:
36
36
  # Settings for Account Driven User Enrollment. Only 1 of expirationIntervalDays or expirationIntervalSeconds can be supplied.
37
37
  #
38
- # This class was automatically genereated from the api/schema
39
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
38
+ # This class was automatically generated from the api/schema
39
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
40
40
  #
41
41
  # This class may be used directly, e.g instances of other classes may
42
42
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -0,0 +1,105 @@
1
+ # Copyright 2024 Pixar
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
+ # with the following modification; you may not use this file except in
5
+ # compliance with the Apache License and the following modification to it:
6
+ # Section 6. Trademarks. is deleted and replaced with:
7
+ #
8
+ # 6. Trademarks. This License does not grant permission to use the trade
9
+ # names, trademarks, service marks, or product names of the Licensor
10
+ # and its affiliates, except as required to comply with Section 4(c) of
11
+ # the License and to reproduce the content of the NOTICE file.
12
+ #
13
+ # You may obtain a copy of the Apache License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the Apache License with the above modification is
19
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ # KIND, either express or implied. See the Apache License for the specific
21
+ # language governing permissions and limitations under the Apache License.
22
+ #
23
+
24
+
25
+ module Jamf
26
+
27
+ # This module is the namespace for all objects defined
28
+ # in the OAPI JSON schema under the components => schemas key
29
+ #
30
+ module OAPISchemas
31
+
32
+
33
+ # OAPI Object Model and Enums for: AccountPreferencesSearchType
34
+ #
35
+ #
36
+ #
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
+ #
40
+ # This class may be used directly, e.g instances of other classes may
41
+ # use instances of this class as one of their own properties/attributes.
42
+ #
43
+ # It may also be used as a superclass when implementing Jamf Pro API
44
+ # Resources in ruby-jss. The subclasses include appropriate mixins, and
45
+ # should expand on the basic functionality provided here.
46
+ #
47
+ #
48
+ # Container Objects:
49
+ # Other object models that use this model as the value in one
50
+ # of their attributes.
51
+ # - Jamf::OAPISchemas::AccountPreferencesV5
52
+ # - Jamf::OAPISchemas::AccountPreferencesV5
53
+ # - Jamf::OAPISchemas::AccountPreferencesV5
54
+ # - Jamf::OAPISchemas::AccountPreferencesV5
55
+ # - Jamf::OAPISchemas::AccountPreferencesV5
56
+ # - Jamf::OAPISchemas::AccountPreferencesV5
57
+ # - Jamf::OAPISchemas::AccountPreferencesV5
58
+ # - Jamf::OAPISchemas::AccountPreferencesV5
59
+ # - Jamf::OAPISchemas::AccountPreferencesV5
60
+ # - Jamf::OAPISchemas::AccountPreferencesV5
61
+ # - Jamf::OAPISchemas::AccountPreferencesV5
62
+ # - Jamf::OAPISchemas::AccountPreferencesV5
63
+ # - Jamf::OAPISchemas::AccountPreferencesV5
64
+ # - Jamf::OAPISchemas::AccountPreferencesV5
65
+ # - Jamf::OAPISchemas::AccountPreferencesV5
66
+ # - Jamf::OAPISchemas::AccountPreferencesV5
67
+ # - Jamf::OAPISchemas::AccountPreferencesV5
68
+ # - Jamf::OAPISchemas::AccountPreferencesV5
69
+ #
70
+ # Sub Objects:
71
+ # Other object models used by this model's attributes.
72
+ #
73
+ #
74
+ # Endpoints and Privileges:
75
+ # API endpoints and HTTP operations that use this object
76
+ # model, and the Jamf Pro privileges needed to access them.
77
+ #
78
+ #
79
+ #
80
+ class AccountPreferencesSearchType < Jamf::OAPIObject
81
+
82
+ # Enums used by this class or others
83
+
84
+ VALUE_OPTIONS = [
85
+ 'EXACT_MATCH',
86
+ 'STARTS_WITH',
87
+ 'CONTAINS'
88
+ ]
89
+
90
+ OAPI_PROPERTIES = {
91
+
92
+ # @!attribute value
93
+ # @return [String]
94
+ value: {
95
+ class: :string,
96
+ enum: VALUE_OPTIONS
97
+ }
98
+
99
+ } # end OAPI_PROPERTIES
100
+
101
+ end # class AccountPreferencesSearchType
102
+
103
+ end # module OAPISchemas
104
+
105
+ end # module Jamf
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -30,12 +30,12 @@ module Jamf
30
30
  module OAPISchemas
31
31
 
32
32
 
33
- # OAPI Object Model and Enums for: OrderBy
33
+ # OAPI Object Model and Enums for: AccountPreferencesUserInterfaceDisplayTheme
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -48,11 +48,11 @@ module Jamf
48
48
  # Container Objects:
49
49
  # Other object models that use this model as the value in one
50
50
  # of their attributes.
51
- # - Jamf::OAPISchemas::MobileDeviceSearchParams
51
+ # - Jamf::OAPISchemas::AccountPreferencesV5
52
52
  #
53
53
  # Sub Objects:
54
54
  # Other object models used by this model's attributes.
55
- #
55
+ #
56
56
  #
57
57
  # Endpoints and Privileges:
58
58
  # API endpoints and HTTP operations that use this object
@@ -60,33 +60,28 @@ module Jamf
60
60
  #
61
61
  #
62
62
  #
63
- class OrderBy < Jamf::OAPIObject
63
+ class AccountPreferencesUserInterfaceDisplayTheme < Jamf::OAPIObject
64
64
 
65
65
  # Enums used by this class or others
66
66
 
67
- DIRECTION_OPTIONS = [
68
- 'ASC',
69
- 'DESC'
67
+ VALUE_OPTIONS = [
68
+ 'MATCH_SYSTEM',
69
+ 'LIGHT',
70
+ 'DARK'
70
71
  ]
71
72
 
72
73
  OAPI_PROPERTIES = {
73
74
 
74
- # @!attribute field
75
- # @return [String]
76
- field: {
77
- class: :string
78
- },
79
-
80
- # @!attribute direction
75
+ # @!attribute value
81
76
  # @return [String]
82
- direction: {
77
+ value: {
83
78
  class: :string,
84
- enum: DIRECTION_OPTIONS
79
+ enum: VALUE_OPTIONS
85
80
  }
86
81
 
87
82
  } # end OAPI_PROPERTIES
88
83
 
89
- end # class OrderBy
84
+ end # class AccountPreferencesUserInterfaceDisplayTheme
90
85
 
91
86
  end # module OAPISchemas
92
87
 
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Pixar
1
+ # Copyright 2024 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
@@ -34,8 +34,8 @@ module Jamf
34
34
  #
35
35
  #
36
36
  #
37
- # This class was automatically genereated from the api/schema
38
- # URL path on a Jamf Pro server version 10.50.0-t1693149930
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
39
  #
40
40
  # This class may be used directly, e.g instances of other classes may
41
41
  # use instances of this class as one of their own properties/attributes.