ruby-jss 1.6.4 → 2.0.0b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGES.md +40 -4
- data/README-2.0.0.md +337 -0
- data/README.md +48 -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 +222 -120
- 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 +9 -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 +288 -167
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mobile_device.rb +63 -51
- 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 +121 -129
- 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 -21
- 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 +49 -47
- 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 +320 -280
- 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 +97 -78
- 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 +224 -0
- data/lib/jamf/api/connection/cache.rb +148 -0
- data/lib/jamf/api/connection/classic_api.rb +288 -0
- data/lib/jamf/api/connection/connect.rb +538 -0
- data/lib/jamf/api/connection/constants.rb +112 -0
- data/lib/jamf/api/connection/default_connection.rb +103 -0
- data/lib/jamf/api/connection/jamf_pro_api.rb +174 -0
- data/lib/jamf/api/connection/jamf_pro_api_error.rb +109 -0
- data/lib/jamf/api/connection/token.rb +295 -99
- data/lib/jamf/api/connection.rb +189 -818
- 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 +172 -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 +614 -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/macos_managed_updates.rb +168 -0
- 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 +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_v2_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_driven_user_enrollment_session_token_settings.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v4.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history.rb +160 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_summary.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/admin_account.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_criteria_choices.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/android_details.rb +162 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_analytics_setting.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_dynamics_config.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_path.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_settings.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/apple_tv_details.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_attributes.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_configuration.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/attributes.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token_v1.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/available_updates.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_process_status.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_request.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_request.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_update.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_mappings.rb +157 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_request.rb +145 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_update.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/branding_image_url.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cache_settings.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/categories_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/category.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_details.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v2.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_key.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_record.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/classic_ldap_mappings.rb +168 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v2.rb +164 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v3.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_request.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_response.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_pool_statistics.rb +170 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_status.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore_file.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_request.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_response.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_request.rb +151 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_response.rb +148 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_update.rb +148 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +151 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +372 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +143 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +230 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general_update.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_group.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware_update.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb +275 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_preferences.rb +165 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_settings.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_recovery_lock_password_response.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_update_request.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +189 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_location.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system_update.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_overview.rb +179 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +145 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v2.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +179 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computers_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_profile.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_candidate_request.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_response.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_status_response.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_update_request.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country_codes.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/create_path.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/csa_token.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_account.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_authorization.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/data_roaming_setting.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/database_password.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/day_of_week.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/delete_user_command.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/department.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/departments_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_communication_settings.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_compliance_information.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb +162 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_body.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage.rb +215 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb +234 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/diagnostic_submission_setting.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook.rb +152 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_exclusions.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_limitations.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_scope.rb +170 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enable_lost_mode_command.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/engage.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_preview.rb +141 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_v2.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_branding_settings.rb +111 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependencies.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependency.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_ldap_group_access.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_ldap_auth.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_list.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_sso_auth.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_text.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results_v2.rb +89 -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 +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_process_text_object.rb +346 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v2.rb +273 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_field.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_parameters.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute_v2.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/external_recipient.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_delete.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/filter.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/font_path.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v2.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_ldap_auth.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_sso_auth.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_text.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_mappings.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_request.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/href_response.rb +168 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/icon_response.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name_v2.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ids.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize_v1.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/install_package.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/integer_wrapper.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/internal_recipient.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_information.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_error.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error_cause.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_success.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column_result.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_invalid_csv_response.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record.rb +248 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb +263 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_configuration.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details.rb +255 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details_v2.rb +255 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_application_response.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_nation_credentials.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_package_response.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information_v2.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_server_url.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_version.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_protect_plan.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/language_code.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_request.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_response.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_update.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_server.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile.rb +126 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/locale.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_v2.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_configuration.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/markdown.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_client_type.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_request.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_state.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_type.rb +172 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_mappings.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_request.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_response.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/memcached_endpoints.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v1.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v2.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details.rb +235 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_get_v2.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_v2.rb +259 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute_results.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_group.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage.rb +136 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_params.rb +144 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_v2.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network_v2.rb +179 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification.rb +96 -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 +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/order_by.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/package_manifest.rb +148 -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 +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt_action.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_on_dashboard.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_summary.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_version.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/personal_hotspot_setting.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plugin_path.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties_v1.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v2.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependencies.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependency.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment_v2.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb +174 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +174 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_update.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status_v2.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/process_texts_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_registration_request.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_settings_response.rb +141 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_updatable_settings_request.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/provisioning_profile.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing_v2.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v2.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recalculation_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipient.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipients.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/reenrollment.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_response.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/renew_mdm_profile_response.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/restart_device_command.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/retry_patch_policy_params.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/safelisted_app.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/script.rb +192 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/scripts_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_active_patch_history_params.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_patch_policy_log_params.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security_v2.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_install_settings.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_interaction_settings.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_login_settings.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_settings.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_candidate_request.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_status.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/set_recovery_lock_command.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/settings_command.rb +167 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/shared_device_configuration.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/signature.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/site.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/smart_search_criterion.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_configuration.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_patch_policy_summaries.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_update_settings.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_cert_parse_response.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_details.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_parse.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response_with_details.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_with_details.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_metadata_url.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_settings.rb +240 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/startup_status.rb +185 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/static_user_group.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_certificate_upload.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_create.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_update.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_features.rb +105 -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 +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/time_zone.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/tv_os_details.rb +140 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/udids.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_apple_tv.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios_v2.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device_v2.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_tv_os.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_attributes.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_mappings.rb +193 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_request.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_response.rb +89 -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 +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_service_status.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/verbose_package_deployment_response.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/voice_roaming_setting.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_list_view.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_patch.rb +111 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_post.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_locations.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription_base.rb +127 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscriptions.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_admin_account.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_token_subscription.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/web_link.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas.rb +35 -0
- data/lib/jamf/api/jamf_pro/other_classes/change_log_entry.rb +37 -0
- 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 -99
- data/lib/jamf/client/jamf_helper.rb +274 -256
- data/lib/jamf/client/management_action.rb +84 -75
- 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 +23 -31
- data/lib/{jpapi.rb → jamf/deprecations/deprecated_api_constant.rb} +5 -4
- data/lib/{jss/ruby_extensions/string.rb → jamf/deprecations/deprecated_config_constant.rb} +4 -12
- 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-TEST.md +65 -0
- data/test/bin/runtests +97 -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 +388 -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/building.rb +41 -0
- data/test/tests/category.rb +41 -0
- data/test/tests/computer.rb +41 -0
- data/test/tests/computer_group.rb +132 -0
- data/test/tests/computer_prestage.rb +36 -0
- data/test/tests/department.rb +41 -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.rb +41 -0
- data/test/tests/mobile_device_prestage.rb +37 -0
- data/test/tests/policy.rb +151 -0
- metadata +654 -213
- data/lib/jamf/api/base_classes/collection_resource.rb +0 -612
- data/lib/jamf/api/base_classes/json_object.rb +0 -1103
- 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/README.md +0 -147
- 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
|
#####################################
|
|
@@ -76,6 +76,8 @@ module JSS
|
|
|
76
76
|
|
|
77
77
|
DELETE_USER = 'DeleteUser'.freeze
|
|
78
78
|
UNLOCK_USER_ACCOUNT = 'UnlockUserAccount'.freeze
|
|
79
|
+
ENABLE_REMOTE_DESKTOP = 'EnableRemoteDesktop'.freeze
|
|
80
|
+
DISABLE_REMOTE_DESKTOP = 'DisableRemoteDesktop'.freeze
|
|
79
81
|
|
|
80
82
|
# devices
|
|
81
83
|
|
|
@@ -116,7 +118,9 @@ module JSS
|
|
|
116
118
|
ERASE_DEVICE,
|
|
117
119
|
UNMANGE_DEVICE,
|
|
118
120
|
DELETE_USER,
|
|
119
|
-
UNLOCK_USER_ACCOUNT
|
|
121
|
+
UNLOCK_USER_ACCOUNT,
|
|
122
|
+
ENABLE_REMOTE_DESKTOP,
|
|
123
|
+
DISABLE_REMOTE_DESKTOP
|
|
120
124
|
].freeze
|
|
121
125
|
|
|
122
126
|
# The MDM commands applicable to all mobile devices
|
|
@@ -188,6 +192,9 @@ module JSS
|
|
|
188
192
|
|
|
189
193
|
delete_user: DELETE_USER,
|
|
190
194
|
|
|
195
|
+
enable_remote_desktop: ENABLE_REMOTE_DESKTOP,
|
|
196
|
+
disable_remote_desktop: DISABLE_REMOTE_DESKTOP,
|
|
197
|
+
|
|
191
198
|
# mobile devices only
|
|
192
199
|
settings: SETTINGS, # not yet implemented as its own method
|
|
193
200
|
|
|
@@ -240,8 +247,7 @@ module JSS
|
|
|
240
247
|
DEVICE_LOCK => :passcode, # 6 char passcode
|
|
241
248
|
ERASE_DEVICE => String, # 6 char passcode
|
|
242
249
|
DELETE_USER => String, # username
|
|
243
|
-
UNLOCK_USER_ACCOUNT => String
|
|
244
|
-
|
|
250
|
+
UNLOCK_USER_ACCOUNT => String # username
|
|
245
251
|
}.freeze
|
|
246
252
|
|
|
247
253
|
WALLPAPER_LOCATIONS = {
|
|
@@ -305,17 +311,17 @@ module JSS
|
|
|
305
311
|
#
|
|
306
312
|
# @example send a blank push to mobiledevice id 12 without instantiating:
|
|
307
313
|
#
|
|
308
|
-
#
|
|
314
|
+
# Jamf::MobileDevice.send_blank_push 12
|
|
309
315
|
#
|
|
310
316
|
# @example send a blank push to mobiledevice id 12 with instantiating:
|
|
311
317
|
#
|
|
312
|
-
# device =
|
|
318
|
+
# device = Jamf::MobileDevice.fetch id: 12
|
|
313
319
|
# device.send_blank_push
|
|
314
320
|
#
|
|
315
321
|
# @example send a blank push to computers in computer groups
|
|
316
322
|
# 'SpecialMacs' and 'FooBarGroup'
|
|
317
323
|
#
|
|
318
|
-
#
|
|
324
|
+
# Jamf::ComputerGroup.send_blank_push ['SpecialMacs', 'FooBarGroup']
|
|
319
325
|
#
|
|
320
326
|
# @param targets[String,Integer,Array<String,Integer>]
|
|
321
327
|
# the name or id of the device(s), or devicegroup(s) to receive the
|
|
@@ -329,8 +335,8 @@ module JSS
|
|
|
329
335
|
# @param opts[Hash] Some commands require extra data, e.g. a device name.
|
|
330
336
|
# Put it here
|
|
331
337
|
#
|
|
332
|
-
# @param
|
|
333
|
-
# currently active API, see {
|
|
338
|
+
# @param cnx [Jamf::Connection] the API connection to use. Defaults to the
|
|
339
|
+
# currently active API, see {Jamf::Connection}
|
|
334
340
|
#
|
|
335
341
|
# @return [Hash{Integer=>String}] Keys are the target device ids.
|
|
336
342
|
# Values depend on the kind of target:
|
|
@@ -344,12 +350,14 @@ module JSS
|
|
|
344
350
|
# always 'Command sent' (an error will be raised if there are problems
|
|
345
351
|
# sending)
|
|
346
352
|
#
|
|
347
|
-
def send_mdm_command(targets, command, opts: {}, api:
|
|
353
|
+
def send_mdm_command(targets, command, opts: {}, api: nil, cnx: Jamf.cnx)
|
|
354
|
+
cnx = api if api
|
|
355
|
+
|
|
348
356
|
command = validate_command(command)
|
|
349
357
|
|
|
350
358
|
rsrc = "#{send_command_rsrc}/command/#{command}"
|
|
351
359
|
|
|
352
|
-
targets = raw_targets_to_ids targets,
|
|
360
|
+
targets = raw_targets_to_ids targets, cnx: cnx
|
|
353
361
|
|
|
354
362
|
cmd_xml = mdm_command_xml(command, opts, targets)
|
|
355
363
|
|
|
@@ -359,7 +367,7 @@ module JSS
|
|
|
359
367
|
puts "\n\nTo rsrc: #{rsrc}"
|
|
360
368
|
end
|
|
361
369
|
|
|
362
|
-
result =
|
|
370
|
+
result = cnx.c_post rsrc, cmd_xml
|
|
363
371
|
|
|
364
372
|
if command == BLANK_PUSH
|
|
365
373
|
hash = {}
|
|
@@ -419,7 +427,7 @@ module JSS
|
|
|
419
427
|
when *DEVICE_TARGETS
|
|
420
428
|
DEVICE_RSRC
|
|
421
429
|
else
|
|
422
|
-
raise
|
|
430
|
+
raise Jamf::InvalidDataError, "Unknown MDM command target: #{self::MDM_COMMAND_TARGET}"
|
|
423
431
|
end
|
|
424
432
|
end
|
|
425
433
|
|
|
@@ -430,20 +438,23 @@ module JSS
|
|
|
430
438
|
#
|
|
431
439
|
# @param expand_groups[Boolean] Should groups be expanded into member ids?
|
|
432
440
|
#
|
|
433
|
-
# @param
|
|
441
|
+
# @param cnx [Jamf::Connection] an API connection to use.
|
|
434
442
|
#
|
|
435
443
|
# @return [Array<Integer>] The ids of the target devices for a command
|
|
436
444
|
#
|
|
437
|
-
def raw_targets_to_ids(targets, api:
|
|
445
|
+
def raw_targets_to_ids(targets, expand_groups: true, unmanaged_ok: false, api: nil, cnx: Jamf.cnx)
|
|
446
|
+
cnx = api if api
|
|
447
|
+
|
|
438
448
|
targets = targets.is_a?(Array) ? targets : [targets]
|
|
439
449
|
|
|
440
450
|
# flush caches before checking ids and managment
|
|
441
|
-
|
|
451
|
+
cnx.flushcache self::RSRC_LIST_KEY
|
|
442
452
|
|
|
443
453
|
# make sure its an array of ids
|
|
444
454
|
targets.map! do |md|
|
|
445
|
-
id = valid_id md,
|
|
446
|
-
raise
|
|
455
|
+
id = valid_id md, cnx: cnx
|
|
456
|
+
raise Jamf::NoSuchItemError, "No #{self} matches identifier: #{md}" unless id
|
|
457
|
+
|
|
447
458
|
id
|
|
448
459
|
end # map!
|
|
449
460
|
|
|
@@ -455,13 +466,17 @@ module JSS
|
|
|
455
466
|
end
|
|
456
467
|
|
|
457
468
|
# make sure all of them are managed, or else the API will raise a 400
|
|
458
|
-
# 'Bad Request' when sending the command to an unmanaged target
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
469
|
+
# 'Bad Request' when sending the command to an unmanaged target.
|
|
470
|
+
# Some actions, like flushing MDM commands (see .flush_mdm_commands)
|
|
471
|
+
# are OK on unmanaged machines, so they will specify 'unmanaged_ok'
|
|
472
|
+
unless unmanaged_ok
|
|
473
|
+
all_mgd = map_all_ids_to(:managed, cnx: cnx).select { |_id, mgd| mgd }.keys
|
|
474
|
+
|
|
475
|
+
targets.each do |target_id|
|
|
476
|
+
raise Jamf::UnmanagedError, "#{self} with id #{target_id} is not managed. Cannot send command." unless all_mgd.include? target_id
|
|
477
|
+
end
|
|
478
|
+
end # unles
|
|
479
|
+
|
|
465
480
|
targets
|
|
466
481
|
end
|
|
467
482
|
|
|
@@ -477,22 +492,22 @@ module JSS
|
|
|
477
492
|
# @return [String] The XML content to send to the API
|
|
478
493
|
#
|
|
479
494
|
def mdm_command_xml(command, options, targets)
|
|
480
|
-
raise
|
|
495
|
+
raise Jamf::MissingDataError, 'Targets cannot be empty' if targets.empty?
|
|
481
496
|
|
|
482
497
|
case self::MDM_COMMAND_TARGET
|
|
483
498
|
when *COMPUTER_TARGETS
|
|
484
499
|
command_elem = COMPUTER_COMMAND_ELEMENT
|
|
485
|
-
target_list_elem =
|
|
486
|
-
target_elem =
|
|
500
|
+
target_list_elem = Jamf::Computer::RSRC_LIST_KEY.to_s
|
|
501
|
+
target_elem = Jamf::Computer::RSRC_OBJECT_KEY.to_s
|
|
487
502
|
when *DEVICE_TARGETS
|
|
488
503
|
command_elem = DEVICE_COMMAND_ELEMENT
|
|
489
|
-
target_list_elem =
|
|
490
|
-
target_elem =
|
|
504
|
+
target_list_elem = Jamf::MobileDevice::RSRC_LIST_KEY.to_s
|
|
505
|
+
target_elem = Jamf::MobileDevice::RSRC_OBJECT_KEY.to_s
|
|
491
506
|
else
|
|
492
|
-
raise
|
|
507
|
+
raise Jamf::NoSuchItemError, "Unknonwn MDM command target: #{self::MDM_COMMAND_TARGET}"
|
|
493
508
|
end # case
|
|
494
509
|
|
|
495
|
-
xml = REXML::Document.new
|
|
510
|
+
xml = REXML::Document.new Jamf::Connection::XML_HEADER
|
|
496
511
|
cmd_xml = xml.add_element command_elem
|
|
497
512
|
|
|
498
513
|
general = cmd_xml.add_element GENERAL_ELEMENT
|
|
@@ -518,20 +533,22 @@ module JSS
|
|
|
518
533
|
# @return [String] the matching value for the command symbol given
|
|
519
534
|
#
|
|
520
535
|
def validate_command(command)
|
|
521
|
-
raise
|
|
536
|
+
raise Jamf::NoSuchItemError, "Unknown command '#{command}'" unless COMMANDS.keys.include? command
|
|
522
537
|
|
|
523
538
|
command = COMMANDS[command]
|
|
524
539
|
|
|
525
540
|
case self::MDM_COMMAND_TARGET
|
|
526
541
|
when *COMPUTER_TARGETS
|
|
527
542
|
return command if COMPUTER_COMMANDS.include? command
|
|
528
|
-
|
|
543
|
+
|
|
544
|
+
raise Jamf::UnsupportedError, "'#{command}' cannot be sent to computers or computer groups"
|
|
529
545
|
when *DEVICE_TARGETS
|
|
530
546
|
return command if DEVICE_COMMANDS.include? command
|
|
531
|
-
|
|
547
|
+
|
|
548
|
+
raise Jamf::UnsupportedError, "'#{command}' cannot be sent to mobile devices or mobile device groups"
|
|
532
549
|
end
|
|
533
550
|
|
|
534
|
-
raise
|
|
551
|
+
raise Jamf::NoSuchItemError, "'#{command}' is known, but not available for computers or mobile devices. This is a bug. Please report it."
|
|
535
552
|
end
|
|
536
553
|
|
|
537
554
|
###### The individual commands
|
|
@@ -545,12 +562,14 @@ module JSS
|
|
|
545
562
|
#
|
|
546
563
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
547
564
|
#
|
|
548
|
-
# @param
|
|
565
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
549
566
|
#
|
|
550
567
|
# @return (see .send_mdm_command)]
|
|
551
568
|
#
|
|
552
|
-
def blank_push(targets, api:
|
|
553
|
-
|
|
569
|
+
def blank_push(targets, api: nil, cnx: Jamf.cnx)
|
|
570
|
+
cnx = api if api
|
|
571
|
+
|
|
572
|
+
send_mdm_command targets, :blank_push, cnx: cnx
|
|
554
573
|
end
|
|
555
574
|
alias send_blank_push blank_push
|
|
556
575
|
alias noop blank_push
|
|
@@ -563,20 +582,23 @@ module JSS
|
|
|
563
582
|
#
|
|
564
583
|
# @param message[String] An optional message to display on mobiledevices & mobiledevicegroups
|
|
565
584
|
#
|
|
566
|
-
# @param
|
|
585
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
567
586
|
#
|
|
568
587
|
# @return (see .send_mdm_command)
|
|
569
588
|
#
|
|
570
|
-
def device_lock(targets, passcode: '', message: nil, api:
|
|
589
|
+
def device_lock(targets, passcode: '', message: nil, api: nil, cnx: Jamf.cnx)
|
|
590
|
+
cnx = api if api
|
|
591
|
+
|
|
571
592
|
case self::MDM_COMMAND_TARGET
|
|
572
593
|
when *COMPUTER_TARGETS
|
|
573
|
-
raise
|
|
594
|
+
raise Jamf::InvalidDataError, 'Locking computers requires a 6-character String passcode' unless passcode.size == 6
|
|
595
|
+
|
|
574
596
|
opts = { passcode: passcode }
|
|
575
597
|
when *DEVICE_TARGETS
|
|
576
598
|
opts = {}
|
|
577
599
|
opts[:lock_message] = message if message
|
|
578
600
|
end # case
|
|
579
|
-
send_mdm_command targets, :device_lock, opts: opts,
|
|
601
|
+
send_mdm_command targets, :device_lock, opts: opts, cnx: cnx
|
|
580
602
|
end
|
|
581
603
|
alias lock_device device_lock
|
|
582
604
|
alias lock device_lock
|
|
@@ -589,20 +611,23 @@ module JSS
|
|
|
589
611
|
#
|
|
590
612
|
# @param preserve_data_plan[Boolean] Should the data plan of the mobile device be preserved?
|
|
591
613
|
#
|
|
592
|
-
# @param
|
|
614
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
593
615
|
#
|
|
594
616
|
# @return (see .send_mdm_command)
|
|
595
617
|
#
|
|
596
|
-
def erase_device(targets, passcode: '', preserve_data_plan: false, api:
|
|
618
|
+
def erase_device(targets, passcode: '', preserve_data_plan: false, api: nil, cnx: Jamf.cnx)
|
|
619
|
+
cnx = api if api
|
|
620
|
+
|
|
597
621
|
case self::MDM_COMMAND_TARGET
|
|
598
622
|
when *COMPUTER_TARGETS
|
|
599
|
-
raise
|
|
623
|
+
raise Jamf::InvalidDataError, 'Erasing computers requires a 6-character String passcode' unless passcode.size == 6
|
|
624
|
+
|
|
600
625
|
opts = { passcode: passcode }
|
|
601
626
|
when *DEVICE_TARGETS
|
|
602
627
|
opts = {}
|
|
603
628
|
opts[:preserve_data_plan] = 'true' if preserve_data_plan
|
|
604
629
|
end # case
|
|
605
|
-
send_mdm_command targets, :erase_device, opts: opts,
|
|
630
|
+
send_mdm_command targets, :erase_device, opts: opts, cnx: cnx
|
|
606
631
|
end
|
|
607
632
|
alias wipe erase_device
|
|
608
633
|
alias wipe_device erase_device
|
|
@@ -614,16 +639,18 @@ module JSS
|
|
|
614
639
|
# NOTE: when used with computers, the mdm profile will probably
|
|
615
640
|
# be re-installed immediately unless the computer is also no longer
|
|
616
641
|
# managed by Jamf Pro itself. To fully unmanage a computer, use
|
|
617
|
-
# the {
|
|
642
|
+
# the {Jamf::Computer#make_unmanaged} instance method.
|
|
618
643
|
#
|
|
619
644
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
620
645
|
#
|
|
621
|
-
# @param
|
|
646
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
622
647
|
#
|
|
623
648
|
# @return (see .send_mdm_command)
|
|
624
649
|
#
|
|
625
|
-
def unmanage_device(targets, api:
|
|
626
|
-
|
|
650
|
+
def unmanage_device(targets, api: nil, cnx: Jamf.cnx)
|
|
651
|
+
cnx = api if api
|
|
652
|
+
|
|
653
|
+
send_mdm_command targets, :unmanage_device, cnx: cnx
|
|
627
654
|
end
|
|
628
655
|
alias remove_mdm_profile unmanage_device
|
|
629
656
|
|
|
@@ -636,12 +663,14 @@ module JSS
|
|
|
636
663
|
#
|
|
637
664
|
# @param user[String] the username of the acct to unlock
|
|
638
665
|
#
|
|
639
|
-
# @param
|
|
666
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
640
667
|
#
|
|
641
668
|
# @return (see .send_mdm_command)
|
|
642
669
|
#
|
|
643
|
-
def unlock_user_account(targets, user, api:
|
|
644
|
-
|
|
670
|
+
def unlock_user_account(targets, user, api: nil, cnx: Jamf.cnx)
|
|
671
|
+
cnx = api if api
|
|
672
|
+
|
|
673
|
+
send_mdm_command targets, :unlock_user_account, opts: { user_name: user }, cnx: cnx
|
|
645
674
|
end
|
|
646
675
|
|
|
647
676
|
# Send a delete_user command to one or more targets
|
|
@@ -650,12 +679,42 @@ module JSS
|
|
|
650
679
|
#
|
|
651
680
|
# @param user[String] the username of the acct to delete
|
|
652
681
|
#
|
|
653
|
-
# @param
|
|
682
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
654
683
|
#
|
|
655
684
|
# @return (see .send_mdm_command)
|
|
656
685
|
#
|
|
657
|
-
def delete_user(targets, user, api:
|
|
658
|
-
|
|
686
|
+
def delete_user(targets, user, api: nil, cnx: Jamf.cnx)
|
|
687
|
+
cnx = api if api
|
|
688
|
+
|
|
689
|
+
send_mdm_command targets, :delete_user, opts: { user_name: user }, cnx: cnx
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Send an enable_remote_desktop command to one or more targets
|
|
693
|
+
#
|
|
694
|
+
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
695
|
+
#
|
|
696
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
697
|
+
#
|
|
698
|
+
# @return (see .send_mdm_command)
|
|
699
|
+
#
|
|
700
|
+
def enable_remote_desktop(targets, api: nil, cnx: Jamf.cnx)
|
|
701
|
+
cnx = api if api
|
|
702
|
+
|
|
703
|
+
send_mdm_command targets, :enable_remote_desktop, cnx: cnx
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Send a disable_remote_desktop command to one or more targets
|
|
707
|
+
#
|
|
708
|
+
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
709
|
+
#
|
|
710
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
711
|
+
#
|
|
712
|
+
# @return (see .send_mdm_command)
|
|
713
|
+
#
|
|
714
|
+
def disable_remote_desktop(targets, api: nil, cnx: Jamf.cnx)
|
|
715
|
+
cnx = api if api
|
|
716
|
+
|
|
717
|
+
send_mdm_command targets, :disable_remote_desktop, cnx: cnx
|
|
659
718
|
end
|
|
660
719
|
|
|
661
720
|
# Commands for mobile devices only
|
|
@@ -665,12 +724,14 @@ module JSS
|
|
|
665
724
|
#
|
|
666
725
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
667
726
|
#
|
|
668
|
-
# @param
|
|
727
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
669
728
|
#
|
|
670
729
|
# @return (see .send_mdm_command)
|
|
671
730
|
#
|
|
672
|
-
def update_inventory(targets, api:
|
|
673
|
-
|
|
731
|
+
def update_inventory(targets, api: nil, cnx: Jamf.cnx)
|
|
732
|
+
cnx = api if api
|
|
733
|
+
|
|
734
|
+
send_mdm_command targets, :update_inventory, cnx: cnx
|
|
674
735
|
end
|
|
675
736
|
alias recon update_inventory
|
|
676
737
|
|
|
@@ -678,72 +739,84 @@ module JSS
|
|
|
678
739
|
#
|
|
679
740
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
680
741
|
#
|
|
681
|
-
# @param
|
|
742
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
682
743
|
#
|
|
683
744
|
# @return (see .send_mdm_command)
|
|
684
745
|
#
|
|
685
|
-
def clear_passcode(targets, api:
|
|
686
|
-
|
|
746
|
+
def clear_passcode(targets, api: nil, cnx: Jamf.cnx)
|
|
747
|
+
cnx = api if api
|
|
748
|
+
|
|
749
|
+
send_mdm_command targets, :clear_passcode, cnx: cnx
|
|
687
750
|
end
|
|
688
751
|
|
|
689
752
|
# Send an clear_restrictions_password command to one or more targets
|
|
690
753
|
#
|
|
691
754
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
692
755
|
#
|
|
693
|
-
# @param
|
|
756
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
694
757
|
#
|
|
695
758
|
# @return (see .send_mdm_command)
|
|
696
759
|
#
|
|
697
|
-
def clear_restrictions_password(targets, api:
|
|
698
|
-
|
|
760
|
+
def clear_restrictions_password(targets, api: nil, cnx: Jamf.cnx)
|
|
761
|
+
cnx = api if api
|
|
762
|
+
|
|
763
|
+
send_mdm_command targets, :clear_restrictions_password, cnx: cnx
|
|
699
764
|
end
|
|
700
765
|
|
|
701
766
|
# Send an enable_data_roaming command to one or more targets
|
|
702
767
|
#
|
|
703
768
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
704
769
|
#
|
|
705
|
-
# @param
|
|
770
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
706
771
|
#
|
|
707
772
|
# @return (see .send_mdm_command)
|
|
708
773
|
#
|
|
709
|
-
def enable_data_roaming(targets, api:
|
|
710
|
-
|
|
774
|
+
def enable_data_roaming(targets, api: nil, cnx: Jamf.cnx)
|
|
775
|
+
cnx = api if api
|
|
776
|
+
|
|
777
|
+
send_mdm_command targets, :enable_data_roaming, cnx: cnx
|
|
711
778
|
end
|
|
712
779
|
|
|
713
780
|
# Send andisable_data_roaming command to one or more targets
|
|
714
781
|
#
|
|
715
782
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
716
783
|
#
|
|
717
|
-
# @param
|
|
784
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
718
785
|
#
|
|
719
786
|
# @return (see .send_mdm_command)
|
|
720
787
|
#
|
|
721
|
-
def disable_data_roaming(targets, api:
|
|
722
|
-
|
|
788
|
+
def disable_data_roaming(targets, api: nil, cnx: Jamf.cnx)
|
|
789
|
+
cnx = api if api
|
|
790
|
+
|
|
791
|
+
send_mdm_command targets, :disable_data_roaming, cnx: cnx
|
|
723
792
|
end
|
|
724
793
|
|
|
725
794
|
# Send an enable_voice_roaming command to one or more targets
|
|
726
795
|
#
|
|
727
796
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
728
797
|
#
|
|
729
|
-
# @param
|
|
798
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
730
799
|
#
|
|
731
800
|
# @return (see .send_mdm_command)
|
|
732
801
|
#
|
|
733
|
-
def enable_voice_roaming(targets, api:
|
|
734
|
-
|
|
802
|
+
def enable_voice_roaming(targets, api: nil, cnx: Jamf.cnx)
|
|
803
|
+
cnx = api if api
|
|
804
|
+
|
|
805
|
+
send_mdm_command targets, :enable_voice_roaming, cnx: cnx
|
|
735
806
|
end
|
|
736
807
|
|
|
737
808
|
# Send a disable_voice_roaming command to one or more targets
|
|
738
809
|
#
|
|
739
810
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
740
811
|
#
|
|
741
|
-
# @param
|
|
812
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
742
813
|
#
|
|
743
814
|
# @return (see .send_mdm_command)
|
|
744
815
|
#
|
|
745
|
-
def disable_voice_roaming(targets, api:
|
|
746
|
-
|
|
816
|
+
def disable_voice_roaming(targets, api: nil, cnx: Jamf.cnx)
|
|
817
|
+
cnx = api if api
|
|
818
|
+
|
|
819
|
+
send_mdm_command targets, :disable_voice_roaming, cnx: cnx
|
|
747
820
|
end
|
|
748
821
|
|
|
749
822
|
# Commands for supervized mobile devices only
|
|
@@ -755,12 +828,14 @@ module JSS
|
|
|
755
828
|
#
|
|
756
829
|
# @param name[String] The new name
|
|
757
830
|
#
|
|
758
|
-
# @param
|
|
831
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
759
832
|
#
|
|
760
833
|
# @return (see .send_mdm_command)
|
|
761
834
|
#
|
|
762
|
-
def device_name(targets, name, api:
|
|
763
|
-
|
|
835
|
+
def device_name(targets, name, api: nil, cnx: Jamf.cnx)
|
|
836
|
+
cnx = api if api
|
|
837
|
+
|
|
838
|
+
send_mdm_command targets, :device_name, opts: { device_name: name }, cnx: cnx
|
|
764
839
|
end
|
|
765
840
|
alias set_name device_name
|
|
766
841
|
alias set_device_name device_name
|
|
@@ -777,18 +852,24 @@ module JSS
|
|
|
777
852
|
# @param wallpaper_id[Symbol] The id of an Icon in Jamf Pro to use as the wallpaper image,
|
|
778
853
|
# required if no wallpaper_content
|
|
779
854
|
#
|
|
780
|
-
# @param
|
|
855
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
781
856
|
#
|
|
782
857
|
# @return (see .send_mdm_command)
|
|
783
858
|
#
|
|
784
|
-
def wallpaper(targets, wallpaper_setting: nil, wallpaper_content: nil, wallpaper_id: nil, api:
|
|
785
|
-
|
|
859
|
+
def wallpaper(targets, wallpaper_setting: nil, wallpaper_content: nil, wallpaper_id: nil, api: nil, cnx: Jamf.cnx)
|
|
860
|
+
cnx = api if api
|
|
861
|
+
|
|
862
|
+
unless WALLPAPER_LOCATIONS.keys.include? wallpaper_setting
|
|
863
|
+
raise ArgumentError,
|
|
864
|
+
"wallpaper_setting must be one of: :#{WALLPAPER_LOCATIONS.keys.join ', :'}"
|
|
865
|
+
end
|
|
786
866
|
|
|
787
867
|
opts = { wallpaper_setting: WALLPAPER_LOCATIONS[wallpaper_setting] }
|
|
788
868
|
|
|
789
869
|
if wallpaper_content
|
|
790
870
|
file = Pathname.new wallpaper_content
|
|
791
|
-
raise
|
|
871
|
+
raise Jamf::NoSuchItemError, "Not a file: #{file}" unless file.file?
|
|
872
|
+
|
|
792
873
|
opts[:wallpaper_content] = Base64.encode64 file.read
|
|
793
874
|
elsif wallpaper_id
|
|
794
875
|
opts[:wallpaper_id] = wallpaper_id
|
|
@@ -796,7 +877,7 @@ module JSS
|
|
|
796
877
|
raise ArgumentError, 'Either wallpaper_id: or wallpaper_content must be provided'
|
|
797
878
|
end
|
|
798
879
|
|
|
799
|
-
send_mdm_command targets, :wallpaper, opts: opts,
|
|
880
|
+
send_mdm_command targets, :wallpaper, opts: opts, cnx: cnx
|
|
800
881
|
end
|
|
801
882
|
alias set_wallpaper wallpaper
|
|
802
883
|
|
|
@@ -806,24 +887,28 @@ module JSS
|
|
|
806
887
|
#
|
|
807
888
|
# @param secs[Integer] The numer of seconds for the grace period
|
|
808
889
|
#
|
|
809
|
-
# @param
|
|
890
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
810
891
|
#
|
|
811
892
|
# @return (see .send_mdm_command)
|
|
812
893
|
#
|
|
813
|
-
def passcode_lock_grace_period(targets, secs, api:
|
|
814
|
-
|
|
894
|
+
def passcode_lock_grace_period(targets, secs, api: nil, cnx: Jamf.cnx)
|
|
895
|
+
cnx = api if api
|
|
896
|
+
|
|
897
|
+
send_mdm_command targets, :passcode_lock_grace_period, opts: { passcode_lock_grace_period: secs }, cnx: cnx
|
|
815
898
|
end
|
|
816
899
|
|
|
817
900
|
# Send a shut_down_device command to one or more targets
|
|
818
901
|
#
|
|
819
902
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
820
903
|
#
|
|
821
|
-
# @param
|
|
904
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
822
905
|
#
|
|
823
906
|
# @return (see .send_mdm_command)
|
|
824
907
|
#
|
|
825
|
-
def shut_down_device(targets, api:
|
|
826
|
-
|
|
908
|
+
def shut_down_device(targets, api: nil, cnx: Jamf.cnx)
|
|
909
|
+
cnx = api if api
|
|
910
|
+
|
|
911
|
+
send_mdm_command targets, :shut_down_device, cnx: cnx
|
|
827
912
|
end
|
|
828
913
|
alias shutdown_device shut_down_device
|
|
829
914
|
alias shut_down shut_down_device
|
|
@@ -833,12 +918,14 @@ module JSS
|
|
|
833
918
|
#
|
|
834
919
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
835
920
|
#
|
|
836
|
-
# @param
|
|
921
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
837
922
|
#
|
|
838
923
|
# @return (see .send_mdm_command)
|
|
839
924
|
#
|
|
840
|
-
def restart_device(targets, api:
|
|
841
|
-
|
|
925
|
+
def restart_device(targets, api: nil, cnx: Jamf.cnx)
|
|
926
|
+
cnx = api if api
|
|
927
|
+
|
|
928
|
+
send_mdm_command targets, :restart_device, cnx: cnx
|
|
842
929
|
end
|
|
843
930
|
alias restart restart_device
|
|
844
931
|
|
|
@@ -846,48 +933,56 @@ module JSS
|
|
|
846
933
|
#
|
|
847
934
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
848
935
|
#
|
|
849
|
-
# @param
|
|
936
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
850
937
|
#
|
|
851
938
|
# @return (see .send_mdm_command)
|
|
852
939
|
#
|
|
853
|
-
def enable_app_analytics(targets, api:
|
|
854
|
-
|
|
940
|
+
def enable_app_analytics(targets, api: nil, cnx: Jamf.cnx)
|
|
941
|
+
cnx = api if api
|
|
942
|
+
|
|
943
|
+
send_mdm_command targets, :enable_app_analytics, cnx: cnx
|
|
855
944
|
end
|
|
856
945
|
|
|
857
946
|
# Send a disable_app_analytics command to one or more targets
|
|
858
947
|
#
|
|
859
948
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
860
949
|
#
|
|
861
|
-
# @param
|
|
950
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
862
951
|
#
|
|
863
952
|
# @return (see .send_mdm_command)
|
|
864
953
|
#
|
|
865
|
-
def disable_app_analytics(targets, api:
|
|
866
|
-
|
|
954
|
+
def disable_app_analytics(targets, api: nil, cnx: Jamf.cnx)
|
|
955
|
+
cnx = api if api
|
|
956
|
+
|
|
957
|
+
send_mdm_command targets, :disable_app_analytics, cnx: cnx
|
|
867
958
|
end
|
|
868
959
|
|
|
869
960
|
# Send an enable_diagnostic_submission command to one or more targets
|
|
870
961
|
#
|
|
871
962
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
872
963
|
#
|
|
873
|
-
# @param
|
|
964
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
874
965
|
#
|
|
875
966
|
# @return (see .send_mdm_command)
|
|
876
967
|
#
|
|
877
|
-
def enable_diagnostic_submission(targets, api:
|
|
878
|
-
|
|
968
|
+
def enable_diagnostic_submission(targets, api: nil, cnx: Jamf.cnx)
|
|
969
|
+
cnx = api if api
|
|
970
|
+
|
|
971
|
+
send_mdm_command targets, :enable_diagnostic_submission, cnx: cnx
|
|
879
972
|
end
|
|
880
973
|
|
|
881
974
|
# Send a disable_diagnostic_submission command to one or more targets
|
|
882
975
|
#
|
|
883
976
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
884
977
|
#
|
|
885
|
-
# @param
|
|
978
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
886
979
|
#
|
|
887
980
|
# @return (see .send_mdm_command)
|
|
888
981
|
#
|
|
889
|
-
def disable_diagnostic_submission(targets, api:
|
|
890
|
-
|
|
982
|
+
def disable_diagnostic_submission(targets, api: nil, cnx: Jamf.cnx)
|
|
983
|
+
cnx = api if api
|
|
984
|
+
|
|
985
|
+
send_mdm_command targets, :disable_diagnostic_submission, cnx: cnx
|
|
891
986
|
end
|
|
892
987
|
|
|
893
988
|
# Send a enable_lost_mode command to one or more targets
|
|
@@ -906,51 +1001,59 @@ module JSS
|
|
|
906
1001
|
#
|
|
907
1002
|
# @param enforce_lost_mode[Boolean] Re-enabled lost mode when re-enrolled after wipe.
|
|
908
1003
|
#
|
|
909
|
-
# @param
|
|
1004
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
910
1005
|
#
|
|
911
1006
|
# @return (see .send_mdm_command)
|
|
912
1007
|
#
|
|
913
1008
|
def enable_lost_mode(
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1009
|
+
targets,
|
|
1010
|
+
message: nil,
|
|
1011
|
+
phone: nil,
|
|
1012
|
+
footnote: nil,
|
|
1013
|
+
play_sound: false,
|
|
1014
|
+
enforce_lost_mode: true,
|
|
1015
|
+
api: nil,
|
|
1016
|
+
cnx: Jamf.cnx
|
|
921
1017
|
)
|
|
1018
|
+
cnx = api if api
|
|
1019
|
+
|
|
922
1020
|
raise ArgumentError, 'Either message: or phone_number: must be provided' unless message || phone
|
|
1021
|
+
|
|
923
1022
|
opts = { always_enforce_lost_mode: enforce_lost_mode }
|
|
924
1023
|
opts[:lost_mode_message] = message if message
|
|
925
1024
|
opts[:lost_mode_phone] = phone if phone
|
|
926
1025
|
opts[:lost_mode_footnote] = footnote if footnote
|
|
927
1026
|
opts[:lost_mode_with_sound] = 'true' if play_sound
|
|
928
1027
|
|
|
929
|
-
send_mdm_command targets, :enable_lost_mode, opts: opts,
|
|
1028
|
+
send_mdm_command targets, :enable_lost_mode, opts: opts, cnx: cnx
|
|
930
1029
|
end
|
|
931
1030
|
|
|
932
1031
|
# Send a play_lost_mode_sound command to one or more targets
|
|
933
1032
|
#
|
|
934
1033
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
935
1034
|
#
|
|
936
|
-
# @param
|
|
1035
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
937
1036
|
#
|
|
938
1037
|
# @return (see .send_mdm_command)
|
|
939
1038
|
#
|
|
940
|
-
def play_lost_mode_sound(targets, api:
|
|
941
|
-
|
|
1039
|
+
def play_lost_mode_sound(targets, api: nil, cnx: Jamf.cnx)
|
|
1040
|
+
cnx = api if api
|
|
1041
|
+
|
|
1042
|
+
send_mdm_command targets, :play_lost_mode_sound, cnx: cnx
|
|
942
1043
|
end
|
|
943
1044
|
|
|
944
1045
|
# Send a disable_lost_mode command to one or more targets
|
|
945
1046
|
#
|
|
946
1047
|
# @param targets[String,Integer,Array<String,Integer>] @see .send_mdm_command
|
|
947
1048
|
#
|
|
948
|
-
# @param
|
|
1049
|
+
# @param cnx [Jamf::Connection] the API thru which to send the command
|
|
949
1050
|
#
|
|
950
1051
|
# @return (see .send_mdm_command)
|
|
951
1052
|
#
|
|
952
|
-
def disable_lost_mode(targets, api:
|
|
953
|
-
|
|
1053
|
+
def disable_lost_mode(targets, api: nil, cnx: Jamf.cnx)
|
|
1054
|
+
cnx = api if api
|
|
1055
|
+
|
|
1056
|
+
send_mdm_command targets, :disable_lost_mode, cnx: cnx
|
|
954
1057
|
end
|
|
955
1058
|
|
|
956
1059
|
# Flushing Commands
|
|
@@ -964,19 +1067,23 @@ module JSS
|
|
|
964
1067
|
# of them. NOTE: when calling this on a Group class, the targets
|
|
965
1068
|
# are the groups themselves, not the individual members.
|
|
966
1069
|
#
|
|
967
|
-
# @param status[String] a key from {
|
|
1070
|
+
# @param status[String] a key from {Jamf::Commandable::FLUSHABLE_STATUSES}
|
|
968
1071
|
#
|
|
969
|
-
# @param
|
|
970
|
-
# Defaults to the corrently active API. See {
|
|
1072
|
+
# @param cnx [Jamf::Connection] an API connection to use.
|
|
1073
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
|
971
1074
|
#
|
|
972
1075
|
# @return [void]
|
|
973
1076
|
#
|
|
974
|
-
def flush_mdm_commands(targets, status: nil, api:
|
|
975
|
-
|
|
1077
|
+
def flush_mdm_commands(targets, status: nil, api: nil, cnx: Jamf.cnx)
|
|
1078
|
+
cnx = api if api
|
|
1079
|
+
|
|
1080
|
+
raise Jamf::InvalidDataError, "Status must be one of :#{FLUSHABLE_STATUSES.keys.join ', :'}" unless FLUSHABLE_STATUSES.keys.include? status
|
|
976
1081
|
|
|
977
1082
|
status = FLUSHABLE_STATUSES[status]
|
|
978
1083
|
|
|
979
|
-
|
|
1084
|
+
# TODO: add 'unmanaged_ok:' param to raw_targets_to_ids method, so that we can
|
|
1085
|
+
# use this to flush commands for unmanaged machines.
|
|
1086
|
+
target_ids = raw_targets_to_ids targets, cnx: cnx, expand_groups: false, unmanaged_ok: true
|
|
980
1087
|
|
|
981
1088
|
command_flush_rsrc = "commandflush/#{self::MDM_COMMAND_TARGET}/id"
|
|
982
1089
|
|
|
@@ -984,15 +1091,15 @@ module JSS
|
|
|
984
1091
|
|
|
985
1092
|
puts "Sending API DELETE: #{flush_rsrc}" if JSS.devmode?
|
|
986
1093
|
|
|
987
|
-
|
|
1094
|
+
cnx.c_delete flush_rsrc
|
|
988
1095
|
end
|
|
989
1096
|
|
|
990
1097
|
end # module ClassMethods
|
|
991
1098
|
|
|
992
1099
|
# Extend ourself when included
|
|
993
|
-
# @see {
|
|
1100
|
+
# @see {Jamf::MDM::ClassMethods}
|
|
994
1101
|
def self.included(klass)
|
|
995
|
-
klass.extend
|
|
1102
|
+
klass.extend Jamf::MDM::ClassMethods
|
|
996
1103
|
end
|
|
997
1104
|
|
|
998
1105
|
# Mixin Instance Methods
|
|
@@ -1009,7 +1116,7 @@ module JSS
|
|
|
1009
1116
|
# @return [void]
|
|
1010
1117
|
#
|
|
1011
1118
|
def blank_push
|
|
1012
|
-
self.class.send_blank_push @id,
|
|
1119
|
+
self.class.send_blank_push @id, cnx: @cnx
|
|
1013
1120
|
end
|
|
1014
1121
|
alias send_blank_push blank_push
|
|
1015
1122
|
alias noop blank_push
|
|
@@ -1022,7 +1129,7 @@ module JSS
|
|
|
1022
1129
|
# @return (see .send_mdm_command)
|
|
1023
1130
|
#
|
|
1024
1131
|
def device_lock(passcode_or_message = '')
|
|
1025
|
-
self.class.device_lock @id, passcode: passcode_or_message, message: passcode_or_message,
|
|
1132
|
+
self.class.device_lock @id, passcode: passcode_or_message, message: passcode_or_message, cnx: @cnx
|
|
1026
1133
|
end
|
|
1027
1134
|
alias lock device_lock
|
|
1028
1135
|
alias lock_device device_lock
|
|
@@ -1034,7 +1141,7 @@ module JSS
|
|
|
1034
1141
|
# @return (see .send_mdm_command)
|
|
1035
1142
|
#
|
|
1036
1143
|
def erase_device(passcode = '', preserve_data_plan: false)
|
|
1037
|
-
self.class.erase_device @id, passcode: passcode, preserve_data_plan: preserve_data_plan,
|
|
1144
|
+
self.class.erase_device @id, passcode: passcode, preserve_data_plan: preserve_data_plan, cnx: @cnx
|
|
1038
1145
|
end
|
|
1039
1146
|
alias wipe_device erase_device
|
|
1040
1147
|
alias wipe_computer erase_device
|
|
@@ -1046,12 +1153,12 @@ module JSS
|
|
|
1046
1153
|
# NOTE: when used with computers, the mdm profile will probably
|
|
1047
1154
|
# be re-installed immediately unless the computer is also no longer
|
|
1048
1155
|
# managed by Jamf Pro itself. To fully unmanage a computer, use
|
|
1049
|
-
# the {
|
|
1156
|
+
# the {Jamf::Computer#make_unmanaged} instance method.
|
|
1050
1157
|
#
|
|
1051
1158
|
# @return (see .send_mdm_command)
|
|
1052
1159
|
#
|
|
1053
1160
|
def unmanage_device
|
|
1054
|
-
self.class.unmanage_device @id,
|
|
1161
|
+
self.class.unmanage_device @id, cnx: @cnx
|
|
1055
1162
|
end
|
|
1056
1163
|
alias remove_mdm_profile unmanage_device
|
|
1057
1164
|
|
|
@@ -1065,7 +1172,7 @@ module JSS
|
|
|
1065
1172
|
# @return (see .send_mdm_command)
|
|
1066
1173
|
#
|
|
1067
1174
|
def unlock_user_account(user)
|
|
1068
|
-
self.class.unlock_user_account @id, user,
|
|
1175
|
+
self.class.unlock_user_account @id, user, cnx: @cnx
|
|
1069
1176
|
end
|
|
1070
1177
|
|
|
1071
1178
|
# Send a delete_user command to this computer or group
|
|
@@ -1075,7 +1182,23 @@ module JSS
|
|
|
1075
1182
|
# @return (see .send_mdm_command)
|
|
1076
1183
|
#
|
|
1077
1184
|
def delete_user(user)
|
|
1078
|
-
self.class.delete_user @id, user,
|
|
1185
|
+
self.class.delete_user @id, user, cnx: @cnx
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
# Send an enable_remote_desktop command to this computer or group
|
|
1189
|
+
#
|
|
1190
|
+
# @return (see .send_mdm_command)
|
|
1191
|
+
#
|
|
1192
|
+
def enable_remote_desktop
|
|
1193
|
+
self.class.enable_remote_desktop @id, cnx: @cnx
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
# Send a disable_remote_desktop command to this computer or group
|
|
1197
|
+
#
|
|
1198
|
+
# @return (see .send_mdm_command)
|
|
1199
|
+
#
|
|
1200
|
+
def disable_remote_desktop
|
|
1201
|
+
self.class.disable_remote_desktop @id, cnx: @cnx
|
|
1079
1202
|
end
|
|
1080
1203
|
|
|
1081
1204
|
# Commands for mobile devices only
|
|
@@ -1088,7 +1211,7 @@ module JSS
|
|
|
1088
1211
|
# @return (see .send_mdm_command)
|
|
1089
1212
|
#
|
|
1090
1213
|
def update_inventory
|
|
1091
|
-
self.class.update_inventory @id,
|
|
1214
|
+
self.class.update_inventory @id, cnx: @cnx
|
|
1092
1215
|
end
|
|
1093
1216
|
alias recon update_inventory
|
|
1094
1217
|
|
|
@@ -1097,7 +1220,7 @@ module JSS
|
|
|
1097
1220
|
# @return (see .send_mdm_command)
|
|
1098
1221
|
#
|
|
1099
1222
|
def clear_passcode
|
|
1100
|
-
self.class.clear_passcode @id,
|
|
1223
|
+
self.class.clear_passcode @id, cnx: @cnx
|
|
1101
1224
|
end
|
|
1102
1225
|
|
|
1103
1226
|
# Send an clear_restrictions_password command to this object
|
|
@@ -1105,7 +1228,7 @@ module JSS
|
|
|
1105
1228
|
# @return (see .send_mdm_command)
|
|
1106
1229
|
#
|
|
1107
1230
|
def clear_restrictions_password
|
|
1108
|
-
self.class.clear_restrictions_password @id,
|
|
1231
|
+
self.class.clear_restrictions_password @id, cnx: @cnx
|
|
1109
1232
|
end
|
|
1110
1233
|
|
|
1111
1234
|
# Send an enable_data_roaming command to this object
|
|
@@ -1113,7 +1236,7 @@ module JSS
|
|
|
1113
1236
|
# @return (see .send_mdm_command)
|
|
1114
1237
|
#
|
|
1115
1238
|
def enable_data_roaming
|
|
1116
|
-
self.class.enable_data_roaming @id,
|
|
1239
|
+
self.class.enable_data_roaming @id, cnx: @cnx
|
|
1117
1240
|
end
|
|
1118
1241
|
|
|
1119
1242
|
# Send a disable_data_roaming command to this object
|
|
@@ -1121,7 +1244,7 @@ module JSS
|
|
|
1121
1244
|
# @return (see .send_mdm_command)
|
|
1122
1245
|
#
|
|
1123
1246
|
def disable_data_roaming
|
|
1124
|
-
self.class.disable_data_roaming @id,
|
|
1247
|
+
self.class.disable_data_roaming @id, cnx: @cnx
|
|
1125
1248
|
end
|
|
1126
1249
|
|
|
1127
1250
|
# Send an enable_voice_roaming command to this object
|
|
@@ -1129,7 +1252,7 @@ module JSS
|
|
|
1129
1252
|
# @return (see .send_mdm_command)
|
|
1130
1253
|
#
|
|
1131
1254
|
def enable_voice_roaming
|
|
1132
|
-
self.class.enable_voice_roaming @id,
|
|
1255
|
+
self.class.enable_voice_roaming @id, cnx: @cnx
|
|
1133
1256
|
end
|
|
1134
1257
|
|
|
1135
1258
|
# Send a disable_voice_roaming command to this object
|
|
@@ -1137,7 +1260,7 @@ module JSS
|
|
|
1137
1260
|
# @return (see .send_mdm_command)
|
|
1138
1261
|
#
|
|
1139
1262
|
def disable_voice_roaming
|
|
1140
|
-
self.class.disable_voice_roaming @id,
|
|
1263
|
+
self.class.disable_voice_roaming @id, cnx: @cnx
|
|
1141
1264
|
end
|
|
1142
1265
|
|
|
1143
1266
|
# Commands for supervized mobile devices only
|
|
@@ -1154,7 +1277,7 @@ module JSS
|
|
|
1154
1277
|
# @return (see .send_mdm_command)
|
|
1155
1278
|
#
|
|
1156
1279
|
def device_name(name)
|
|
1157
|
-
self.class.device_name @id, name,
|
|
1280
|
+
self.class.device_name @id, name, cnx: @cnx
|
|
1158
1281
|
end
|
|
1159
1282
|
alias set_name device_name
|
|
1160
1283
|
alias set_device_name device_name
|
|
@@ -1176,8 +1299,7 @@ module JSS
|
|
|
1176
1299
|
@id,
|
|
1177
1300
|
wallpaper_setting: wallpaper_setting,
|
|
1178
1301
|
wallpaper_content: wallpaper_content,
|
|
1179
|
-
wallpaper_id: wallpaper_id,
|
|
1180
|
-
api: @api
|
|
1302
|
+
wallpaper_id: wallpaper_id, cnx: @cnx
|
|
1181
1303
|
)
|
|
1182
1304
|
end
|
|
1183
1305
|
alias set_wallpaper wallpaper
|
|
@@ -1189,7 +1311,7 @@ module JSS
|
|
|
1189
1311
|
# @return (see .send_mdm_command)
|
|
1190
1312
|
#
|
|
1191
1313
|
def passcode_lock_grace_period(secs)
|
|
1192
|
-
self.class.passcode_lock_grace_period @id, secs,
|
|
1314
|
+
self.class.passcode_lock_grace_period @id, secs, cnx: @cnx
|
|
1193
1315
|
end
|
|
1194
1316
|
|
|
1195
1317
|
# Send a shut_down_device command to this object
|
|
@@ -1197,7 +1319,7 @@ module JSS
|
|
|
1197
1319
|
# @return (see .send_mdm_command)
|
|
1198
1320
|
#
|
|
1199
1321
|
def shut_down_device
|
|
1200
|
-
self.class.shut_down_device @id,
|
|
1322
|
+
self.class.shut_down_device @id, cnx: @cnx
|
|
1201
1323
|
end
|
|
1202
1324
|
alias shutdown_device shut_down_device
|
|
1203
1325
|
alias shut_down shut_down_device
|
|
@@ -1208,7 +1330,7 @@ module JSS
|
|
|
1208
1330
|
# @return (see .send_mdm_command)
|
|
1209
1331
|
#
|
|
1210
1332
|
def restart_device
|
|
1211
|
-
self.class.restart_device @id,
|
|
1333
|
+
self.class.restart_device @id, cnx: @cnx
|
|
1212
1334
|
end
|
|
1213
1335
|
alias restart restart_device
|
|
1214
1336
|
|
|
@@ -1217,7 +1339,7 @@ module JSS
|
|
|
1217
1339
|
# @return (see .send_mdm_command)
|
|
1218
1340
|
#
|
|
1219
1341
|
def enable_app_analytics
|
|
1220
|
-
self.class.enable_app_analytics @id,
|
|
1342
|
+
self.class.enable_app_analytics @id, cnx: @cnx
|
|
1221
1343
|
end
|
|
1222
1344
|
|
|
1223
1345
|
# Send a disable_app_analytics command to this object
|
|
@@ -1225,7 +1347,7 @@ module JSS
|
|
|
1225
1347
|
# @return (see .send_mdm_command)
|
|
1226
1348
|
#
|
|
1227
1349
|
def disable_app_analytics
|
|
1228
|
-
self.class.disable_app_analytics @id,
|
|
1350
|
+
self.class.disable_app_analytics @id, cnx: @cnx
|
|
1229
1351
|
end
|
|
1230
1352
|
|
|
1231
1353
|
# Send an enable_diagnostic_submission command to this object
|
|
@@ -1233,7 +1355,7 @@ module JSS
|
|
|
1233
1355
|
# @return (see .send_mdm_command)
|
|
1234
1356
|
#
|
|
1235
1357
|
def enable_diagnostic_submission
|
|
1236
|
-
self.class.enable_diagnostic_submission @id,
|
|
1358
|
+
self.class.enable_diagnostic_submission @id, cnx: @cnx
|
|
1237
1359
|
end
|
|
1238
1360
|
|
|
1239
1361
|
# Send a disable_diagnostic_submission command to this object
|
|
@@ -1241,7 +1363,7 @@ module JSS
|
|
|
1241
1363
|
# @return (see .send_mdm_command)
|
|
1242
1364
|
#
|
|
1243
1365
|
def disable_diagnostic_submission
|
|
1244
|
-
self.class.disable_diagnostic_submission @id,
|
|
1366
|
+
self.class.disable_diagnostic_submission @id, cnx: @cnx
|
|
1245
1367
|
end
|
|
1246
1368
|
|
|
1247
1369
|
# Send a enable_lost_mode command to one or more targets
|
|
@@ -1261,11 +1383,11 @@ module JSS
|
|
|
1261
1383
|
# @return (see .send_mdm_command)
|
|
1262
1384
|
#
|
|
1263
1385
|
def enable_lost_mode(
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1386
|
+
message: nil,
|
|
1387
|
+
phone_number: nil,
|
|
1388
|
+
footnote: nil,
|
|
1389
|
+
enforce_lost_mode: true,
|
|
1390
|
+
play_sound: false
|
|
1269
1391
|
)
|
|
1270
1392
|
self.class.enable_lost_mode(
|
|
1271
1393
|
@id,
|
|
@@ -1273,8 +1395,7 @@ module JSS
|
|
|
1273
1395
|
phone_number: phone_number,
|
|
1274
1396
|
footnote: footnote,
|
|
1275
1397
|
play_sound: play_sound,
|
|
1276
|
-
enforce_lost_mode: enforce_lost_mode,
|
|
1277
|
-
api: @api
|
|
1398
|
+
enforce_lost_mode: enforce_lost_mode, cnx: @cnx
|
|
1278
1399
|
)
|
|
1279
1400
|
end
|
|
1280
1401
|
|
|
@@ -1283,7 +1404,7 @@ module JSS
|
|
|
1283
1404
|
# @return (see .send_mdm_command)
|
|
1284
1405
|
#
|
|
1285
1406
|
def play_lost_mode_sound
|
|
1286
|
-
self.class.play_lost_mode_sound @id,
|
|
1407
|
+
self.class.play_lost_mode_sound @id, cnx: @cnx
|
|
1287
1408
|
end
|
|
1288
1409
|
|
|
1289
1410
|
# Send a disable_lost_mode command to this object
|
|
@@ -1291,7 +1412,7 @@ module JSS
|
|
|
1291
1412
|
# @return (see .send_mdm_command)
|
|
1292
1413
|
#
|
|
1293
1414
|
def disable_lost_mode
|
|
1294
|
-
self.class.disable_lost_mode @id,
|
|
1415
|
+
self.class.disable_lost_mode @id, cnx: @cnx
|
|
1295
1416
|
end
|
|
1296
1417
|
|
|
1297
1418
|
# Flushing Commands
|
|
@@ -1299,12 +1420,12 @@ module JSS
|
|
|
1299
1420
|
|
|
1300
1421
|
# flush pending and/or failed MDM commands for this object
|
|
1301
1422
|
#
|
|
1302
|
-
# @param status[String] a key from {
|
|
1423
|
+
# @param status[String] a key from {Jamf::Commandable::FLUSHABLE_STATUSES}
|
|
1303
1424
|
#
|
|
1304
1425
|
# @return [void]
|
|
1305
1426
|
#
|
|
1306
1427
|
def flush_mdm_commands(status)
|
|
1307
|
-
self.class.flush_mdm_commands @id, status: status,
|
|
1428
|
+
self.class.flush_mdm_commands @id, status: status, cnx: @cnx
|
|
1308
1429
|
end
|
|
1309
1430
|
|
|
1310
1431
|
end # module MDM
|