Module: Jamf
- Extended by:
- Connection::DefaultConnection, Utility
- Includes:
- Constants
- Defined in:
- lib/jamf.rb,
lib/jamf/client.rb,
lib/jamf/utility.rb,
lib/jamf/version.rb,
lib/jamf/composer.rb,
lib/jamf/validate.rb,
lib/jamf/constants.rb,
lib/jamf/base_class.rb,
lib/jamf/exceptions.rb,
lib/jamf/configuration.rb,
lib/jamf/db_connection.rb,
lib/jamf/oapi_validate.rb,
lib/jamf/api/connection.rb,
lib/jamf/client/jamf_binary.rb,
lib/jamf/client/jamf_helper.rb,
lib/jamf/api/connection/cache.rb,
lib/jamf/api/connection/token.rb,
lib/jamf/api/connection/connect.rb,
lib/jamf/api/connection/constants.rb,
lib/jamf/client/management_action.rb,
lib/jamf/api/connection/attributes.rb,
lib/jamf/api/jamf_pro/oapi_schemas.rb,
lib/jamf/api/classic/xml_workaround.rb,
lib/jamf/api/connection/classic_api.rb,
lib/jamf/api/classic/api_objects/mdm.rb,
lib/jamf/api/connection/jamf_pro_api.rb,
lib/jamf/api/classic/api_objects/icon.rb,
lib/jamf/api/classic/api_objects/site.rb,
lib/jamf/api/classic/api_objects/user.rb,
lib/jamf/api/jamf_pro/mixins/lockable.rb,
lib/jamf/api/jamf_pro/mixins/prestage.rb,
lib/jamf/api/jamf_pro/mixins/sortable.rb,
lib/jamf/api/classic/api_objects/ebook.rb,
lib/jamf/api/jamf_pro/mixins/filevault.rb,
lib/jamf/api/jamf_pro/mixins/immutable.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ids.rb,
lib/jamf/api/classic/api_objects/policy.rb,
lib/jamf/api/classic/api_objects/script.rb,
lib/jamf/api/classic/base_classes/group.rb,
lib/jamf/api/jamf_pro/mixins/change_log.rb,
lib/jamf/api/jamf_pro/mixins/filterable.rb,
lib/jamf/api/jamf_pro/oapi_schemas/site.rb,
lib/jamf/api/classic/api_objects/account.rb,
lib/jamf/api/classic/api_objects/ibeacon.rb,
lib/jamf/api/classic/api_objects/package.rb,
lib/jamf/api/classic/api_objects/printer.rb,
lib/jamf/api/classic/api_objects/sitable.rb,
lib/jamf/api/classic/api_objects/vppable.rb,
lib/jamf/api/jamf_pro/mixins/uncreatable.rb,
lib/jamf/api/jamf_pro/mixins/undeletable.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ebook.rb,
lib/jamf/api/jamf_pro/oapi_schemas/udids.rb,
lib/jamf/api/classic/api_objects/building.rb,
lib/jamf/api/classic/api_objects/category.rb,
lib/jamf/api/classic/api_objects/computer.rb,
lib/jamf/api/classic/api_objects/scopable.rb,
lib/jamf/api/classic/api_objects/web_hook.rb,
lib/jamf/api/jamf_pro/oapi_schemas/engage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/locale.rb,
lib/jamf/api/jamf_pro/oapi_schemas/script.rb,
lib/jamf/api/jamf_pro/other_classes/pager.rb,
lib/jamf/api/classic/api_objects/creatable.rb,
lib/jamf/api/classic/api_objects/dock_item.rb,
lib/jamf/api/classic/api_objects/locatable.rb,
lib/jamf/api/classic/api_objects/matchable.rb,
lib/jamf/api/classic/api_objects/updatable.rb,
lib/jamf/api/connection/default_connection.rb,
lib/jamf/api/connection/jamf_pro_api_error.rb,
lib/jamf/api/jamf_pro/api_objects/api_role.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account.rb,
lib/jamf/api/jamf_pro/oapi_schemas/country.rb,
lib/jamf/api/jamf_pro/oapi_schemas/package.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session.rb,
lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb,
lib/jamf/api/classic/api_objects/department.rb,
lib/jamf/api/classic/api_objects/extendable.rb,
lib/jamf/api/classic/api_objects/peripheral.rb,
lib/jamf/api/classic/api_objects/uploadable.rb,
lib/jamf/api/classic/api_objects/user_group.rb,
lib/jamf/api/jamf_pro/mixins/bulk_deletable.rb,
lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_path.rb,
lib/jamf/api/jamf_pro/oapi_schemas/building.rb,
lib/jamf/api/jamf_pro/oapi_schemas/category.rb,
lib/jamf/api/jamf_pro/oapi_schemas/markdown.rb,
lib/jamf/api/jamf_pro/oapi_schemas/web_link.rb,
lib/jamf/api/classic/api_objects/criteriable.rb,
lib/jamf/api/classic/api_objects/ldap_server.rb,
lib/jamf/api/classic/api_objects/patch_title.rb,
lib/jamf/api/classic/api_objects/purchasable.rb,
lib/jamf/api/classic/api_objects/vpp_account.rb,
lib/jamf/api/classic/base_classes/api_object.rb,
lib/jamf/api/jamf_pro/api_objects/api_client.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb,
lib/jamf/api/jamf_pro/oapi_schemas/csa_token.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dock_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/file_data.rb,
lib/jamf/api/jamf_pro/oapi_schemas/font_path.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user.rb,
lib/jamf/api/jamf_pro/oapi_schemas/signature.rb,
lib/jamf/api/jamf_pro/oapi_schemas/time_zone.rb,
lib/jamf/api/classic/api_objects/patch_policy.rb,
lib/jamf/api/jamf_pro/api_objects/jp_building.rb,
lib/jamf/api/jamf_pro/oapi_schemas/assignment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/attributes.rb,
lib/jamf/api/jamf_pro/oapi_schemas/auth_token.rb,
lib/jamf/api/jamf_pro/oapi_schemas/department.rb,
lib/jamf/api/jamf_pro/oapi_schemas/details_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_audit.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_group.rb,
lib/jamf/api/jamf_pro/oapi_schemas/network_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/parent_app.rb,
lib/jamf/api/jamf_pro/oapi_schemas/time_frame.rb,
lib/jamf/api/jamf_pro/other_classes/timestamp.rb,
lib/jamf/deprecations/deprecated_api_constant.rb,
lib/jamf/api/classic/api_objects/categorizable.rb,
lib/jamf/api/classic/api_objects/mobile_device.rb,
lib/jamf/api/classic/api_objects/self_servable.rb,
lib/jamf/api/classic/base_classes/patch_source.rb,
lib/jamf/api/jamf_pro/base_classes/oapi_object.rb,
lib/jamf/api/jamf_pro/oapi_schemas/create_path.rb,
lib/jamf/api/jamf_pro/oapi_schemas/credentials.rb,
lib/jamf/api/jamf_pro/oapi_schemas/day_of_week.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ebook_scope.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_server.rb,
lib/jamf/api/jamf_pro/oapi_schemas/location_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_device.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plugin_path.rb,
lib/jamf/api/jamf_pro/oapi_schemas/security_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/site_object.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_server.rb,
lib/jamf/api/jamf_pro/other_classes/ip_address.rb,
lib/jamf/api/classic/api_objects/computer_group.rb,
lib/jamf/api/classic/api_objects/netboot_server.rb,
lib/jamf/api/classic/api_objects/scopable/scope.rb,
lib/jamf/api/jamf_pro/oapi_schemas/auth_account.rb,
lib/jamf/api/jamf_pro/oapi_schemas/download_url.rb,
lib/jamf/api/jamf_pro/oapi_schemas/export_field.rb,
lib/jamf/api/jamf_pro/oapi_schemas/gsx_keystore.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_history.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/notification.rb,
lib/jamf/api/jamf_pro/oapi_schemas/reenrollment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore.rb,
lib/jamf/api/jamf_pro/oapi_schemas/static_group.rb,
lib/jamf/api/jamf_pro/oapi_schemas/update_tv_os.rb,
lib/jamf/api/classic/api_objects/mac_application.rb,
lib/jamf/api/classic/api_objects/network_segment.rb,
lib/jamf/api/classic/api_objects/peripheral_type.rb,
lib/jamf/api/jamf_pro/mixins/collection_resource.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb,
lib/jamf/api/jamf_pro/oapi_schemas/auth_token_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/authorization.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb,
lib/jamf/api/jamf_pro/oapi_schemas/country_codes.rb,
lib/jamf/api/jamf_pro/oapi_schemas/href_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/icon_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/initialize_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/language_code.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_audit_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/login_content.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_summary.rb,
lib/jamf/api/jamf_pro/oapi_schemas/purchasing_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/scheduler_job.rb,
lib/jamf/api/jamf_pro/oapi_schemas/tv_os_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/update_ios_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_mappings.rb,
lib/jamf/deprecations/deprecated_config_constant.rb,
lib/jamf/api/classic/base_classes/advanced_search.rb,
lib/jamf/api/jamf_pro/api_objects/api_integration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_mappings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cache_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_group.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dashboard_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/group_mappings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/gsx_connection.rb,
lib/jamf/api/jamf_pro/oapi_schemas/id_and_name_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/object_history.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policies.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope.rb,
lib/jamf/api/jamf_pro/oapi_schemas/safelisted_app.rb,
lib/jamf/api/jamf_pro/oapi_schemas/scheduler_jobs.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_server_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/startup_status.rb,
lib/jamf/api/classic/api_objects/directory_binding.rb,
lib/jamf/api/classic/api_objects/removable_macaddr.rb,
lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb,
lib/jamf/api/jamf_pro/oapi_schemas/activation_code.rb,
lib/jamf/api/jamf_pro/oapi_schemas/advanced_search.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_role_result.rb,
lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/certificate_key.rb,
lib/jamf/api/jamf_pro/oapi_schemas/change_password.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb,
lib/jamf/api/jamf_pro/oapi_schemas/current_account.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dashboard_setup.rb,
lib/jamf/api/jamf_pro/oapi_schemas/deployment_task.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dss_declaration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/file_attachment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/install_package.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jcds_properties.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_client_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/notification_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/onboarding_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_group_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_settings_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_settings_v2.rb,
lib/jamf/api/classic/api_objects/distribution_point.rb,
lib/jamf/api/classic/api_objects/management_history.rb,
lib/jamf/api/jamf_pro/api_objects/computer_prestage.rb,
lib/jamf/api/jamf_pro/api_objects/device_enrollment.rb,
lib/jamf/api/jamf_pro/mixins/computer_recovery_lock.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_role_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dss_declarations.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ebook_exclusions.rb,
lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_version.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_base.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/package_manifest.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_device_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/settings_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_server_test.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_metadata_url.rb,
lib/jamf/api/jamf_pro/oapi_schemas/teacher_features.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_test_search.rb,
lib/jamf/api/jamf_pro/oapi_schemas/venafi_ca_record.rb,
lib/jamf/api/classic/api_objects/computer_invitation.rb,
lib/jamf/api/classic/api_objects/mobile_device_group.rb,
lib/jamf/api/classic/api_objects/patch_title/version.rb,
lib/jamf/api/classic/api_objects/restricted_software.rb,
lib/jamf/api/jamf_pro/oapi_schemas/available_updates.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_location.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_overview.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb,
lib/jamf/api/jamf_pro/oapi_schemas/database_password.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ebook_limitations.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb,
lib/jamf/api/jamf_pro/oapi_schemas/export_parameters.rb,
lib/jamf/api/jamf_pro/oapi_schemas/group_test_search.rb,
lib/jamf/api/jamf_pro/oapi_schemas/gsx_test_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_protect_plan.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/login_content_put.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_state.rb,
lib/jamf/api/jamf_pro/oapi_schemas/notification_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_logs.rb,
lib/jamf/api/jamf_pro/oapi_schemas/policy_properties.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/scheduler_summary.rb,
lib/jamf/api/jamf_pro/oapi_schemas/scheduler_trigger.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_failover_data.rb,
lib/jamf/api/jamf_pro/oapi_schemas/static_user_group.rb,
lib/jamf/api/jamf_pro/other_classes/change_log_entry.rb,
lib/jamf/api/classic/api_objects/advanced_user_search.rb,
lib/jamf/api/classic/api_objects/criteriable/criteria.rb,
lib/jamf/api/classic/base_classes/extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/branding_image_url.rb,
lib/jamf/api/jamf_pro/oapi_schemas/certificate_record.rb,
lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb,
lib/jamf/api/jamf_pro/oapi_schemas/external_recipient.rb,
lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/file_transfer_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/internal_recipient.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_parse.rb,
lib/jamf/deprecations/deprecated_api_connection_class.rb,
lib/jamf/api/classic/api_objects/criteriable/criterion.rb,
lib/jamf/api/classic/api_objects/patch_external_source.rb,
lib/jamf/api/classic/api_objects/patch_internal_source.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_role_privileges.rb,
lib/jamf/api/jamf_pro/oapi_schemas/authentication_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/certificate_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dashboard_api_error.rb,
lib/jamf/api/jamf_pro/oapi_schemas/delete_user_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_server_url.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/membership_mappings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/memcached_endpoints.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_group.rb,
lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_detail.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependency.rb,
lib/jamf/api/jamf_pro/oapi_schemas/watch_os_details_v2.rb,
lib/jamf/api/classic/api_objects/directory_binding_type.rb,
lib/jamf/api/classic/api_objects/software_update_server.rb,
lib/jamf/api/classic/base_classes/configuration_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_request_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/available_os_updates.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/dashboard_setup_task.rb,
lib/jamf/api/jamf_pro/oapi_schemas/data_roaming_setting.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ebook_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/erase_device_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/log_out_user_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_device_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/policy_properties_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_history_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_sender_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/static_group_summary.rb,
lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_test_attributes.rb,
lib/jamf/api/jamf_pro/api_objects/mobile_device_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_analytics_setting.rb,
lib/jamf/api/jamf_pro/oapi_schemas/classic_ldap_mappings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/configuration_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/current_authorization.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_sso_config.rb,
lib/jamf/api/jamf_pro/oapi_schemas/gsx_connection_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_package_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_history_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_pending_rotation.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_general.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_network.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_section.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_summary_version.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependencies.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/recalculation_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/self_service_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/venafi_service_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/voice_roaming_setting.rb,
lib/jamf/api/classic/api_objects/advanced_computer_search.rb,
lib/jamf/api/classic/api_objects/management_history/ebook.rb,
lib/jamf/api/classic/api_objects/user_extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v4.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v5.rb,
lib/jamf/api/jamf_pro/oapi_schemas/application_attributes.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v4.rb,
lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_delete.rb,
lib/jamf/api/jamf_pro/oapi_schemas/history_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_hardware.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_security.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_list_view.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_retry.rb,
lib/jamf/api/jamf_pro/oapi_schemas/restart_device_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/scripts_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smart_search_criterion.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_basic_credentials.rb,
lib/jamf/api/classic/api_objects/mobile_device_application.rb,
lib/jamf/api/classic/api_objects/osx_configuration_profile.rb,
lib/jamf/api/jamf_pro/api_objects/inventory_preload_record.rb,
lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_integration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_general_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_inventory.rb,
lib/jamf/api/jamf_pro/oapi_schemas/packages_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_detail.rb,
lib/jamf/api/jamf_pro/oapi_schemas/plan_configuration_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/static_group_assignment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_settings_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_integration_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore_file.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computers_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enable_lost_mode_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_and_audits.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_request_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_purchasing.rb,
lib/jamf/api/jamf_pro/oapi_schemas/onboarding_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/onboarding_eligible_item.rb,
lib/jamf/api/jamf_pro/oapi_schemas/personal_hotspot_setting.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/shut_down_device_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_connection_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/software_update_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_settings_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_config_reinstall_code.rb,
lib/jamf/api/jamf_pro/oapi_schemas/application_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/categories_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb,
lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb,
lib/jamf/api/jamf_pro/oapi_schemas/jamf_application_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_response_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_settings_response_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_group_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ios_general.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_shared_user.rb,
lib/jamf/api/jamf_pro/oapi_schemas/o_auth_client_credentials.rb,
lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment.rb,
lib/jamf/api/jamf_pro/oapi_schemas/protect_settings_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_candidate_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/set_recovery_lock_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_with_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_preferences_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content.rb,
lib/jamf/api/classic/api_objects/computer_extension_attribute.rb,
lib/jamf/api/classic/api_objects/management_history/hash_like.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb,
lib/jamf/api/jamf_pro/oapi_schemas/departments_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_information_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_user_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage.rb,
lib/jamf/api/jamf_pro/oapi_schemas/renew_mdm_profile_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/smtp_graph_api_credentials.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location.rb,
lib/jamf/api/classic/api_objects/advanced_mobile_device_search.rb,
lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb,
lib/jamf/api/classic/api_objects/management_history/policy_log.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_error.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_and_audits_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ios_inventory.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_tv_os_general.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_report.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/self_service_login_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/shared_device_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/static_group_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_create.rb,
lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_locations.rb,
lib/jamf/api/classic/api_objects/management_history/audit_event.rb,
lib/jamf/api/classic/api_objects/management_history/mdm_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/configuration_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_list_mobile_device.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_audits_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_get_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_v2_on_dashboard.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/process_texts_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/protect_registration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_history_item_details.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/admitmac.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb,
lib/jamf/api/jamf_pro/oapi_schemas/api_integration_search_result.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_communication_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_compliance_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_body.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/diagnostic_submission_setting.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_request_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plans.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_tv_os_inventory.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_packages.rb,
lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/self_service_install_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb,
lib/jamf/api/jamf_pro/oapi_schemas/declarative_management_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/deployment_task_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_process_text_object.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_pending_rotation_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_user_password_response_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_watch_os_general.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_detail_action.rb,
lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_details_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_history_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content_list.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription.rb,
lib/jamf/api/classic/api_objects/mobile_device_extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/access_groups_v2_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_search_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_preview.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_account_management_history.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_password_audits_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_user_and_location.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_definition.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/set_auto_admin_password_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscriptions.rb,
lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_criteria_choices.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_statuses.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_lost_mode_location.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_watch_os_inventory.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_definitions.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_cert_parse_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_patch.rb,
lib/jamf/api/classic/api_objects/mobile_device_configuration_profile.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_update.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_update_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/self_service_interaction_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/session_history_item_with_details.rb,
lib/jamf/api/classic/api_objects/management_history/casper_remote_log.rb,
lib/jamf/api/classic/api_objects/management_history/mac_app_store_app.rb,
lib/jamf/api/classic/api_objects/management_history/mobile_device_app.rb,
lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration.rb,
lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/protect_updatable_settings_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response_with_details.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/open_directory.rb,
lib/jamf/api/classic/api_objects/management_history/casper_imaging_log.rb,
lib/jamf/api/classic/api_objects/management_history/computer_usage_log.rb,
lib/jamf/api/classic/api_objects/management_history/screen_sharing_log.rb,
lib/jamf/api/jamf_pro/oapi_schemas/clear_restrictions_password_command.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v3.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependency.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_list.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_text.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_provisioning_profiles.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_service_subscriptions.rb,
lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/verbose_package_deployment_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription_base.rb,
lib/jamf/api/jamf_pro/oapi_schemas/access_groups_preview_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/compliance_vendor_device_information.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook_inventory_detail.rb,
lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_list_view.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/active_directory.rb,
lib/jamf/api/classic/api_objects/management_history/user_location_change.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_pool_statistics.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependencies.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb,
lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_eligible_retry_count.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_invalid_csv_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_inventory_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb,
lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_update_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_sso_auth.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_text.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_group_post.rb,
lib/jamf/api/jamf_pro/oapi_schemas/onboarding_eligible_items_search_result.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_base.rb,
lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/shared_device_compliance_feature_toggle.rb,
lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_certificate_upload.rb,
lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_status_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_ldap_auth.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_success.rb,
lib/jamf/api/jamf_pro/oapi_schemas/laps_account_management_history_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_patch.rb,
lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_preferences.rb,
lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_extension_attributes.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_report_search_result.rb,
lib/jamf/api/jamf_pro/oapi_schemas/software_title_configuration_on_dashboard.rb,
lib/jamf/api/jamf_pro/oapi_schemas/cloud_distribution_point_upload_capability.rb,
lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_candidate_request.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_branding_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_ldap_group_access.rb,
lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status.rb,
lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application_inventory_detail.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/directory_binding_type.rb,
lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_sso_auth.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_list_mobile_device_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_ldap_auth.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error_cause.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_dependency.rb,
lib/jamf/api/jamf_pro/oapi_schemas/return_to_service_configuration_search_results.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_dependencies.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_user_interface_display_theme.rb,
lib/jamf/api/classic/api_objects/directory_binding_type/powerbroker_identity_services.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_recovery_lock_password_response.rb,
lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status_wrapper.rb,
lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column_result.rb,
lib/jamf/api/jamf_pro/oapi_schemas/account_driven_user_enrollment_session_token_settings.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_definition_kill_app.rb,
lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb,
lib/jamf/api/jamf_pro/oapi_schemas/patch_software_title_configuration_extension_attributes.rb
Overview
Licensed under the Apache License, Version 2.0 (the “Apache License”)
with the following modification; you may not use this file except in
compliance with the Apache License and the following modification to it:
Section 6. Trademarks. is deleted and replaced with:
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor
and its affiliates, except as required to comply with Section 4(c) of
the License and to reproduce the content of the NOTICE file.
You may obtain a copy of the Apache License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the Apache License with the above modification is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the Apache License for the specific
language governing permissions and limitations under the Apache License.
Defined Under Namespace
Modules: BaseClass, BulkDeletable, Categorizable, ChangeLog, CollectionResource, Composer, ComputerRecoveryLock, Constants, Creatable, Criteriable, DirectoryBindingType, Extendable, FileVault, Filterable, Immutable, JPAPIResource, Locatable, Lockable, MDM, MacOSManagedUpdates, MacOSRedeployMgmtFramework, ManagementHistory, Matchable, OAPISchemas, OAPIValidate, Prestage, Purchasable, Scopable, SelfServable, Sitable, Sortable, Uncreatable, Undeletable, Updatable, Uploadable, Utility, VPPable, Validate, XMLWorkaround Classes: APIClient, APIObject, APIRequestError, APIRole, Account, AdvancedComputerSearch, AdvancedMobileDeviceSearch, AdvancedSearch, AdvancedUserSearch, AlreadyExistsError, AmbiguousError, AuthenticationError, AuthorizationError, BadRequestError, Building, Category, ChangeLogEntry, Client, Computer, ComputerExtensionAttribute, ComputerGroup, ComputerInvitation, ComputerPrestage, Configuration, ConfigurationProfile, ConflictError, Connection, DBConnection, Department, DeviceEnrollment, DirectoryBinding, DiskEncryptionConfiguration, DistributionPoint, DockItem, Ebook, ExtensionAttribute, FileServiceError, Group, IBeacon, IPAddress, Icon, InvalidConnectionError, InvalidDataError, InventoryPreloadRecord, JpBuilding, LdapServer, MacApplication, MissingDataError, MobileDevice, MobileDeviceApplication, MobileDeviceConfigurationProfile, MobileDeviceExtensionAttribute, MobileDeviceGroup, MobileDevicePrestage, NetBootServer, NetworkSegment, NoSuchItemError, OAPIObject, OSXConfigurationProfile, Package, Pager, PatchExternalSource, PatchInternalSource, PatchPolicy, PatchSource, PatchTitle, Peripheral, PeripheralType, Policy, Printer, RemovableMacAddress, RestrictedSoftware, Script, Site, SoftwareUpdateServer, TimeoutError, Timestamp, UnmanagedError, UnsupportedError, User, UserExtensionAttribute, UserGroup, VPPAccount, WebHook
Constant Summary collapse
- VERSION =
The version of ruby-jss
'4.1.1'.freeze
- DB_CNX =
The single instance of the DBConnection
DBConnection.instance
- API =
Jamf.cnx
- CONFIG =
Jamf.config
- APIIntegration =
In the Jamf Pro Web UI, API Clients are called just that “API Clients”, so they are defined as the Jamf::APIClient class.
But in the Jamf Pro API, they are referred to as API Integrations, and their resource paths are ‘v1/api-integrations` So, this class is just an alias of APIClient
APIClient
- APIConnection =
Connection
Class Method Summary collapse
-
.api_object_class(name) ⇒ Class
extended
from Utility
Given a name, singular or plural, of a Jamf::APIObject subclass as a String or Symbol (e.g. :computer/‘computers’), return the class itself (e.g. Jamf::Computer) The available names are the RSRC_LIST_KEY and RSRC_OBJECT_KEY values for each APIObject subclass.
-
.api_object_names ⇒ Hash
extended
from Utility
APIObject subclasses have singular names, and are, of course capitalized, e.g.
-
.array_to_rexml_array(element, list) ⇒ Array<REXML::Element>
extended
from Utility
Given an element name and an array of content, generate an Array of REXML::Element objects with that name, and matching content.
-
.cnx ⇒ Jamf::Connection
(also: #api, #api_connection, #connection, #default_connection)
extended
from Connection::DefaultConnection
The current default Jamf::Connection instance.
-
.cnx=(connection) ⇒ APIConnection
(also: #use_connection, #use_api_connection, #use_api, #activate_connection)
extended
from Connection::DefaultConnection
Use the given Jamf::Connection object as the default connection, replacing the one that currently exists.
-
.config ⇒ Object
the single instance of our configuration object.
-
.connect(url = nil, **params) ⇒ String
(also: #login, #new_api_connection, #new_api, #new_cnx, #new_connection)
extended
from Connection::DefaultConnection
Create a new Connection object and use it as the default for all future API calls.
-
.db ⇒ Mysql
The mysql database available through the DBConnection.instance.
-
.devmode(setting) ⇒ Boolean
extended
from Utility
un/set devmode mode.
-
.devmode? ⇒ Boolean
extended
from Utility
is devmode currently on?.
-
.disconnect ⇒ Object
extended
from Connection::DefaultConnection
Disconnect the default connection.
-
.epoch_to_time(epoch) ⇒ Time?
extended
from Utility
Converts JSS epoch (unix epoch + milliseconds) to a Ruby Time object.
-
.escape_xml(string) ⇒ String
extended
from Utility
Given a string of xml element text, escape any characters that would make XML unhappy.
-
.expand_min_os(min_os) ⇒ Array
extended
from Utility
Converts an OS Version into an Array of equal or higher OS versions, up to some non-existant max, hopefully far in the future, currently 20.12.10.
-
.hash_to_rexml_array(hash) ⇒ Array<REXML::Element>
extended
from Utility
Given a simple Hash, convert it to an array of REXML Elements such that each key becomes an element, and its value becomes the text content of that element.
-
.humanize_secs(secs) ⇒ String
extended
from Utility
Very handy! lifted from stackoverflow.com/questions/4136248/how-to-generate-a-human-readable-time-range-using-ruby-on-rails.
-
.item_list_to_rexml_list(list_element, item_element, item_list, content = :name) ⇒ REXML::Element
extended
from Utility
Given an Array of Hashes with :id and/or :name keys, return a single REXML element with a sub-element for each item, each of which contains a :name or :id element.
-
.load_msg(msg) ⇒ Object
Use the load_msg method defined for Zeitwerk.
-
.logout ⇒ Object
extended
from Connection::DefaultConnection
Log out the default connection This not only disconnects the connection, but tells the server to invalidate the token that was used, meaning that token cannot be used elsewhere before its expiration time.
-
.os_ok?(requirement, os_to_check = nil) ⇒ Boolean
extended
from Utility
Scripts and packages can have OS limitations.
-
.parse_jss_version(version) ⇒ Hash{Symbol => String, Gem::Version}
extended
from Utility
Parse a JSS Version number into something comparable.
-
.parse_plist(plist, symbol_keys: false) ⇒ Object
extended
from Utility
Parse a plist into a Ruby data structure.
-
.parse_time(a_datetime) ⇒ Object
extended
from Utility
a wrapper around Time.parse that returns nil for nil, zero, and empty values.
-
.processor_ok?(requirement, processor = nil) ⇒ Boolean
extended
from Utility
Scripts and packages can have processor limitations.
-
.prompt_for_password(message) ⇒ String
extended
from Utility
Prompt for a password in a terminal.
-
.stdin(line = 0) ⇒ String?
extended
from Utility
Retrive one or all lines from whatever was piped to standard input.
-
.superuser? ⇒ Boolean
extended
from Utility
Is this code running as root?.
-
.to_s_and_a(somedata) ⇒ Hash{:stringform => String, :arrayform => Array}
extended
from Utility
Given a list of data as a comma-separated string, or an Array of strings, return a Hash with both versions.
-
.xml_plist_from(data) ⇒ String
extended
from Utility
Convert any ruby data to an XML plist.
Class Method Details
.api_object_class(name) ⇒ Class Originally defined in module Utility
Given a name, singular or plural, of a Jamf::APIObject subclass as a String or Symbol (e.g. :computer/‘computers’), return the class itself (e.g. Jamf::Computer) The available names are the RSRC_LIST_KEY and RSRC_OBJECT_KEY values for each APIObject subclass.
.api_object_names ⇒ Hash Originally defined in module Utility
APIObject subclasses have singular names, and are, of course capitalized, e.g. ‘Computer’ But we often want to refer to them in the plural, or lowercase, e.g. ‘computers’ This method returns a Hash of the RSRC_LIST_KEY (a plural symbol) and the RSRC_OBJECT_KEY (a singular symbol) of each APIObject subclass, keyed to the class itself, such that both :computer and :computers are keys for Jamf::Computer and both :policy and :policies are keys for Jamf::Policy, and so on.
.array_to_rexml_array(element, list) ⇒ Array<REXML::Element> Originally defined in module Utility
Given an element name and an array of content, generate an Array of REXML::Element objects with that name, and matching content. Given element name ‘foo’ and the array [‘bar’,‘morefoo’] The array of REXML elements would render thus:
<foo>bar</foo>
<foo>morefoo</foo>
.cnx ⇒ Jamf::Connection Also known as: api, api_connection, connection, default_connection Originally defined in module Connection::DefaultConnection
The current default Jamf::Connection instance.
.cnx=(connection) ⇒ APIConnection Also known as: use_connection, use_api_connection, use_api, activate_connection Originally defined in module Connection::DefaultConnection
Use the given Jamf::Connection object as the default connection, replacing the one that currently exists.
.config ⇒ Object
the single instance of our configuration object
73 74 75 |
# File 'lib/jamf.rb', line 73 def self.config Jamf::Configuration.instance end |
.connect(url = nil, **params) ⇒ String Also known as: login, new_api_connection, new_api, new_cnx, new_connection Originally defined in module Connection::DefaultConnection
Create a new Connection object and use it as the default for all future API calls. This will replace the existing default connection with a totally new one
.db ⇒ Mysql
Returns The mysql database available through the DBConnection.instance.
285 286 287 |
# File 'lib/jamf/db_connection.rb', line 285 def self.db DB_CNX.db end |
.devmode(setting) ⇒ Boolean Originally defined in module Utility
un/set devmode mode. Useful when coding - methods can call JSS.devmode? and then e.g. spit out something instead of performing some action.
.devmode? ⇒ Boolean Originally defined in module Utility
is devmode currently on?
.disconnect ⇒ Object Originally defined in module Connection::DefaultConnection
Disconnect the default connection
.epoch_to_time(epoch) ⇒ Time? Originally defined in module Utility
Converts JSS epoch (unix epoch + milliseconds) to a Ruby Time object
.escape_xml(string) ⇒ String Originally defined in module Utility
Given a string of xml element text, escape any characters that would make XML unhappy.
* & => &
* " => "
* < => <
* > => >
* ' => '
.expand_min_os(min_os) ⇒ Array Originally defined in module Utility
Converts an OS Version into an Array of equal or higher OS versions, up to some non-existant max, hopefully far in the future, currently 20.12.10
This array can then be joined with commas and used as the value of the os_requirements for Packages and Scripts.
It’s unlikely that this method, as written, will still be in use by the release of macOS 20.12.10, but currently thats the upper limit.
Hopefully well before then JAMF will implement a “minimum OS” in Jamf Pro itself, then we could avoid the inherant limitations in using a method like this.
When the highest maint. release of an OS version is not known, because its the currently released OS version or higher, then this method assumes ‘12’ e.g. ‘10.16.12’, ‘11.12’, ‘12.12’, etc.
Apple has never released more than 11 updates to a version of macOS (that being 10.4), so hopefully 12 is enough
Since Big Sur might report itself as either ‘10.16’ or ‘11.x.x’, this method will allow for both possibilities, and the array will contain whatever iterations needed for both version numbers
.hash_to_rexml_array(hash) ⇒ Array<REXML::Element> Originally defined in module Utility
Given a simple Hash, convert it to an array of REXML Elements such that each key becomes an element, and its value becomes the text content of that element
.humanize_secs(secs) ⇒ String Originally defined in module Utility
Very handy! lifted from stackoverflow.com/questions/4136248/how-to-generate-a-human-readable-time-range-using-ruby-on-rails
Turns the integer 834756398 into the string “26 years 23 weeks 1 day 12 hours 46 minutes 38 seconds”
.item_list_to_rexml_list(list_element, item_element, item_list, content = :name) ⇒ REXML::Element Originally defined in module Utility
Given an Array of Hashes with :id and/or :name keys, return a single REXML element with a sub-element for each item, each of which contains a :name or :id element.
e.g. :computers
e.g. :computer
.load_msg(msg) ⇒ Object
Use the load_msg method defined for Zeitwerk
68 69 70 |
# File 'lib/jamf.rb', line 68 def self.load_msg(msg) JamfZeitwerkConfig.load_msg msg end |
.logout ⇒ Object Originally defined in module Connection::DefaultConnection
Log out the default connection This not only disconnects the connection, but tells the server to invalidate the token that was used, meaning that token cannot be used elsewhere before its expiration time.
.os_ok?(requirement, os_to_check = nil) ⇒ Boolean Originally defined in module Utility
Scripts and packages can have OS limitations. This method tests a given OS, against a requirement list to see if the requirement is met.
.parse_jss_version(version) ⇒ Hash{Symbol => String, Gem::Version} Originally defined in module Utility
Parse a JSS Version number into something comparable.
This method returns a Hash with these keys:
-
:major => the major version, Integer
-
:minor => the minor version, Integor
-
:maint => the revision, Integer (also available as :patch and :revision)
-
:build => the revision, String
-
:version => a Gem::Version object built from :major, :minor, :revision which can be easily compared with other Gem::Version objects.
NOTE: the :version value ignores build numbers, so comparisons only compare major.minor.maint
.parse_plist(plist, symbol_keys: false) ⇒ Object Originally defined in module Utility
Parse a plist into a Ruby data structure. The plist parameter may be a String containing an XML plist, or a path to a plist file, or it may be a Pathname object pointing to a plist file. The plist files may be XML or binary.
.parse_time(a_datetime) ⇒ Object Originally defined in module Utility
a wrapper around Time.parse that returns nil for nil, zero, and empty values.
.processor_ok?(requirement, processor = nil) ⇒ Boolean Originally defined in module Utility
Scripts and packages can have processor limitations. This method tests a given processor, against a requirement to see if the requirement is met.
.prompt_for_password(message) ⇒ String Originally defined in module Utility
Prompt for a password in a terminal.
.stdin(line = 0) ⇒ String? Originally defined in module Utility
Retrive one or all lines from whatever was piped to standard input.
Standard input is read completely the first time this method is called and the lines are stored as an Array in the module var @stdin_lines
.superuser? ⇒ Boolean Originally defined in module Utility
Returns is this code running as root?.
.to_s_and_a(somedata) ⇒ Hash{:stringform => String, :arrayform => Array} Originally defined in module Utility
Given a list of data as a comma-separated string, or an Array of strings, return a Hash with both versions.
Some parts of the JSS require lists as comma-separated strings, while often those data are easier work with as arrays. This method is a handy way to get either form when given either form.
.xml_plist_from(data) ⇒ String Originally defined in module Utility
Convert any ruby data to an XML plist.
NOTE: Binary data is tricky. Easiest way is to pass in a Pathname or IO object (anything that responds to ‘read` and returns a bytestring) and then the CFPropertyList.guess method will read it and convert it to a Plist <data> element with base64 encoded data. For more info, see CFPropertyList.guess