ruby-jss 1.6.0 → 2.0.0a11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGES.md +85 -5
- data/README-2.0.0.md +324 -0
- data/README.md +58 -34
- data/bin/cgrouper +3 -3
- data/bin/jamfHelperBackgrounder +2 -2
- data/bin/netseg-update +3 -3
- data/data/ruby-jss.conf.example +1 -1
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/account.rb +29 -22
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_computer_search.rb +6 -6
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_mobile_device_search.rb +6 -6
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_user_search.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/building.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/categorizable.rb +10 -10
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/category.rb +17 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/computer.rb +221 -111
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/computer_extension_attribute.rb +19 -19
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/computer_group.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/computer_invitation.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/creatable.rb +22 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable/criteria.rb +24 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable/criterion.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable.rb +25 -28
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/department.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding.rb +40 -40
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/active_directory.rb +47 -47
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/admitmac.rb +56 -56
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/centrify.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects/directory_binding_type}/directory_binding_type.rb +2 -25
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/open_directory.rb +19 -19
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/powerbroker_identity_services.rb +1 -1
- data/lib/jamf/api/classic/api_objects/directory_binding_type.rb +47 -0
- data/lib/{jss/api_object/disk_encryption_configurations.rb → jamf/api/classic/api_objects/disk_encryption_configuration.rb} +14 -14
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/distribution_point.rb +41 -35
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/dock_item.rb +12 -12
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ebook.rb +3 -3
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/extendable.rb +23 -23
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ibeacon.rb +15 -15
- data/lib/{jss/api_object/self_servable → jamf/api/classic/api_objects}/icon.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ldap_server.rb +45 -34
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/locatable.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mac_application.rb +18 -18
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/audit_event.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/casper_imaging_log.rb +4 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/casper_remote_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/computer_usage_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/ebook.rb +7 -7
- data/lib/{jss/api_object/management_history/hashlike.rb → jamf/api/classic/api_objects/management_history/hash_like.rb} +3 -3
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mac_app_store_app.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mdm_command.rb +9 -9
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mobile_device_app.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/policy_log.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/screen_sharing_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/user_location_change.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history.rb +226 -189
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/matchable.rb +9 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mdm.rb +256 -151
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mobile_device.rb +55 -39
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mobile_device_application.rb +77 -35
- data/lib/{jss/api_object/configuration_profile → jamf/api/classic/api_objects}/mobile_device_configuration_profile.rb +7 -10
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/mobile_device_extension_attribute.rb +19 -19
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/mobile_device_group.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/netboot_server.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/network_segment.rb +75 -61
- data/lib/{jss/api_object/configuration_profile → jamf/api/classic/api_objects}/osx_configuration_profile.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/package.rb +83 -74
- data/lib/{jss/api_object/patch_source → jamf/api/classic/api_objects}/patch_external_source.rb +9 -9
- data/lib/{jss/api_object/patch_source → jamf/api/classic/api_objects}/patch_internal_source.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_policy.rb +70 -68
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_title/version.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_title.rb +76 -64
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/peripheral.rb +24 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/peripheral_type.rb +20 -20
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/policy.rb +113 -112
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/printer.rb +52 -52
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/purchasable.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/removable_macaddr.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/restricted_software.rb +21 -22
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/scopable/scope.rb +69 -64
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/scopable.rb +11 -13
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/script.rb +22 -22
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/self_servable.rb +51 -49
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/sitable.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/site.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/software_update_server.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/updatable.rb +13 -13
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/uploadable.rb +71 -29
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/user.rb +18 -18
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/user_extension_attribute.rb +12 -12
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/user_group.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/vpp_account.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/vppable.rb +5 -5
- data/lib/{jss/api_object/webhook.rb → jamf/api/classic/api_objects/web_hook.rb} +15 -15
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/advanced_search.rb +36 -40
- data/lib/{jss → jamf/api/classic/base_classes}/api_object.rb +314 -274
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/configuration_profile.rb +13 -16
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/extension_attribute.rb +55 -59
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/group.rb +45 -43
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/patch_source.rb +107 -87
- data/lib/{jss → jamf/api/classic}/xml_workaround.rb +12 -12
- data/lib/jamf/api/connection/attributes.rb +177 -0
- data/lib/jamf/api/connection/cache.rb +148 -0
- data/lib/jamf/api/connection/classic_api.rb +287 -0
- data/lib/jamf/api/connection/connect.rb +491 -0
- data/lib/jamf/api/connection/constants.rb +106 -0
- data/lib/jamf/api/connection/default_connection.rb +103 -0
- data/lib/jamf/api/connection/jamf_pro_api.rb +170 -0
- data/lib/jamf/api/connection/jamf_pro_api_error.rb +109 -0
- data/lib/jamf/api/connection/token.rb +289 -99
- data/lib/jamf/api/connection.rb +186 -819
- data/lib/jamf/api/jamf_pro/api_objects/computer_prestage.rb +82 -0
- data/lib/jamf/api/jamf_pro/api_objects/device_enrollment.rb +358 -0
- data/lib/jamf/api/jamf_pro/api_objects/inventory_preload_record.rb +163 -0
- data/lib/jamf/api/jamf_pro/api_objects/jp_building.rb +116 -0
- data/lib/jamf/api/jamf_pro/api_objects/mobile_device_prestage.rb +87 -0
- data/lib/jamf/api/jamf_pro/base_classes/oapi_object.rb +608 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/bulk_deletable.rb +2 -1
- data/lib/jamf/api/jamf_pro/mixins/change_log.rb +246 -0
- data/lib/jamf/api/jamf_pro/mixins/collection_resource.rb +762 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/filterable.rb +21 -14
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/immutable.rb +6 -8
- data/lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb +167 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/lockable.rb +29 -3
- data/lib/jamf/api/jamf_pro/mixins/prestage.rb +356 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/sortable.rb +7 -17
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/uncreatable.rb +2 -2
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/undeletable.rb +2 -2
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_preview_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_v2_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account.rb +160 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v4.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history.rb +161 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_summary.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/admin_account.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_criteria_choices.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/android_details.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_analytics_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_dynamics_config.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_settings.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/apple_tv_details.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_attributes.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_configuration.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/attributes.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token_v1.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_process_status.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_request.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_request.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_update.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_mappings.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_request.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_update.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/branding_image_url.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cache_settings.rb +150 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/categories_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/category.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_details.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v1.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v2.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_key.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_record.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/classic_ldap_mappings.rb +169 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v2.rb +165 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v3.rb +135 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_request.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_response.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_pool_statistics.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_status.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore_file.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_request.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_response.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_request.rb +152 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_response.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_update.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +373 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +144 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +231 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general_update.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +265 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware_update.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_preferences.rb +166 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_settings.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_recovery_lock_password_response.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_response.rb +276 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_update_request.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +190 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_location.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system_update.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_overview.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v2.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computers_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_profile.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_candidate_request.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_response.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_status_response.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_update_request.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country_codes.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/create_path.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/csa_token.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_account.rb +160 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_authorization.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/data_roaming_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/database_password.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/day_of_week.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/delete_user_command.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/department.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/departments_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_request.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_response.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_update.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_request.rb +166 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_response.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_update.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_communication_settings.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_compliance_information.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_body.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb +164 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage.rb +216 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb +235 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/diagnostic_submission_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_exclusions.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_limitations.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_scope.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enable_lost_mode_command.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/engage.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_preview.rb +135 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_v2.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_branding_settings.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependencies.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependency.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_ldap_group_access.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_ldap_auth.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_list.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_sso_auth.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_text.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_v2.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_process_text_object.rb +347 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v2.rb +274 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_field.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_parameters.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute_v2.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/external_recipient.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_delete.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/filter.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/font_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v2.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_ldap_auth.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_sso_auth.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_text.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_mappings.rb +139 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_request.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results.rb +142 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/href_response.rb +169 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/icon_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ids.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize_v1.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/install_package.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/integer_wrapper.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/internal_recipient.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_information.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_error.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error_cause.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_success.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column_result.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_invalid_csv_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record.rb +249 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_configuration.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details.rb +256 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details_v2.rb +256 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_application_response.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_nation_credentials.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_package_response.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_server_url.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_version.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_protect_plan.rb +126 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/language_code.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_request.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_response.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_update.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_server.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile.rb +127 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/locale.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location.rb +126 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_v2.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_configuration.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/markdown.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_client_type.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_request.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_state.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_type.rb +173 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_signing_certificate.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_mappings.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_request.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_response.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/memcached_endpoints.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v1.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v2.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details.rb +236 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_get_v2.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_v2.rb +254 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute_results.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_group.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_params.rb +145 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_v2.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network.rb +172 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network_v2.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification_type.rb +141 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification_v1.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/order_by.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/package_manifest.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/parent_app.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_ids_on_dashboard.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt_action.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_on_dashboard.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_summary.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_version.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/personal_hotspot_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plugin_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties_v1.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v2.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependencies.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependency.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment_v2.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_update.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status_v2.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/process_texts_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_registration_request.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_settings_response.rb +142 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_updatable_settings_request.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/provisioning_profile.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing_v2.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v2.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recalculation_results.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipient.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipients.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/reenrollment.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_response.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/renew_mdm_profile_response.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/restart_device_command.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/retry_patch_policy_params.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/safelisted_apps.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/script.rb +193 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/scripts_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_active_patch_history_params.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_patch_policy_log_params.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security_v2.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_install_settings.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_interaction_settings.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_login_settings.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_settings.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_candidate_request.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/set_recovery_lock_command.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/settings_command.rb +168 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/shared_device_configuration.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/signature.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/site.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/smart_search_criterion.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_configuration.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_patch_policy_summaries.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_update_settings.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_cert_parse_response.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_details.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_parse.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response_with_details.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_with_details.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_metadata_url.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_settings.rb +241 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/startup_status.rb +186 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/static_user_group.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_certificate_upload.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_create.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_update.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_features.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_request.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_response.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/time_frame.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/time_zone.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/tv_os_details.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/udids.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_apple_tv.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios_v2.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device_v2.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_tv_os.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_attributes.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_mappings.rb +194 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_request.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_ca_record.rb +148 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_service_status.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/verbose_package_deployment_response.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/voice_roaming_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_list_view.rb +172 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_patch.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_post.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_locations.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription_base.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscriptions.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_admin_account.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_token_subscription.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/web_link.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas.rb +35 -0
- data/lib/{jss/ruby_extensions/string.rb → jamf/api/jamf_pro/other_classes/change_log_entry.rb} +12 -10
- data/lib/jamf/api/{attribute_classes → jamf_pro/other_classes}/ip_address.rb +2 -8
- data/lib/jamf/api/jamf_pro/other_classes/pager.rb +257 -0
- data/lib/jamf/api/{attribute_classes → jamf_pro/other_classes}/timestamp.rb +18 -14
- data/lib/jamf/{api/mixins/base_class.rb → base_class.rb} +8 -8
- data/lib/jamf/client/jamf_binary.rb +104 -98
- data/lib/jamf/client/jamf_helper.rb +263 -255
- data/lib/jamf/client/management_action.rb +71 -72
- data/lib/jamf/client.rb +15 -86
- data/lib/jamf/composer.rb +5 -5
- data/lib/jamf/configuration.rb +219 -196
- data/lib/jamf/{api/json_objects/prestage_sync_status.rb → constants.rb} +15 -32
- data/lib/{jss → jamf}/db_connection.rb +26 -34
- data/lib/{jpapi.rb → jamf/deprecations/deprecated_api_constant.rb} +3 -4
- data/lib/jamf/deprecations/deprecated_config_constant.rb +25 -0
- data/lib/jamf/exceptions.rb +14 -15
- data/lib/jamf/oapi_validate.rb +502 -0
- data/lib/jamf/ruby_extensions/array/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/array/utils.rb +2 -11
- data/lib/jamf/ruby_extensions/array.rb +1 -1
- data/lib/jamf/ruby_extensions/filetest/predicates.rb +2 -1
- data/lib/jamf/ruby_extensions/filetest.rb +1 -1
- data/lib/jamf/ruby_extensions/hash/{backports.rb → utils.rb} +53 -34
- data/lib/jamf/ruby_extensions/hash.rb +3 -3
- data/lib/jamf/ruby_extensions/ipaddr/utils.rb +7 -4
- data/lib/jamf/ruby_extensions/ipaddr.rb +2 -2
- data/lib/jamf/ruby_extensions/object/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/object.rb +1 -1
- data/lib/jamf/ruby_extensions/pathname/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/pathname/utils.rb +11 -5
- data/lib/jamf/ruby_extensions/pathname.rb +1 -1
- data/lib/jamf/ruby_extensions/string/conversions.rb +16 -1
- data/lib/jamf/ruby_extensions/string/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/string.rb +1 -3
- data/lib/{jss/ruby_extensions/time.rb → jamf/ruby_extensions/time/utils.rb} +40 -25
- data/lib/{jss/version.rb → jamf/ruby_extensions/time.rb} +7 -6
- data/lib/jamf/ruby_extensions.rb +9 -9
- data/lib/jamf/utility.rb +626 -410
- data/lib/jamf/validate.rb +86 -125
- data/lib/jamf/version.rb +3 -3
- data/lib/jamf.rb +76 -131
- data/lib/jss-api.rb +2 -2
- data/lib/jss.rb +3 -215
- data/lib/ruby-jss.rb +2 -2
- data/lib/zeitwerk_config.rb +163 -0
- data/test/README.md +27 -112
- data/test/bin/runtests +57 -130
- data/test/lib/jamf_test/APITest.rb +106 -0
- data/{lib/jss/ruby_extensions/filetest.rb → test/lib/jamf_test/advanced_search.rb} +16 -20
- data/test/lib/jamf_test/auth.rb +267 -0
- data/test/lib/jamf_test/collection_tests.rb +391 -0
- data/test/lib/jamf_test/prestage_tests.rb +135 -0
- data/test/lib/{testhelper.rb → jamf_test.rb} +15 -12
- data/{lib/jss/ruby_extensions.rb → test/tests/advanced_computer_search.rb} +11 -12
- data/test/tests/advanced_mobile_device_search.rb +36 -0
- data/test/tests/advanced_user_search.rb +36 -0
- data/test/tests/category.rb +41 -0
- data/test/tests/computer_prestage.rb +36 -0
- data/test/tests/device_enrollment.rb +101 -0
- data/test/tests/inventory_preload_record.rb +131 -0
- data/test/tests/jp_building.rb +41 -0
- data/test/tests/mobile_device_prestage.rb +37 -0
- data/test/tests/policy.rb +163 -0
- metadata +653 -204
- data/lib/jamf/api/base_classes/collection_resource.rb +0 -613
- data/lib/jamf/api/base_classes/json_object.rb +0 -1105
- data/lib/jamf/api/base_classes/prestage.rb +0 -503
- data/lib/jamf/api/base_classes/resource.rb +0 -259
- data/lib/jamf/api/base_classes/singleton_resource.rb +0 -88
- data/lib/jamf/api/connection/api_error.rb +0 -111
- data/lib/jamf/api/connection/api_error_styleguide.rb +0 -96
- data/lib/jamf/api/json_objects/change_log_entry.rb +0 -77
- data/lib/jamf/api/json_objects/country.rb +0 -51
- data/lib/jamf/api/json_objects/device_enrollment_device.rb +0 -165
- data/lib/jamf/api/json_objects/device_enrollment_device_sync_state.rb +0 -81
- data/lib/jamf/api/json_objects/device_enrollment_sync_status.rb +0 -71
- data/lib/jamf/api/json_objects/inventory_preload_extension_attribute.rb +0 -57
- data/lib/jamf/api/json_objects/locale.rb +0 -59
- data/lib/jamf/api/json_objects/md_prestage_name.rb +0 -57
- data/lib/jamf/api/json_objects/md_prestage_names.rb +0 -82
- data/lib/jamf/api/json_objects/md_prestage_skip_setup_items.rb +0 -214
- data/lib/jamf/api/json_objects/prestage_assignment.rb +0 -76
- data/lib/jamf/api/json_objects/prestage_location.rb +0 -104
- data/lib/jamf/api/json_objects/prestage_purchasing_data.rb +0 -132
- data/lib/jamf/api/json_objects/prestage_scope.rb +0 -57
- data/lib/jamf/api/json_objects/time_zone.rb +0 -105
- data/lib/jamf/api/mixins/change_log.rb +0 -288
- data/lib/jamf/api/mixins/extendable.rb +0 -75
- data/lib/jamf/api/mixins/pageable.rb +0 -208
- data/lib/jamf/api/mixins/searchable.rb +0 -202
- data/lib/jamf/api/resources/collection_resources/building.rb +0 -121
- data/lib/jamf/api/resources/collection_resources/category.rb +0 -83
- data/lib/jamf/api/resources/collection_resources/computer_prestage.rb +0 -89
- data/lib/jamf/api/resources/collection_resources/department.rb +0 -78
- data/lib/jamf/api/resources/collection_resources/device_enrollment.rb +0 -384
- data/lib/jamf/api/resources/collection_resources/inventory_preload_record.rb +0 -289
- data/lib/jamf/api/resources/collection_resources/mobile_device_prestage.rb +0 -143
- data/lib/jamf/api/resources/collection_resources/script.rb +0 -226
- data/lib/jamf/api/resources/singleton_resources/app_store_country_codes.rb +0 -141
- data/lib/jamf/api/resources/singleton_resources/locales.rb +0 -155
- data/lib/jamf/api/resources/singleton_resources/time_zones.rb +0 -213
- data/lib/jamf/compatibility.rb +0 -88
- data/lib/jamf/ruby_extensions/dig.rb +0 -52
- data/lib/jamf/ruby_extensions/string/backports.rb +0 -66
- data/lib/jss/api_connection.rb +0 -1029
- data/lib/jss/api_object/app_store_country_codes.rb +0 -298
- data/lib/jss/api_object/computer/application_installs.rb +0 -118
- data/lib/jss/client/jamf_binary.rb +0 -132
- data/lib/jss/client/jamf_helper.rb +0 -298
- data/lib/jss/client/management_action.rb +0 -113
- data/lib/jss/client.rb +0 -301
- data/lib/jss/compatibility.rb +0 -88
- data/lib/jss/composer.rb +0 -190
- data/lib/jss/configuration.rb +0 -319
- data/lib/jss/exceptions.rb +0 -115
- data/lib/jss/ruby_extensions/array.rb +0 -52
- data/lib/jss/ruby_extensions/hash.rb +0 -140
- data/lib/jss/ruby_extensions/ipaddr.rb +0 -92
- data/lib/jss/ruby_extensions/object.rb +0 -19
- data/lib/jss/ruby_extensions/pathname.rb +0 -78
- data/lib/jss/ruby_extensions/string/backports.rb +0 -68
- data/lib/jss/ruby_extensions/string/conversions.rb +0 -69
- data/lib/jss/ruby_extensions/string/predicates.rb +0 -57
- data/lib/jss/server.rb +0 -146
- data/lib/jss/utility.rb +0 -672
- data/lib/jss/validate.rb +0 -248
- data/test/lib/testhelper/auth.rb +0 -275
- data/test/lib/testhelper/patch_mgmt.rb +0 -123
- data/test/specs/api_connection_spec.rb +0 -57
- data/test/specs/patch01_source_spec.rb +0 -54
- data/test/specs/patch02_internal_source_spec.rb +0 -88
- data/test/specs/patch03_external_source_spec.rb +0 -120
- data/test/specs/patch04_titles_spec.rb +0 -207
- data/test/specs/patch05_policies_spec.rb +0 -119
- data/test/specs/patch06_cleanup_spec.rb +0 -52
- data/test/specs/policy_spec.rb +0 -112
@@ -1,4 +1,4 @@
|
|
1
|
-
### Copyright
|
1
|
+
### Copyright 2022 Pixar
|
2
2
|
|
3
3
|
###
|
4
4
|
### Licensed under the Apache License, Version 2.0 (the "Apache License")
|
@@ -24,7 +24,7 @@
|
|
24
24
|
###
|
25
25
|
|
26
26
|
###
|
27
|
-
module
|
27
|
+
module Jamf
|
28
28
|
|
29
29
|
# Mixin Modules
|
30
30
|
#####################################
|
@@ -57,7 +57,7 @@ module JSS
|
|
57
57
|
# == Raw data versus processed data & event object classes
|
58
58
|
#
|
59
59
|
# The primary data-retrieval method for management history data is
|
60
|
-
# {
|
60
|
+
# {Jamf::ManagementHistory.management_history}. This method returns the raw
|
61
61
|
# JSON data from the API, parsed into a Ruby Hash. If you don't specify a
|
62
62
|
# subset, the data returned can be very large.
|
63
63
|
#
|
@@ -68,10 +68,10 @@ module JSS
|
|
68
68
|
# the remaining methods, which only return subsets of the full dataset, will
|
69
69
|
# return Arrays of instances of the classes defined in this module.
|
70
70
|
#
|
71
|
-
# For example, the {
|
72
|
-
# of
|
73
|
-
# {
|
74
|
-
#
|
71
|
+
# For example, the {Jamf::MobileDevice.audit_history} method returns an Array
|
72
|
+
# of Jamf::ManagementHistory::AuditEvent instances, and the
|
73
|
+
# {Jamf::Computer.completed_policies} gives an Array of
|
74
|
+
# Jamf::ManagementHistory::PolicyLog objects.
|
75
75
|
#
|
76
76
|
# These objects are read-only and provide access to their values via both
|
77
77
|
# attribute-style methods, and hash-like keys, similar to how OpenStruct
|
@@ -173,24 +173,26 @@ module JSS
|
|
173
173
|
# NOTE: This returns the raw JSON data from the API, parsed into
|
174
174
|
# a ruby Hash. Use the subset-specific methods to retrieve more consistent
|
175
175
|
# arrays of ruby-jss objects for each kind of history event, e.g.
|
176
|
-
#
|
177
|
-
# of
|
176
|
+
# Jamf::Computer.audits(id) or Jamf::MobileDevice.audits(id) to get an array
|
177
|
+
# of Jamf::ManagementHistory::AuditEvent objects
|
178
178
|
#
|
179
179
|
# @param ident [Integer,String] An identifier (id, name, serialnumber,
|
180
180
|
# macadress or udid) of the computer or device for which to retrieve history
|
181
181
|
#
|
182
182
|
# @param subset[Symbol] the subset to return, rather than full history.
|
183
183
|
#
|
184
|
-
# @param
|
185
|
-
# Defaults to the corrently active API. See {
|
184
|
+
# @param cnx [Jamf::Connection] an API connection to use for the query.
|
185
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
186
186
|
#
|
187
187
|
# @return [Hash,Array] The raw full history or subset requested
|
188
188
|
#
|
189
|
-
def management_history(ident, subset = nil, api:
|
190
|
-
|
191
|
-
raise JSS::NoSuchItemError, "No #{self::RSRC_OBJECT_KEY} matches identifier: #{ident}" unless id
|
189
|
+
def management_history(ident, subset = nil, api: nil, cnx: Jamf.cnx)
|
190
|
+
cnx = api if api
|
192
191
|
|
193
|
-
|
192
|
+
id = valid_id ident, cnx: cnx
|
193
|
+
raise Jamf::NoSuchItemError, "No #{self::RSRC_OBJECT_KEY} matches identifier: #{ident}" unless id
|
194
|
+
|
195
|
+
if self == Jamf::Computer
|
194
196
|
@hist_subsets ||= HIST_COMPUTER_SUBSETS
|
195
197
|
@hist_rsrc ||= HIST_COMPUTER_RSRC
|
196
198
|
@hist_key ||= HIST_COMPUTER_KEY
|
@@ -203,9 +205,9 @@ module JSS
|
|
203
205
|
if subset
|
204
206
|
raise "Subset must be one of :#{@hist_subsets.join ', :'}" unless @hist_subsets.include? subset
|
205
207
|
subset_rsrc = @hist_rsrc + "/id/#{id}/subset/#{subset}"
|
206
|
-
|
208
|
+
cnx.c_get(subset_rsrc)[@hist_key][subset]
|
207
209
|
else
|
208
|
-
|
210
|
+
cnx.c_get(@hist_rsrc + "/id/#{id}")[@hist_key]
|
209
211
|
end
|
210
212
|
end
|
211
213
|
alias history management_history
|
@@ -214,14 +216,16 @@ module JSS
|
|
214
216
|
#
|
215
217
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
216
218
|
#
|
217
|
-
# @param
|
219
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
218
220
|
# defaults to the currently active connection
|
219
221
|
#
|
220
|
-
# @return [Array<
|
222
|
+
# @return [Array<Jamf::ManagementHistory::AuditEvent>] An array of audit events
|
221
223
|
#
|
222
|
-
def audit_history(ident, api:
|
223
|
-
|
224
|
-
|
224
|
+
def audit_history(ident, api: nil, cnx: Jamf.cnx)
|
225
|
+
cnx = api if api
|
226
|
+
|
227
|
+
hist = management_history(ident, :audits, cnx: cnx)
|
228
|
+
hist.map! { |aud| Jamf::ManagementHistory::AuditEvent.new aud }
|
225
229
|
end
|
226
230
|
alias audits audit_history
|
227
231
|
|
@@ -229,14 +233,16 @@ module JSS
|
|
229
233
|
#
|
230
234
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
231
235
|
#
|
232
|
-
# @param
|
236
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
233
237
|
# defaults to the currently active connection
|
234
238
|
#
|
235
|
-
# @return [Array<
|
239
|
+
# @return [Array<Jamf::ManagementHistory::UserLocationChange>] An array of UserLocation change events
|
236
240
|
#
|
237
|
-
def user_location_history(ident, api:
|
238
|
-
|
239
|
-
|
241
|
+
def user_location_history(ident, api: nil, cnx: Jamf.cnx)
|
242
|
+
cnx = api if api
|
243
|
+
|
244
|
+
hist = management_history(ident, :user_location, cnx: cnx)
|
245
|
+
hist.map! { |evt| Jamf::ManagementHistory::UserLocationChange.new evt }
|
240
246
|
end
|
241
247
|
|
242
248
|
# The history of mdm commands for a target
|
@@ -245,16 +251,18 @@ module JSS
|
|
245
251
|
#
|
246
252
|
# @param status [Symbol] Return only the :completed, :pending, or :failed commands
|
247
253
|
#
|
248
|
-
# @param
|
254
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
249
255
|
# defaults to the currently active connection
|
250
256
|
#
|
251
|
-
# @return [Array<
|
257
|
+
# @return [Array<Jamf::ManagementHistory::MdmCommand>] An array of MdmCommands
|
252
258
|
#
|
253
|
-
def mdm_command_history(ident, status = nil, api:
|
254
|
-
|
255
|
-
|
259
|
+
def mdm_command_history(ident, status = nil, api: nil, cnx: Jamf.cnx)
|
260
|
+
cnx = api if api
|
261
|
+
|
262
|
+
subset = self == Jamf::Computer ? :commands : :management_commands
|
263
|
+
hist = management_history(ident, subset, cnx: cnx)
|
256
264
|
if status
|
257
|
-
raise
|
265
|
+
raise Jamf::InvalidDataError, 'status must be one of :completed, :pending, or :failed' unless HIST_MDM_STATUSES.include? status
|
258
266
|
statuses_to_do = [status]
|
259
267
|
else
|
260
268
|
statuses_to_do = HIST_MDM_STATUSES
|
@@ -271,7 +279,7 @@ module JSS
|
|
271
279
|
# but we always set the :status
|
272
280
|
cmd[:status] = a_status
|
273
281
|
|
274
|
-
|
282
|
+
Jamf::ManagementHistory::MdmCommand.new cmd
|
275
283
|
end # map do |cmd|
|
276
284
|
end # statuses_to_do.each do |a_status|
|
277
285
|
result
|
@@ -283,13 +291,15 @@ module JSS
|
|
283
291
|
#
|
284
292
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
285
293
|
#
|
286
|
-
# @param
|
294
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
287
295
|
# defaults to the currently active connection
|
288
296
|
#
|
289
|
-
# @return [Array<
|
297
|
+
# @return [Array<Jamf::ManagementHistory::MdmCommand>] An array of completed MdmCommands
|
290
298
|
#
|
291
|
-
def completed_mdm_commands(ident, api:
|
292
|
-
|
299
|
+
def completed_mdm_commands(ident, api: nil, cnx: Jamf.cnx)
|
300
|
+
cnx = api if api
|
301
|
+
|
302
|
+
mdm_command_history(ident, :completed, cnx: cnx)
|
293
303
|
end # completed_mdm_commands
|
294
304
|
alias completed_commands completed_mdm_commands
|
295
305
|
|
@@ -297,13 +307,15 @@ module JSS
|
|
297
307
|
#
|
298
308
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
299
309
|
#
|
300
|
-
# @param
|
310
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
301
311
|
# defaults to the currently active connection
|
302
312
|
#
|
303
|
-
# @return [Array<
|
313
|
+
# @return [Array<Jamf::ManagementHistory::MdmCommand>] An array of pending MdmCommands
|
304
314
|
#
|
305
|
-
def pending_mdm_commands(ident, api:
|
306
|
-
|
315
|
+
def pending_mdm_commands(ident, api: nil, cnx: Jamf.cnx)
|
316
|
+
cnx = api if api
|
317
|
+
|
318
|
+
mdm_command_history(ident, :pending, cnx: cnx)
|
307
319
|
end # completed_mdm_commands
|
308
320
|
alias pending_commands pending_mdm_commands
|
309
321
|
|
@@ -311,13 +323,15 @@ module JSS
|
|
311
323
|
#
|
312
324
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
313
325
|
#
|
314
|
-
# @param
|
326
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
315
327
|
# defaults to the currently active connection
|
316
328
|
#
|
317
|
-
# @return [Array<
|
329
|
+
# @return [Array<Jamf::ManagementHistory::MdmCommand>] An array of failed MdmCommands
|
318
330
|
#
|
319
|
-
def failed_mdm_commands(ident, api:
|
320
|
-
|
331
|
+
def failed_mdm_commands(ident, api: nil, cnx: Jamf.cnx)
|
332
|
+
cnx = api if api
|
333
|
+
|
334
|
+
mdm_command_history(ident, :failed, cnx: cnx)
|
321
335
|
end # completed_mdm_commands
|
322
336
|
alias failed_commands failed_mdm_commands
|
323
337
|
|
@@ -330,14 +344,16 @@ module JSS
|
|
330
344
|
#
|
331
345
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
332
346
|
#
|
333
|
-
# @param
|
347
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
334
348
|
# defaults to the currently active connection
|
335
349
|
#
|
336
|
-
# @return [Time, nil] An array of completed
|
350
|
+
# @return [Time, nil] An array of completed MdmCommands
|
337
351
|
#
|
338
|
-
def last_mdm_contact(ident, api:
|
339
|
-
|
340
|
-
|
352
|
+
def last_mdm_contact(ident, api: nil, cnx: Jamf.cnx)
|
353
|
+
cnx = api if api
|
354
|
+
|
355
|
+
epochs = completed_mdm_commands(ident, cnx: cnx).map { |cmd| cmd.completed_epoch }
|
356
|
+
epochs += failed_mdm_commands(ident, cnx: cnx).map { |cmd| cmd.failed_epoch }
|
341
357
|
epoch = epochs.max
|
342
358
|
epoch ? JSS.epoch_to_time(epoch) : nil
|
343
359
|
end
|
@@ -349,17 +365,19 @@ module JSS
|
|
349
365
|
#
|
350
366
|
# @param status [Symbol] Return only the :installed, :pending, or :failed apps
|
351
367
|
#
|
352
|
-
# @param
|
368
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
353
369
|
# defaults to the currently active connection
|
354
370
|
#
|
355
|
-
# @return [Array<
|
371
|
+
# @return [Array<Jamf::ManagementHistory::MacAppStoreApp>] An array of MacAppStoreApp
|
356
372
|
#
|
357
|
-
def mac_app_store_app_history(ident, status = nil, api:
|
358
|
-
|
373
|
+
def mac_app_store_app_history(ident, status = nil, api: nil, cnx: Jamf.cnx)
|
374
|
+
cnx = api if api
|
375
|
+
|
376
|
+
raise Jamf::UnsupportedError, 'Only computers have mac app store apps' unless self == Jamf::Computer
|
359
377
|
|
360
|
-
hist = management_history(ident, :mac_app_store_applications,
|
378
|
+
hist = management_history(ident, :mac_app_store_applications, cnx: cnx)
|
361
379
|
if status
|
362
|
-
raise
|
380
|
+
raise Jamf::InvalidDataError, 'status must be one of :installed, :pending, or :failed' unless HIST_APP_STATUSES.include? status
|
363
381
|
statuses_to_do = [status]
|
364
382
|
else
|
365
383
|
statuses_to_do = HIST_APP_STATUSES
|
@@ -371,7 +389,7 @@ module JSS
|
|
371
389
|
result += hist[a_status].map! do |app|
|
372
390
|
# set the :status
|
373
391
|
app[:status] = a_status
|
374
|
-
|
392
|
+
Jamf::ManagementHistory::MacAppStoreApp.new app
|
375
393
|
end # map do |cmd|
|
376
394
|
end # statuses_to_do.each do |a_status|
|
377
395
|
|
@@ -384,17 +402,19 @@ module JSS
|
|
384
402
|
#
|
385
403
|
# @param status [Symbol] Return only the :installed, :pending, or :failed apps
|
386
404
|
#
|
387
|
-
# @param
|
405
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
388
406
|
# defaults to the currently active connection
|
389
407
|
#
|
390
|
-
# @return [Array<
|
408
|
+
# @return [Array<Jamf::ManagementHistory::MobileDeviceApp>] An array of MobileDeviceApp
|
391
409
|
#
|
392
|
-
def mobile_device_app_history(ident, status = nil, api:
|
393
|
-
|
410
|
+
def mobile_device_app_history(ident, status = nil, api: nil, cnx: Jamf.cnx)
|
411
|
+
cnx = api if api
|
412
|
+
|
413
|
+
raise Jamf::UnsupportedError, 'Only mobile devices have mobile device apps' unless self == Jamf::MobileDevice
|
394
414
|
|
395
|
-
hist = management_history(ident, :applications,
|
415
|
+
hist = management_history(ident, :applications, cnx: cnx)
|
396
416
|
if status
|
397
|
-
raise
|
417
|
+
raise Jamf::InvalidDataError, 'status must be one of :installed, :pending, or :failed' unless HIST_APP_STATUSES.include? status
|
398
418
|
statuses_to_do = [status]
|
399
419
|
else
|
400
420
|
statuses_to_do = HIST_APP_STATUSES
|
@@ -427,7 +447,7 @@ module JSS
|
|
427
447
|
result += apps.map! do |app|
|
428
448
|
# set the :status in the hash
|
429
449
|
app[:status] = a_status
|
430
|
-
|
450
|
+
Jamf::ManagementHistory::MobileDeviceApp.new app
|
431
451
|
end # map do |cmd|
|
432
452
|
end # statuses_to_do.each do |a_status|
|
433
453
|
|
@@ -440,16 +460,18 @@ module JSS
|
|
440
460
|
#
|
441
461
|
# @param status [Symbol] Return only the :installed, :pending, or :failed apps
|
442
462
|
#
|
443
|
-
# @param
|
463
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
444
464
|
# defaults to the currently active connection
|
445
465
|
#
|
446
466
|
# @return [Array] An array of MacAppStoreApp or MobileDeviceApp
|
447
467
|
#
|
448
|
-
def app_store_app_history(ident, status = nil, api:
|
449
|
-
|
450
|
-
|
468
|
+
def app_store_app_history(ident, status = nil, api: nil, cnx: Jamf.cnx)
|
469
|
+
cnx = api if api
|
470
|
+
|
471
|
+
if self == Jamf::MobileDevice
|
472
|
+
mobile_device_app_history(ident, status, cnx: cnx)
|
451
473
|
else
|
452
|
-
mac_app_store_app_history(ident, status,
|
474
|
+
mac_app_store_app_history(ident, status, cnx: cnx)
|
453
475
|
end
|
454
476
|
end
|
455
477
|
alias managed_app_history app_store_app_history
|
@@ -458,8 +480,10 @@ module JSS
|
|
458
480
|
#
|
459
481
|
# @see #app_store_app_history
|
460
482
|
#
|
461
|
-
def installed_app_store_apps(ident,
|
462
|
-
|
483
|
+
def installed_app_store_apps(ident,api: nil, cnx: Jamf.cnx)
|
484
|
+
cnx = api if api
|
485
|
+
|
486
|
+
app_store_app_history(ident, :installed, cnx: cnx)
|
463
487
|
end
|
464
488
|
alias installed_managed_apps installed_app_store_apps
|
465
489
|
|
@@ -467,8 +491,10 @@ module JSS
|
|
467
491
|
#
|
468
492
|
# @see #app_store_app_history
|
469
493
|
#
|
470
|
-
def pending_app_store_apps(ident, api:
|
471
|
-
|
494
|
+
def pending_app_store_apps(ident, api: nil, cnx: Jamf.cnx)
|
495
|
+
cnx = api if api
|
496
|
+
|
497
|
+
app_store_app_history(ident, :pending, cnx: cnx)
|
472
498
|
end
|
473
499
|
alias pending_managed_apps pending_app_store_apps
|
474
500
|
|
@@ -476,8 +502,10 @@ module JSS
|
|
476
502
|
#
|
477
503
|
# @see #app_store_app_history
|
478
504
|
#
|
479
|
-
def failed_app_store_apps(ident, api:
|
480
|
-
|
505
|
+
def failed_app_store_apps(ident, api: nil, cnx: Jamf.cnx)
|
506
|
+
cnx = api if api
|
507
|
+
|
508
|
+
app_store_app_history(ident, :failed, cnx: cnx)
|
481
509
|
end
|
482
510
|
alias failed_managed_apps failed_app_store_apps
|
483
511
|
|
@@ -485,45 +513,51 @@ module JSS
|
|
485
513
|
#
|
486
514
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
487
515
|
#
|
488
|
-
# @param
|
516
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
489
517
|
# defaults to the currently active connection
|
490
518
|
#
|
491
|
-
# @return [Array<
|
519
|
+
# @return [Array<Jamf::ManagementHistory::CasperImagingLog>] An array of CasperImagingLog events
|
492
520
|
#
|
493
|
-
def casper_imaging_logs(ident, api:
|
494
|
-
|
495
|
-
|
496
|
-
|
521
|
+
def casper_imaging_logs(ident, api: nil, cnx: Jamf.cnx)
|
522
|
+
cnx = api if api
|
523
|
+
|
524
|
+
raise Jamf::UnsupportedError, 'Only computers have casper imaging logs' unless self == Jamf::Computer
|
525
|
+
hist = management_history(ident, :casper_imaging_logs, cnx: cnx)
|
526
|
+
hist.map! { |evt| Jamf::ManagementHistory::CasperImagingLog.new evt }
|
497
527
|
end
|
498
528
|
|
499
529
|
# The history of Casper Remote events for a computer
|
500
530
|
#
|
501
531
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
502
532
|
#
|
503
|
-
# @param
|
533
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
504
534
|
# defaults to the currently active connection
|
505
535
|
#
|
506
|
-
# @return [Array<
|
536
|
+
# @return [Array<Jamf::ManagementHistory::CasperRemoteLog>] An array of CasperRemoteLog events
|
507
537
|
#
|
508
|
-
def casper_remote_logs(ident, api:
|
509
|
-
|
510
|
-
|
511
|
-
|
538
|
+
def casper_remote_logs(ident, api: nil, cnx: Jamf.cnx)
|
539
|
+
cnx = api if api
|
540
|
+
|
541
|
+
raise Jamf::UnsupportedError, 'Only computers have casper remote logs' unless self == Jamf::Computer
|
542
|
+
hist = management_history(ident, :casper_remote_logs, cnx: cnx)
|
543
|
+
hist.map! { |evt| Jamf::ManagementHistory::CasperRemoteLog.new evt }
|
512
544
|
end
|
513
545
|
|
514
546
|
# The history of usage events for a computer
|
515
547
|
#
|
516
548
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
517
549
|
#
|
518
|
-
# @param
|
550
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
519
551
|
# defaults to the currently active connection
|
520
552
|
#
|
521
|
-
# @return [Array<
|
553
|
+
# @return [Array<Jamf::ManagementHistory::ComputerUsageLog>] An array of ComputerUsageLog events
|
522
554
|
#
|
523
|
-
def computer_usage_logs(ident, api:
|
524
|
-
|
525
|
-
|
526
|
-
|
555
|
+
def computer_usage_logs(ident, api: nil, cnx: Jamf.cnx)
|
556
|
+
cnx = api if api
|
557
|
+
|
558
|
+
raise Jamf::UnsupportedError, 'Only computers have usage logs' unless self == Jamf::Computer
|
559
|
+
hist = management_history(ident, :computer_usage_logs, cnx: cnx)
|
560
|
+
hist.map! { |evt| Jamf::ManagementHistory::ComputerUsageLog.new evt }
|
527
561
|
end
|
528
562
|
alias usage_logs computer_usage_logs
|
529
563
|
|
@@ -531,44 +565,52 @@ module JSS
|
|
531
565
|
#
|
532
566
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
533
567
|
#
|
534
|
-
# @param
|
568
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
535
569
|
# defaults to the currently active connection
|
536
570
|
#
|
537
|
-
# @return [Array<
|
571
|
+
# @return [Array<Jamf::ManagementHistory::ScreenSharingLog>] An array of ScreenSharingLog events
|
538
572
|
#
|
539
|
-
def screen_sharing_logs(ident, api:
|
540
|
-
|
541
|
-
|
542
|
-
|
573
|
+
def screen_sharing_logs(ident, api: nil, cnx: Jamf.cnx)
|
574
|
+
cnx = api if api
|
575
|
+
|
576
|
+
raise Jamf::UnsupportedError, 'Only computers have screen sharing logs' unless self == Jamf::Computer
|
577
|
+
hist = management_history(ident, :screen_sharing_logs, cnx: cnx)
|
578
|
+
hist.map! { |evt| Jamf::ManagementHistory::ScreenSharingLog.new evt }
|
543
579
|
end
|
544
580
|
|
545
581
|
# The history of policy execution for a computer
|
546
582
|
#
|
547
583
|
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
|
548
584
|
#
|
549
|
-
# @param
|
585
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
550
586
|
# defaults to the currently active connection
|
551
587
|
#
|
552
|
-
# @return [Array<
|
588
|
+
# @return [Array<Jamf::ManagementHistory::PolicyLog>] An array of PolicyLog events
|
553
589
|
#
|
554
|
-
def policy_logs(ident, api:
|
555
|
-
|
556
|
-
|
557
|
-
|
590
|
+
def policy_logs(ident, api: nil, cnx: Jamf.cnx)
|
591
|
+
cnx = api if api
|
592
|
+
|
593
|
+
raise Jamf::UnsupportedError, 'Only computers have policy logs' unless self == Jamf::Computer
|
594
|
+
hist = management_history(ident, :policy_logs, cnx: cnx)
|
595
|
+
hist.map! { |evt| Jamf::ManagementHistory::PolicyLog.new evt }
|
558
596
|
end
|
559
597
|
|
560
598
|
# The array from .policy_logs, limited to status = :completed
|
561
599
|
# @see ManagementHistory::ClassMethods.policy_logs
|
562
600
|
#
|
563
|
-
def completed_policies(ident, api:
|
564
|
-
|
601
|
+
def completed_policies(ident, api: nil, cnx: Jamf.cnx)
|
602
|
+
cnx = api if api
|
603
|
+
|
604
|
+
policy_logs(ident, cnx: cnx).select { |pl| pl.status == :completed }
|
565
605
|
end
|
566
606
|
|
567
607
|
# The array from .policy_logs, limited to status = :failed
|
568
608
|
# @see ManagementHistory::ClassMethods.policy_logs
|
569
609
|
#
|
570
|
-
def failed_policies(ident, api:
|
571
|
-
|
610
|
+
def failed_policies(ident, api: nil, cnx: Jamf.cnx)
|
611
|
+
cnx = api if api
|
612
|
+
|
613
|
+
policy_logs(ident, cnx: cnx).select { |pl| pl.status == :failed }
|
572
614
|
end
|
573
615
|
|
574
616
|
# The history of ebooks for a mobile device
|
@@ -577,17 +619,19 @@ module JSS
|
|
577
619
|
#
|
578
620
|
# @param status [Symbol] Return only the :installed, :pending, or :failed apps
|
579
621
|
#
|
580
|
-
# @param
|
622
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query
|
581
623
|
# defaults to the currently active connection
|
582
624
|
#
|
583
|
-
# @return [Array<
|
625
|
+
# @return [Array<Jamf::ManagementHistory::Ebook>] An array of Ebook
|
584
626
|
#
|
585
|
-
def ebook_history(ident, status = nil, api:
|
586
|
-
|
627
|
+
def ebook_history(ident, status = nil, api: nil, cnx: Jamf.cnx)
|
628
|
+
cnx = api if api
|
629
|
+
|
630
|
+
raise Jamf::UnsupportedError, 'Only mobile devices have ebooks' unless self == Jamf::MobileDevice
|
587
631
|
|
588
|
-
hist = management_history(ident, :ebooks,
|
632
|
+
hist = management_history(ident, :ebooks, cnx: cnx)
|
589
633
|
if status
|
590
|
-
raise
|
634
|
+
raise Jamf::InvalidDataError, 'status must be one of :installed, :pending, or :failed' unless HIST_APP_STATUSES.include? status
|
591
635
|
statuses_to_do = [status]
|
592
636
|
else
|
593
637
|
statuses_to_do = HIST_APP_STATUSES
|
@@ -620,7 +664,7 @@ module JSS
|
|
620
664
|
result += books.map! do |book|
|
621
665
|
# set the :status in the hash
|
622
666
|
book[:status] = a_status
|
623
|
-
|
667
|
+
Jamf::ManagementHistory::Ebook.new book
|
624
668
|
end # map do |books|
|
625
669
|
end # statuses_to_do.each do |a_status|
|
626
670
|
|
@@ -632,8 +676,10 @@ module JSS
|
|
632
676
|
#
|
633
677
|
# @see #ebook_history
|
634
678
|
#
|
635
|
-
def installed_ebooks(ident, api:
|
636
|
-
|
679
|
+
def installed_ebooks(ident, api: nil, cnx: Jamf.cnx)
|
680
|
+
cnx = api if api
|
681
|
+
|
682
|
+
ebook_history(ident, :installed, cnx: cnx)
|
637
683
|
end
|
638
684
|
alias installed_managed_ebooks installed_ebooks
|
639
685
|
|
@@ -641,8 +687,10 @@ module JSS
|
|
641
687
|
#
|
642
688
|
# @see #ebook_history
|
643
689
|
#
|
644
|
-
def pending_ebooks(ident, api:
|
645
|
-
|
690
|
+
def pending_ebooks(ident, api: nil, cnx: Jamf.cnx)
|
691
|
+
cnx = api if api
|
692
|
+
|
693
|
+
ebook_history(ident, :pending, cnx: cnx)
|
646
694
|
end
|
647
695
|
alias pending_managed_ebooks pending_ebooks
|
648
696
|
|
@@ -650,21 +698,23 @@ module JSS
|
|
650
698
|
#
|
651
699
|
# @see #ebook_history
|
652
700
|
#
|
653
|
-
def failed_ebooks(ident, api:
|
654
|
-
|
701
|
+
def failed_ebooks(ident, api: nil, cnx: Jamf.cnx)
|
702
|
+
cnx = api if api
|
703
|
+
|
704
|
+
ebook_history(ident, :failed, cnx: cnx)
|
655
705
|
end
|
656
706
|
alias failed_managed_ebooks failed_ebooks
|
657
707
|
|
658
708
|
end # module ClassMethods
|
659
709
|
|
660
710
|
# Extend ourself when included
|
661
|
-
# @see {
|
711
|
+
# @see {Jamf::ManagementHistory::ClassMethods}
|
662
712
|
#
|
663
713
|
# See https://codereview.stackexchange.com/questions/23637/mixin-both-instance-and-class-methods-in-ruby
|
664
714
|
# for discussion of this technique for mixing in both
|
665
715
|
# Class and Instance methods when including a module.
|
666
716
|
def self.included(klass)
|
667
|
-
klass.extend
|
717
|
+
klass.extend Jamf::ManagementHistory::ClassMethods
|
668
718
|
end
|
669
719
|
|
670
720
|
# Mixin Instance Methods
|
@@ -675,233 +725,220 @@ module JSS
|
|
675
725
|
|
676
726
|
# The raw management history data for this object
|
677
727
|
#
|
678
|
-
# @see the matching method in {
|
728
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
679
729
|
#
|
680
730
|
def management_history(subset = nil)
|
681
|
-
self.class.management_history(@id, subset,
|
731
|
+
self.class.management_history(@id, subset, cnx: @cnx)
|
682
732
|
end
|
683
733
|
alias history management_history
|
684
734
|
|
685
735
|
# The audit_history for this object
|
686
736
|
#
|
687
|
-
# @see the matching method in {
|
737
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
688
738
|
#
|
689
739
|
def audit_history
|
690
|
-
self.class.audit_history(@id,
|
740
|
+
self.class.audit_history(@id, cnx: @cnx)
|
691
741
|
end
|
692
742
|
alias audits audit_history
|
693
743
|
|
694
744
|
# The user_location_history for this object
|
695
745
|
#
|
696
|
-
# @see the matching method in {
|
746
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
697
747
|
#
|
698
748
|
def user_location_history
|
699
|
-
self.class.user_location_history(@id,
|
749
|
+
self.class.user_location_history(@id, cnx: @cnx)
|
700
750
|
end
|
701
751
|
|
702
752
|
# The mdm_command_history for this object
|
703
753
|
#
|
704
|
-
# @see the matching method in {
|
754
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
705
755
|
#
|
706
756
|
def mdm_command_history(status = nil)
|
707
|
-
self.class.mdm_command_history(@id, status,
|
757
|
+
self.class.mdm_command_history(@id, status, cnx: @cnx)
|
708
758
|
end
|
709
759
|
alias commands mdm_command_history
|
710
760
|
alias management_command_history mdm_command_history
|
711
761
|
|
712
762
|
# The completed_mdm_commands for this object
|
713
763
|
#
|
714
|
-
# @see the matching method in {
|
764
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
715
765
|
#
|
716
766
|
def completed_mdm_commands
|
717
|
-
self.class.completed_mdm_commands(@id,
|
767
|
+
self.class.completed_mdm_commands(@id, cnx: @cnx)
|
718
768
|
end # completed_mdm_commands
|
719
769
|
alias completed_commands completed_mdm_commands
|
720
770
|
|
721
771
|
# The time of the last completed mdm command for this object
|
722
772
|
#
|
723
|
-
# @see the matching method in {
|
773
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
724
774
|
#
|
725
775
|
def last_mdm_contact
|
726
|
-
self.class.last_mdm_contact(@id,
|
776
|
+
self.class.last_mdm_contact(@id, cnx: @cnx)
|
727
777
|
end # completed_mdm_commands
|
728
778
|
|
729
779
|
# The pending_mdm_commands for this object
|
730
780
|
#
|
731
|
-
# @see the matching method in {
|
781
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
732
782
|
#
|
733
783
|
def pending_mdm_commands
|
734
|
-
self.class.pending_mdm_commands(@id,
|
784
|
+
self.class.pending_mdm_commands(@id, cnx: @cnx)
|
735
785
|
end # completed_mdm_commands
|
736
786
|
alias pending_commands pending_mdm_commands
|
737
787
|
|
738
788
|
# The failed_mdm_commands for this object
|
739
789
|
#
|
740
|
-
# @see the matching method in {
|
790
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
741
791
|
#
|
742
792
|
def failed_mdm_commands
|
743
|
-
self.class.failed_mdm_commands(@id,
|
793
|
+
self.class.failed_mdm_commands(@id, cnx: @cnx)
|
744
794
|
end # completed_mdm_commands
|
745
795
|
alias failed_commands failed_mdm_commands
|
746
796
|
|
747
797
|
# The mac_app_store_app_history for this computer
|
748
798
|
#
|
749
|
-
# @see the matching method in {
|
799
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
750
800
|
#
|
751
801
|
def mac_app_store_app_history(status = nil)
|
752
|
-
self.class.mac_app_store_app_history(@id, status,
|
802
|
+
self.class.mac_app_store_app_history(@id, status, cnx: @cnx)
|
753
803
|
end
|
754
804
|
|
755
805
|
# The mobile_device_app_history for this mobile device
|
756
806
|
#
|
757
|
-
# @see the matching method in {
|
807
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
758
808
|
#
|
759
809
|
def mobile_device_app_history(status = nil)
|
760
|
-
self.class.mobile_device_app_history(@id, status,
|
810
|
+
self.class.mobile_device_app_history(@id, status, cnx: @cnx)
|
761
811
|
end
|
762
812
|
|
763
813
|
# Wrapper for app store history for both computers and mobile devices
|
764
814
|
#
|
765
|
-
# @see the matching method in {
|
815
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
766
816
|
#
|
767
817
|
def app_store_app_history(status = nil)
|
768
|
-
self.class.app_store_app_history(@id, status,
|
818
|
+
self.class.app_store_app_history(@id, status, cnx: @cnx)
|
769
819
|
end
|
770
820
|
alias managed_app_history app_store_app_history
|
771
821
|
|
772
822
|
# shortcut for app_store_app_history where status = :installed
|
773
823
|
#
|
774
|
-
# @see the matching method in {
|
824
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
775
825
|
#
|
776
826
|
def installed_app_store_apps
|
777
|
-
self.class.installed_app_store_apps(@id,
|
827
|
+
self.class.installed_app_store_apps(@id, cnx: @cnx)
|
778
828
|
end
|
779
829
|
alias installed_managed_apps installed_app_store_apps
|
780
830
|
|
781
831
|
# shortcut for app_store_app_history where status = :pending
|
782
832
|
#
|
783
|
-
# @see the matching method in {
|
833
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
784
834
|
#
|
785
835
|
def pending_app_store_apps
|
786
|
-
self.class.pending_app_store_apps(@id,
|
836
|
+
self.class.pending_app_store_apps(@id, cnx: @cnx)
|
787
837
|
end
|
788
838
|
alias pending_managed_apps pending_app_store_apps
|
789
839
|
|
790
840
|
# shortcut for app_store_app_history where status = :failed
|
791
841
|
#
|
792
|
-
# @see the matching method in {
|
842
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
793
843
|
#
|
794
844
|
def failed_app_store_apps
|
795
|
-
self.class.failed_app_store_apps(@id,
|
845
|
+
self.class.failed_app_store_apps(@id, cnx: @cnx)
|
796
846
|
end
|
797
847
|
alias failed_managed_apps failed_app_store_apps
|
798
848
|
|
799
849
|
# The casper_imaging_logs for this computer
|
800
850
|
#
|
801
|
-
# @see the matching method in {
|
851
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
802
852
|
#
|
803
853
|
def casper_imaging_logs
|
804
|
-
self.class.casper_imaging_logs(@id,
|
854
|
+
self.class.casper_imaging_logs(@id, cnx: @cnx)
|
805
855
|
end
|
806
856
|
|
807
857
|
# The casper_remote_logs for this computer
|
808
858
|
#
|
809
|
-
# @see the matching method in {
|
859
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
810
860
|
#
|
811
861
|
def casper_remote_logs
|
812
|
-
self.class.casper_remote_logs(@id,
|
862
|
+
self.class.casper_remote_logs(@id, cnx: @cnx)
|
813
863
|
end
|
814
864
|
|
815
865
|
# The computer_usage_logs for this computer
|
816
866
|
#
|
817
|
-
# @see the matching method in {
|
867
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
818
868
|
#
|
819
869
|
def computer_usage_logs
|
820
|
-
self.class.computer_usage_logs(@id,
|
870
|
+
self.class.computer_usage_logs(@id, cnx: @cnx)
|
821
871
|
end
|
822
872
|
alias usage_logs computer_usage_logs
|
823
873
|
|
824
874
|
# The screen_sharing_logs for this computer
|
825
875
|
#
|
826
|
-
# @see the matching method in {
|
876
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
827
877
|
#
|
828
878
|
def screen_sharing_logs
|
829
|
-
self.class.screen_sharing_logs(@id,
|
879
|
+
self.class.screen_sharing_logs(@id, cnx: @cnx)
|
830
880
|
end
|
831
881
|
|
832
882
|
# The policy_logs for this computer
|
833
883
|
#
|
834
|
-
# @see the matching method in {
|
884
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
835
885
|
#
|
836
886
|
def policy_logs
|
837
|
-
self.class.policy_logs(@id,
|
887
|
+
self.class.policy_logs(@id, cnx: @cnx)
|
838
888
|
end
|
839
889
|
|
840
890
|
# The array from .policy_logs, limited to status = :completed
|
841
891
|
#
|
842
|
-
# @see the matching method in {
|
892
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
843
893
|
#
|
844
894
|
def completed_policies
|
845
|
-
self.class.completed_policies(@id,
|
895
|
+
self.class.completed_policies(@id, cnx: @cnx)
|
846
896
|
end
|
847
897
|
|
848
898
|
# The array from .policy_logs, limited to status = :failed
|
849
899
|
#
|
850
|
-
# @see the matching method in {
|
900
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
851
901
|
#
|
852
902
|
def failed_policies
|
853
|
-
self.class.failed_policies(@id,
|
903
|
+
self.class.failed_policies(@id, cnx: @cnx)
|
854
904
|
end
|
855
905
|
|
856
906
|
# The ebook_history for this mobile device
|
857
907
|
#
|
858
|
-
# @see the matching method in {
|
908
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
859
909
|
#
|
860
910
|
def ebook_history(status = nil)
|
861
|
-
self.class.ebook_history(@id, status,
|
911
|
+
self.class.ebook_history(@id, status, cnx: @cnx)
|
862
912
|
end
|
863
913
|
alias managed_ebook_history ebook_history
|
864
914
|
|
865
915
|
# shortcut for ebook_history where status = :installed
|
866
916
|
#
|
867
|
-
# @see the matching method in {
|
917
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
868
918
|
#
|
869
919
|
def installed_ebooks
|
870
|
-
self.class.installed_ebooks(@id,
|
920
|
+
self.class.installed_ebooks(@id, cnx: @cnx)
|
871
921
|
end
|
872
922
|
alias installed_managed_ebooks installed_ebooks
|
873
923
|
|
874
924
|
# shortcut for ebook_history where status = :pending
|
875
925
|
#
|
876
|
-
# @see the matching method in {
|
926
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
877
927
|
#
|
878
928
|
def pending_ebooks
|
879
|
-
self.class.pending_ebooks(@id,
|
929
|
+
self.class.pending_ebooks(@id, cnx: @cnx)
|
880
930
|
end
|
881
931
|
alias pending_managed_ebooks pending_ebooks
|
882
932
|
|
883
933
|
# shortcut for ebook_history where status = :failed
|
884
934
|
#
|
885
|
-
# @see the matching method in {
|
935
|
+
# @see the matching method in {Jamf::ManagementHistory::ClassMethods}
|
886
936
|
#
|
887
937
|
def failed_ebooks
|
888
|
-
self.class.failed_ebooks(@id,
|
938
|
+
self.class.failed_ebooks(@id, cnx: @cnx)
|
889
939
|
end
|
890
940
|
alias failed_managed_ebooks failed_ebooks
|
891
941
|
|
892
942
|
end # module ManagementHistory
|
893
943
|
|
894
|
-
end # module
|
895
|
-
|
896
|
-
require 'jss/api_object/management_history/hashlike'
|
897
|
-
require 'jss/api_object/management_history/audit_event'
|
898
|
-
require 'jss/api_object/management_history/casper_imaging_log'
|
899
|
-
require 'jss/api_object/management_history/casper_remote_log'
|
900
|
-
require 'jss/api_object/management_history/computer_usage_log'
|
901
|
-
require 'jss/api_object/management_history/ebook'
|
902
|
-
require 'jss/api_object/management_history/mac_app_store_app'
|
903
|
-
require 'jss/api_object/management_history/mdm_command'
|
904
|
-
require 'jss/api_object/management_history/mobile_device_app'
|
905
|
-
require 'jss/api_object/management_history/policy_log'
|
906
|
-
require 'jss/api_object/management_history/screen_sharing_log'
|
907
|
-
require 'jss/api_object/management_history/user_location_change'
|
944
|
+
end # module Jamf
|