ruby-jss 1.6.0 → 2.0.0a11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGES.md +85 -5
- data/README-2.0.0.md +324 -0
- data/README.md +58 -34
- data/bin/cgrouper +3 -3
- data/bin/jamfHelperBackgrounder +2 -2
- data/bin/netseg-update +3 -3
- data/data/ruby-jss.conf.example +1 -1
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/account.rb +29 -22
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_computer_search.rb +6 -6
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_mobile_device_search.rb +6 -6
- data/lib/{jss/api_object/advanced_search → jamf/api/classic/api_objects}/advanced_user_search.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/building.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/categorizable.rb +10 -10
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/category.rb +17 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/computer.rb +221 -111
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/computer_extension_attribute.rb +19 -19
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/computer_group.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/computer_invitation.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/creatable.rb +22 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable/criteria.rb +24 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable/criterion.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/criteriable.rb +25 -28
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/department.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding.rb +40 -40
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/active_directory.rb +47 -47
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/admitmac.rb +56 -56
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/centrify.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects/directory_binding_type}/directory_binding_type.rb +2 -25
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/open_directory.rb +19 -19
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/directory_binding_type/powerbroker_identity_services.rb +1 -1
- data/lib/jamf/api/classic/api_objects/directory_binding_type.rb +47 -0
- data/lib/{jss/api_object/disk_encryption_configurations.rb → jamf/api/classic/api_objects/disk_encryption_configuration.rb} +14 -14
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/distribution_point.rb +41 -35
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/dock_item.rb +12 -12
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ebook.rb +3 -3
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/extendable.rb +23 -23
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ibeacon.rb +15 -15
- data/lib/{jss/api_object/self_servable → jamf/api/classic/api_objects}/icon.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/ldap_server.rb +45 -34
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/locatable.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mac_application.rb +18 -18
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/audit_event.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/casper_imaging_log.rb +4 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/casper_remote_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/computer_usage_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/ebook.rb +7 -7
- data/lib/{jss/api_object/management_history/hashlike.rb → jamf/api/classic/api_objects/management_history/hash_like.rb} +3 -3
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mac_app_store_app.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mdm_command.rb +9 -9
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/mobile_device_app.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/policy_log.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/screen_sharing_log.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history/user_location_change.rb +4 -4
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/management_history.rb +226 -189
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/matchable.rb +9 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mdm.rb +256 -151
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mobile_device.rb +55 -39
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/mobile_device_application.rb +77 -35
- data/lib/{jss/api_object/configuration_profile → jamf/api/classic/api_objects}/mobile_device_configuration_profile.rb +7 -10
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/mobile_device_extension_attribute.rb +19 -19
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/mobile_device_group.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/netboot_server.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/network_segment.rb +75 -61
- data/lib/{jss/api_object/configuration_profile → jamf/api/classic/api_objects}/osx_configuration_profile.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/package.rb +83 -74
- data/lib/{jss/api_object/patch_source → jamf/api/classic/api_objects}/patch_external_source.rb +9 -9
- data/lib/{jss/api_object/patch_source → jamf/api/classic/api_objects}/patch_internal_source.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_policy.rb +70 -68
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_title/version.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/patch_title.rb +76 -64
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/peripheral.rb +24 -24
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/peripheral_type.rb +20 -20
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/policy.rb +113 -112
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/printer.rb +52 -52
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/purchasable.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/removable_macaddr.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/restricted_software.rb +21 -22
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/scopable/scope.rb +69 -64
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/scopable.rb +11 -13
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/script.rb +22 -22
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/self_servable.rb +51 -49
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/sitable.rb +8 -8
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/site.rb +6 -6
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/software_update_server.rb +5 -5
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/updatable.rb +13 -13
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/uploadable.rb +71 -29
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/user.rb +18 -18
- data/lib/{jss/api_object/extension_attribute → jamf/api/classic/api_objects}/user_extension_attribute.rb +12 -12
- data/lib/{jss/api_object/group → jamf/api/classic/api_objects}/user_group.rb +7 -7
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/vpp_account.rb +15 -15
- data/lib/{jss/api_object → jamf/api/classic/api_objects}/vppable.rb +5 -5
- data/lib/{jss/api_object/webhook.rb → jamf/api/classic/api_objects/web_hook.rb} +15 -15
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/advanced_search.rb +36 -40
- data/lib/{jss → jamf/api/classic/base_classes}/api_object.rb +314 -274
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/configuration_profile.rb +13 -16
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/extension_attribute.rb +55 -59
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/group.rb +45 -43
- data/lib/{jss/api_object → jamf/api/classic/base_classes}/patch_source.rb +107 -87
- data/lib/{jss → jamf/api/classic}/xml_workaround.rb +12 -12
- data/lib/jamf/api/connection/attributes.rb +177 -0
- data/lib/jamf/api/connection/cache.rb +148 -0
- data/lib/jamf/api/connection/classic_api.rb +287 -0
- data/lib/jamf/api/connection/connect.rb +491 -0
- data/lib/jamf/api/connection/constants.rb +106 -0
- data/lib/jamf/api/connection/default_connection.rb +103 -0
- data/lib/jamf/api/connection/jamf_pro_api.rb +170 -0
- data/lib/jamf/api/connection/jamf_pro_api_error.rb +109 -0
- data/lib/jamf/api/connection/token.rb +289 -99
- data/lib/jamf/api/connection.rb +186 -819
- data/lib/jamf/api/jamf_pro/api_objects/computer_prestage.rb +82 -0
- data/lib/jamf/api/jamf_pro/api_objects/device_enrollment.rb +358 -0
- data/lib/jamf/api/jamf_pro/api_objects/inventory_preload_record.rb +163 -0
- data/lib/jamf/api/jamf_pro/api_objects/jp_building.rb +116 -0
- data/lib/jamf/api/jamf_pro/api_objects/mobile_device_prestage.rb +87 -0
- data/lib/jamf/api/jamf_pro/base_classes/oapi_object.rb +608 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/bulk_deletable.rb +2 -1
- data/lib/jamf/api/jamf_pro/mixins/change_log.rb +246 -0
- data/lib/jamf/api/jamf_pro/mixins/collection_resource.rb +762 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/filterable.rb +21 -14
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/immutable.rb +6 -8
- data/lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb +167 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/lockable.rb +29 -3
- data/lib/jamf/api/jamf_pro/mixins/prestage.rb +356 -0
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/sortable.rb +7 -17
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/uncreatable.rb +2 -2
- data/lib/jamf/api/{mixins → jamf_pro/mixins}/undeletable.rb +2 -2
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_preview_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/access_groups_v2_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account.rb +160 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v4.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history.rb +161 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_history_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/active_patch_summary.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/admin_account.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_criteria_choices.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_search_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/advanced_user_content_search_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/android_details.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_analytics_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_dynamics_config.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_form_input_field_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/app_request_settings.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/apple_tv_details.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_attributes.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/application_configuration.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/attributes.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_token_v1.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_process_status.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_ad_migration_report_request.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_request.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_configuration_update.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_mappings.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_request.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/azure_server_configuration_update.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/branding_image_url.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cache_settings.rb +150 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/categories_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/category.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_details.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v1.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_identity_v2.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_key.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/certificate_record.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/classic_ldap_mappings.rb +169 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v2.rb +165 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/client_check_in_v3.rb +135 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_request.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_id_p_common_response.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_pool_statistics.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_connection_status.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_keystore_file.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_request.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_mappings_response.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_request.rb +152 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_response.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/cloud_ldap_server_update.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +373 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +144 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +231 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general_update.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +265 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware_update.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_preferences.rb +166 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_collection_settings.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_recovery_lock_password_response.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_response.rb +276 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_update_request.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +190 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_location.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system_update.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_overview.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v2.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +132 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computers_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_profile.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/configuration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_candidate_request.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_response.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_status_response.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/connection_configuration_update_request.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/country_codes.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/create_path.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/csa_token.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_account.rb +160 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/current_authorization.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/data_roaming_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/database_password.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/day_of_week.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/delete_user_command.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/department.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/departments_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deployment_task_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_request.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_response.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_configuration_update.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_request.rb +166 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_response.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/deprecated_server_update.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_communication_settings.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_compliance_information.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb +163 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_body.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb +164 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage.rb +216 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb +235 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/diagnostic_submission_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook.rb +153 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_exclusions.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_limitations.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_scope.rb +171 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ebook_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enable_lost_mode_command.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/engage.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_preview.rb +135 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_access_group_v2.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_branding_settings.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependencies.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_dependency.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_ldap_group_access.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_ldap_auth.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_list.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_sso_auth.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_panel_text.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_customization_v2.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_process_text_object.rb +347 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_settings_v2.rb +274 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_field.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/export_parameters.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute.rb +116 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/extension_attribute_v2.rb +117 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/external_recipient.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_delete.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/file_attachment_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/filter.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/font_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v2.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_ldap_auth.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_sso_auth.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_enrollment_customization_panel_text.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_mappings.rb +139 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_request.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_test_search_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results.rb +142 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/href_response.rb +169 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/icon_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/id_and_name_v2.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ids.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/initialize_v1.rb +134 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/install_package.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/integer_wrapper.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/internal_recipient.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_information.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_error.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_error_cause.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_csv_validation_success.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute_column_result.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_invalid_csv_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record.rb +249 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_configuration.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_branding_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details.rb +256 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ios_details_v2.rb +256 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_application_response.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_nation_credentials.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_package_response.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_information.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_server_url.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_pro_version.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/jamf_protect_plan.rb +126 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/language_code.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_request.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_response.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_configuration_update.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_group_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/ldap_server.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile.rb +127 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/linked_connect_profile_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/locale.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location.rb +126 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_v2.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_configuration.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_branding_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/markdown.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_client_type.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_client.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_request.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_state.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_command_type.rb +173 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mdm_signing_certificate.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_mappings.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_request.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/membership_test_search_response.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/memcached_endpoints.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_application.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_attachment_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v1.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_certificate_v2.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details.rb +236 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_get_v2.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_details_v2.rb +254 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_ebook.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_extension_attribute_results.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_group.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage.rb +137 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_params.rb +145 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_search_results_v2.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_v2.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network.rb +172 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/network_v2.rb +180 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification_type.rb +141 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/notification_v1.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb +107 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/order_by.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/package_manifest.rb +149 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/parent_app.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_ids_on_dashboard.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt.rb +103 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_attempt_action.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log.rb +125 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_log_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_on_dashboard.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_policy_summary.rb +147 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/patch_version.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/personal_hotspot_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plugin_path.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/policy_properties_v1.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v2.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependencies.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_dependency.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_file_attachment_v2.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb +110 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_update.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_sync_status_v2.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/process_texts_search_results.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_registration_request.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_settings_response.rb +142 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/protect_updatable_settings_request.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/provisioning_profile.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/purchasing_v2.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v2.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recalculation_results.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipient.rb +95 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/recipients.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/reenrollment.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_response.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/remote_administration_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/renew_mdm_profile_response.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/restart_device_command.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/retry_patch_policy_params.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/safelisted_apps.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/script.rb +193 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/scripts_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_active_patch_history_params.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/search_patch_policy_log_params.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/security_v2.rb +130 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_install_settings.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_interaction_settings.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_login_settings.rb +114 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/self_service_settings.rb +101 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_candidate_request.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details.rb +176 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_details_search_results.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/session_status.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/set_recovery_lock_command.rb +83 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/settings_command.rb +168 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/shared_device_configuration.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/signature.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/site.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/smart_search_criterion.rb +119 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_configuration.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_title_patch_policy_summaries.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/software_update_settings.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_cert_parse_response.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_details.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_parse.rb +104 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response.rb +121 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_response_with_details.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_keystore_with_details.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_metadata_url.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/sso_settings.rb +241 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/startup_status.rb +186 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/static_user_group.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_certificate_upload.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_create.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/supervision_identity_update.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_features.rb +106 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_request.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/teacher_settings_response.rb +122 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/time_frame.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/time_zone.rb +108 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/tv_os_details.rb +133 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/udids.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_apple_tv.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_ios_v2.rb +82 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_mobile_device_v2.rb +138 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/update_tv_os.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_attributes.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_mappings.rb +194 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search.rb +113 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_request.rb +86 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/user_test_search_response.rb +92 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_ca_record.rb +148 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_pki_payload_record_search_results.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/venafi_service_status.rb +84 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/verbose_package_deployment_response.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/voice_roaming_setting.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_content.rb +154 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_list_view.rb +172 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_patch.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_location_post.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_locations.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription.rb +87 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscription_base.rb +128 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/volume_purchasing_subscriptions.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_admin_account.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/vpp_token_subscription.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/web_link.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas.rb +35 -0
- data/lib/{jss/ruby_extensions/string.rb → jamf/api/jamf_pro/other_classes/change_log_entry.rb} +12 -10
- data/lib/jamf/api/{attribute_classes → jamf_pro/other_classes}/ip_address.rb +2 -8
- data/lib/jamf/api/jamf_pro/other_classes/pager.rb +257 -0
- data/lib/jamf/api/{attribute_classes → jamf_pro/other_classes}/timestamp.rb +18 -14
- data/lib/jamf/{api/mixins/base_class.rb → base_class.rb} +8 -8
- data/lib/jamf/client/jamf_binary.rb +104 -98
- data/lib/jamf/client/jamf_helper.rb +263 -255
- data/lib/jamf/client/management_action.rb +71 -72
- data/lib/jamf/client.rb +15 -86
- data/lib/jamf/composer.rb +5 -5
- data/lib/jamf/configuration.rb +219 -196
- data/lib/jamf/{api/json_objects/prestage_sync_status.rb → constants.rb} +15 -32
- data/lib/{jss → jamf}/db_connection.rb +26 -34
- data/lib/{jpapi.rb → jamf/deprecations/deprecated_api_constant.rb} +3 -4
- data/lib/jamf/deprecations/deprecated_config_constant.rb +25 -0
- data/lib/jamf/exceptions.rb +14 -15
- data/lib/jamf/oapi_validate.rb +502 -0
- data/lib/jamf/ruby_extensions/array/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/array/utils.rb +2 -11
- data/lib/jamf/ruby_extensions/array.rb +1 -1
- data/lib/jamf/ruby_extensions/filetest/predicates.rb +2 -1
- data/lib/jamf/ruby_extensions/filetest.rb +1 -1
- data/lib/jamf/ruby_extensions/hash/{backports.rb → utils.rb} +53 -34
- data/lib/jamf/ruby_extensions/hash.rb +3 -3
- data/lib/jamf/ruby_extensions/ipaddr/utils.rb +7 -4
- data/lib/jamf/ruby_extensions/ipaddr.rb +2 -2
- data/lib/jamf/ruby_extensions/object/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/object.rb +1 -1
- data/lib/jamf/ruby_extensions/pathname/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/pathname/utils.rb +11 -5
- data/lib/jamf/ruby_extensions/pathname.rb +1 -1
- data/lib/jamf/ruby_extensions/string/conversions.rb +16 -1
- data/lib/jamf/ruby_extensions/string/predicates.rb +3 -1
- data/lib/jamf/ruby_extensions/string.rb +1 -3
- data/lib/{jss/ruby_extensions/time.rb → jamf/ruby_extensions/time/utils.rb} +40 -25
- data/lib/{jss/version.rb → jamf/ruby_extensions/time.rb} +7 -6
- data/lib/jamf/ruby_extensions.rb +9 -9
- data/lib/jamf/utility.rb +626 -410
- data/lib/jamf/validate.rb +86 -125
- data/lib/jamf/version.rb +3 -3
- data/lib/jamf.rb +76 -131
- data/lib/jss-api.rb +2 -2
- data/lib/jss.rb +3 -215
- data/lib/ruby-jss.rb +2 -2
- data/lib/zeitwerk_config.rb +163 -0
- data/test/README.md +27 -112
- data/test/bin/runtests +57 -130
- data/test/lib/jamf_test/APITest.rb +106 -0
- data/{lib/jss/ruby_extensions/filetest.rb → test/lib/jamf_test/advanced_search.rb} +16 -20
- data/test/lib/jamf_test/auth.rb +267 -0
- data/test/lib/jamf_test/collection_tests.rb +391 -0
- data/test/lib/jamf_test/prestage_tests.rb +135 -0
- data/test/lib/{testhelper.rb → jamf_test.rb} +15 -12
- data/{lib/jss/ruby_extensions.rb → test/tests/advanced_computer_search.rb} +11 -12
- data/test/tests/advanced_mobile_device_search.rb +36 -0
- data/test/tests/advanced_user_search.rb +36 -0
- data/test/tests/category.rb +41 -0
- data/test/tests/computer_prestage.rb +36 -0
- data/test/tests/device_enrollment.rb +101 -0
- data/test/tests/inventory_preload_record.rb +131 -0
- data/test/tests/jp_building.rb +41 -0
- data/test/tests/mobile_device_prestage.rb +37 -0
- data/test/tests/policy.rb +163 -0
- metadata +653 -204
- data/lib/jamf/api/base_classes/collection_resource.rb +0 -613
- data/lib/jamf/api/base_classes/json_object.rb +0 -1105
- data/lib/jamf/api/base_classes/prestage.rb +0 -503
- data/lib/jamf/api/base_classes/resource.rb +0 -259
- data/lib/jamf/api/base_classes/singleton_resource.rb +0 -88
- data/lib/jamf/api/connection/api_error.rb +0 -111
- data/lib/jamf/api/connection/api_error_styleguide.rb +0 -96
- data/lib/jamf/api/json_objects/change_log_entry.rb +0 -77
- data/lib/jamf/api/json_objects/country.rb +0 -51
- data/lib/jamf/api/json_objects/device_enrollment_device.rb +0 -165
- data/lib/jamf/api/json_objects/device_enrollment_device_sync_state.rb +0 -81
- data/lib/jamf/api/json_objects/device_enrollment_sync_status.rb +0 -71
- data/lib/jamf/api/json_objects/inventory_preload_extension_attribute.rb +0 -57
- data/lib/jamf/api/json_objects/locale.rb +0 -59
- data/lib/jamf/api/json_objects/md_prestage_name.rb +0 -57
- data/lib/jamf/api/json_objects/md_prestage_names.rb +0 -82
- data/lib/jamf/api/json_objects/md_prestage_skip_setup_items.rb +0 -214
- data/lib/jamf/api/json_objects/prestage_assignment.rb +0 -76
- data/lib/jamf/api/json_objects/prestage_location.rb +0 -104
- data/lib/jamf/api/json_objects/prestage_purchasing_data.rb +0 -132
- data/lib/jamf/api/json_objects/prestage_scope.rb +0 -57
- data/lib/jamf/api/json_objects/time_zone.rb +0 -105
- data/lib/jamf/api/mixins/change_log.rb +0 -288
- data/lib/jamf/api/mixins/extendable.rb +0 -75
- data/lib/jamf/api/mixins/pageable.rb +0 -208
- data/lib/jamf/api/mixins/searchable.rb +0 -202
- data/lib/jamf/api/resources/collection_resources/building.rb +0 -121
- data/lib/jamf/api/resources/collection_resources/category.rb +0 -83
- data/lib/jamf/api/resources/collection_resources/computer_prestage.rb +0 -89
- data/lib/jamf/api/resources/collection_resources/department.rb +0 -78
- data/lib/jamf/api/resources/collection_resources/device_enrollment.rb +0 -384
- data/lib/jamf/api/resources/collection_resources/inventory_preload_record.rb +0 -289
- data/lib/jamf/api/resources/collection_resources/mobile_device_prestage.rb +0 -143
- data/lib/jamf/api/resources/collection_resources/script.rb +0 -226
- data/lib/jamf/api/resources/singleton_resources/app_store_country_codes.rb +0 -141
- data/lib/jamf/api/resources/singleton_resources/locales.rb +0 -155
- data/lib/jamf/api/resources/singleton_resources/time_zones.rb +0 -213
- data/lib/jamf/compatibility.rb +0 -88
- data/lib/jamf/ruby_extensions/dig.rb +0 -52
- data/lib/jamf/ruby_extensions/string/backports.rb +0 -66
- data/lib/jss/api_connection.rb +0 -1029
- data/lib/jss/api_object/app_store_country_codes.rb +0 -298
- data/lib/jss/api_object/computer/application_installs.rb +0 -118
- data/lib/jss/client/jamf_binary.rb +0 -132
- data/lib/jss/client/jamf_helper.rb +0 -298
- data/lib/jss/client/management_action.rb +0 -113
- data/lib/jss/client.rb +0 -301
- data/lib/jss/compatibility.rb +0 -88
- data/lib/jss/composer.rb +0 -190
- data/lib/jss/configuration.rb +0 -319
- data/lib/jss/exceptions.rb +0 -115
- data/lib/jss/ruby_extensions/array.rb +0 -52
- data/lib/jss/ruby_extensions/hash.rb +0 -140
- data/lib/jss/ruby_extensions/ipaddr.rb +0 -92
- data/lib/jss/ruby_extensions/object.rb +0 -19
- data/lib/jss/ruby_extensions/pathname.rb +0 -78
- data/lib/jss/ruby_extensions/string/backports.rb +0 -68
- data/lib/jss/ruby_extensions/string/conversions.rb +0 -69
- data/lib/jss/ruby_extensions/string/predicates.rb +0 -57
- data/lib/jss/server.rb +0 -146
- data/lib/jss/utility.rb +0 -672
- data/lib/jss/validate.rb +0 -248
- data/test/lib/testhelper/auth.rb +0 -275
- data/test/lib/testhelper/patch_mgmt.rb +0 -123
- data/test/specs/api_connection_spec.rb +0 -57
- data/test/specs/patch01_source_spec.rb +0 -54
- data/test/specs/patch02_internal_source_spec.rb +0 -88
- data/test/specs/patch03_external_source_spec.rb +0 -120
- data/test/specs/patch04_titles_spec.rb +0 -207
- data/test/specs/patch05_policies_spec.rb +0 -119
- data/test/specs/patch06_cleanup_spec.rb +0 -52
- data/test/specs/policy_spec.rb +0 -112
@@ -1,4 +1,4 @@
|
|
1
|
-
### Copyright
|
1
|
+
### Copyright 2022 Pixar
|
2
2
|
|
3
3
|
###
|
4
4
|
### Licensed under the Apache License, Version 2.0 (the "Apache License")
|
@@ -24,7 +24,7 @@
|
|
24
24
|
###
|
25
25
|
|
26
26
|
###
|
27
|
-
module
|
27
|
+
module Jamf
|
28
28
|
|
29
29
|
# This class represents a Computer in the JSS.
|
30
30
|
#
|
@@ -63,7 +63,7 @@ module JSS
|
|
63
63
|
#
|
64
64
|
# === MDM Commands
|
65
65
|
#
|
66
|
-
# See the {
|
66
|
+
# See the {Jamf::MDM} mixin module for Class and Instance methods for
|
67
67
|
# sending MDM commands to computers.
|
68
68
|
#
|
69
69
|
# To send MDM commands without fetching Computer instances, use the class
|
@@ -86,7 +86,7 @@ module JSS
|
|
86
86
|
#
|
87
87
|
# Computer Management History and logs can now be retrieved both from a
|
88
88
|
# Computer instance, and directly via class methods without fetching an
|
89
|
-
# instance. This is handled by the mixed-in {
|
89
|
+
# instance. This is handled by the mixed-in {Jamf::ManagementHistory} module,
|
90
90
|
# Q.V. for details.
|
91
91
|
#
|
92
92
|
# === Appication Usage History
|
@@ -145,21 +145,21 @@ module JSS
|
|
145
145
|
# @see Matchable
|
146
146
|
# @see FileUpload
|
147
147
|
#
|
148
|
-
class Computer <
|
148
|
+
class Computer < Jamf::APIObject
|
149
149
|
|
150
150
|
# MixIns
|
151
151
|
#####################################
|
152
|
-
include
|
153
|
-
include
|
154
|
-
include
|
155
|
-
include
|
156
|
-
include
|
157
|
-
include
|
158
|
-
include
|
159
|
-
include
|
160
|
-
include
|
161
|
-
|
162
|
-
extend
|
152
|
+
include Jamf::Creatable
|
153
|
+
include Jamf::Updatable
|
154
|
+
include Jamf::Locatable
|
155
|
+
include Jamf::Purchasable
|
156
|
+
include Jamf::Uploadable
|
157
|
+
include Jamf::Extendable
|
158
|
+
include Jamf::Sitable
|
159
|
+
include Jamf::MDM
|
160
|
+
include Jamf::ManagementHistory
|
161
|
+
|
162
|
+
extend Jamf::Matchable
|
163
163
|
|
164
164
|
# Class Constants
|
165
165
|
#####################################
|
@@ -183,7 +183,7 @@ module JSS
|
|
183
183
|
# these keys, as well as :id and :name, can be used to look up objects
|
184
184
|
# of this class in the JSS
|
185
185
|
#
|
186
|
-
# the
|
186
|
+
# the weird alises mac_addresse and macaddresse
|
187
187
|
# are for proper pluralization of 'mac_address' and such
|
188
188
|
OTHER_LOOKUP_KEYS = {
|
189
189
|
udid: {
|
@@ -210,10 +210,10 @@ module JSS
|
|
210
210
|
NON_UNIQUE_NAMES = true
|
211
211
|
|
212
212
|
# This class lets us seach for computers
|
213
|
-
SEARCH_CLASS =
|
213
|
+
SEARCH_CLASS = Jamf::AdvancedComputerSearch
|
214
214
|
|
215
215
|
# This is the class for relevant Extension Attributes
|
216
|
-
EXT_ATTRIB_CLASS =
|
216
|
+
EXT_ATTRIB_CLASS = Jamf::ComputerExtensionAttribute
|
217
217
|
|
218
218
|
# Boot partitions are noted with the string "(Boot Partition)" at the end
|
219
219
|
BOOT_FLAG = ' (Boot Partition)'.freeze
|
@@ -230,9 +230,6 @@ module JSS
|
|
230
230
|
# The date format for retrieving usage data
|
231
231
|
APPLICATION_USAGE_DATE_FMT = '%Y-%m-%d'.freeze
|
232
232
|
|
233
|
-
# The classes that can be used with the date format
|
234
|
-
APPLICATION_USAGE_DATE_CLASSES = [Time, DateTime, Date].freeze
|
235
|
-
|
236
233
|
# The top-level hash key of the raw app usage data
|
237
234
|
APPLICATION_USAGE_KEY = :computer_application_usage
|
238
235
|
|
@@ -268,6 +265,8 @@ module JSS
|
|
268
265
|
# The top-level hash key for the inventory collection settings
|
269
266
|
INV_COLLECTION_KEY = :computer_inventory_collection
|
270
267
|
|
268
|
+
COMPUTER_APPLICATIONS_RSRC = 'computerapplications/application'.freeze
|
269
|
+
|
271
270
|
# the object type for this object in
|
272
271
|
# the object history table.
|
273
272
|
# See {APIObject#add_object_history_entry}
|
@@ -280,28 +279,30 @@ module JSS
|
|
280
279
|
# Currently this is read-only in ruby-jss, even tho the API
|
281
280
|
# allows updating.
|
282
281
|
#
|
283
|
-
# @param
|
284
|
-
# Defaults to the corrently active API. See {
|
282
|
+
# @param cnx [Jamf::Connection] an API connection to use for the query.
|
283
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
285
284
|
#
|
286
285
|
# @return [Hash] the Computer Checkin Settings from the
|
287
286
|
# currently connected JSS.
|
288
287
|
#
|
289
|
-
def self.checkin_settings(api:
|
290
|
-
api
|
288
|
+
def self.checkin_settings(api: nil, cnx: Jamf.cnx)
|
289
|
+
cnx = api if api
|
290
|
+
cnx.c_get(CHECKIN_RSRC)[CHECKIN_KEY]
|
291
291
|
end
|
292
292
|
|
293
293
|
# Display the current Computer Inventory Collection settings in the JSS.
|
294
294
|
# Currently this is read-only in ruby-jss, even tho the API
|
295
295
|
# allows updating.
|
296
296
|
#
|
297
|
-
# @param
|
298
|
-
# Defaults to the corrently active API. See {
|
297
|
+
# @param cnx [Jamf::Connection] an API connection to use for the query.
|
298
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
299
299
|
#
|
300
300
|
# @return [Hash] the Computer Inventpry Collection Settings from the
|
301
301
|
# currently connected JSS.
|
302
302
|
#
|
303
|
-
def self.inventory_collection_settings(api:
|
304
|
-
api
|
303
|
+
def self.inventory_collection_settings(api: nil, cnx: Jamf.cnx)
|
304
|
+
cnx = api if api
|
305
|
+
cnx.c_get(INV_COLLECTION_RSRC)[INV_COLLECTION_KEY]
|
305
306
|
end
|
306
307
|
|
307
308
|
# A larger set of info about the computers in the JSS.
|
@@ -313,93 +314,102 @@ module JSS
|
|
313
314
|
# :managed, :building, :department, :username, and :report_date
|
314
315
|
#
|
315
316
|
# Because this requires a different, unusual, resource path, we're completely re-defining
|
316
|
-
# {APIObject.all} for
|
317
|
+
# {APIObject.all} for Jamf::Computer. Hopefully some day the original /computers/
|
317
318
|
# resource will be updated to return this data.
|
318
319
|
#
|
319
320
|
# @param refresh[Boolean] should the data be re-queried from the API?
|
320
321
|
#
|
321
|
-
# @param
|
322
|
-
# Defaults to the corrently active API. See {
|
322
|
+
# @param cnx[Jamf::Connection] an API connection to use for the query.
|
323
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
323
324
|
#
|
324
325
|
# @return [Array<Hash{:name=>String, :id=> Integer}>]
|
325
326
|
#
|
326
|
-
def self.all(refresh = false, api:
|
327
|
-
|
327
|
+
def self.all(refresh = false, api: nil, cnx: Jamf.cnx)
|
328
|
+
cnx = api if api
|
329
|
+
|
330
|
+
cache = cnx.c_object_list_cache
|
328
331
|
cache_key = self::RSRC_LIST_KEY
|
329
332
|
cache[cache_key] = nil if refresh
|
330
333
|
return cache[cache_key] if cache[cache_key]
|
331
334
|
|
332
|
-
cache[cache_key] =
|
335
|
+
cache[cache_key] = cnx.c_get(self::LIST_RSRC)[cache_key]
|
333
336
|
end
|
334
337
|
|
335
|
-
# # @return [Array<String>] all computer serial numbers in the jss
|
336
|
-
# def self.all_serial_numbers(refresh = false, api: JSS.api)
|
337
|
-
# all(refresh, api: api).map { |i| i[:serial_number] }
|
338
|
-
# end
|
339
|
-
#
|
340
|
-
# # @return [Array<String>] all computer mac_addresses in the jss
|
341
|
-
# def self.all_mac_addresses(refresh = false, api: JSS.api)
|
342
|
-
# all(refresh, api: api).map { |i| i[:mac_address] }
|
343
|
-
# end
|
344
|
-
#
|
345
|
-
# # @return [Array<String>] all computer udids in the jss
|
346
|
-
# def self.all_udids(refresh = false, api: JSS.api)
|
347
|
-
# all(refresh, api: api).map { |i| i[:udid] }
|
348
|
-
# end
|
349
|
-
|
350
338
|
# @return [Array<Hash>] all managed computers in the jss
|
351
|
-
def self.all_managed(refresh = false, api:
|
352
|
-
|
339
|
+
def self.all_managed(refresh = false, api: nil, cnx: Jamf.cnx)
|
340
|
+
cnx = api if api
|
341
|
+
|
342
|
+
all(refresh, cnx: cnx).select { |d| d[:managed] }
|
353
343
|
end
|
354
344
|
|
355
345
|
# @return [Array<Hash>] all unmanaged computers in the jss
|
356
|
-
def self.all_unmanaged(refresh = false, api:
|
357
|
-
|
346
|
+
def self.all_unmanaged(refresh = false, api: nil, cnx: Jamf.cnx)
|
347
|
+
cnx = api if api
|
348
|
+
|
349
|
+
all(refresh, cnx: cnx).reject { |d| d[:managed] }
|
358
350
|
end
|
359
351
|
|
360
352
|
# @return [Array<Hash>] all laptop computers in the jss
|
361
|
-
def self.all_laptops(refresh = false, api:
|
362
|
-
|
353
|
+
def self.all_laptops(refresh = false, api: nil, cnx: Jamf.cnx)
|
354
|
+
cnx = api if api
|
355
|
+
|
356
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /book/i }
|
363
357
|
end
|
364
358
|
|
365
359
|
# @return [Array<Hash>] all macbooks in the jss
|
366
|
-
def self.all_macbooks(refresh = false, api:
|
367
|
-
|
360
|
+
def self.all_macbooks(refresh = false, api: nil, cnx: Jamf.cnx)
|
361
|
+
cnx = api if api
|
362
|
+
|
363
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macbook\d/i }
|
368
364
|
end
|
369
365
|
|
370
366
|
# @return [Array<Hash>] all macbookpros in the jss
|
371
|
-
def self.all_macbookpros(refresh = false, api:
|
372
|
-
|
367
|
+
def self.all_macbookpros(refresh = false, api: nil, cnx: Jamf.cnx)
|
368
|
+
cnx = api if api
|
369
|
+
|
370
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macbookpro\d/i }
|
373
371
|
end
|
374
372
|
|
375
373
|
# @return [Array<Hash>] all macbookairs in the jss
|
376
|
-
def self.all_macbookairs(refresh = false, api:
|
377
|
-
|
374
|
+
def self.all_macbookairs(refresh = false, api: nil, cnx: Jamf.cnx)
|
375
|
+
cnx = api if api
|
376
|
+
|
377
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macbookair\d/i }
|
378
378
|
end
|
379
379
|
|
380
380
|
# @return [Array<Hash>] all xserves in the jss
|
381
|
-
def self.all_xserves(refresh = false, api:
|
382
|
-
|
381
|
+
def self.all_xserves(refresh = false, api: nil, cnx: Jamf.cnx)
|
382
|
+
cnx = api if api
|
383
|
+
|
384
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /serve/i }
|
383
385
|
end
|
384
386
|
|
385
387
|
# @return [Array<Hash>] all desktop macs in the jss
|
386
|
-
def self.all_desktops(refresh = false, api:
|
387
|
-
|
388
|
+
def self.all_desktops(refresh = false, api: nil, cnx: Jamf.cnx)
|
389
|
+
cnx = api if api
|
390
|
+
|
391
|
+
all(refresh, cnx: cnx).reject { |d| d[:model] =~ /serve|book/i }
|
388
392
|
end
|
389
393
|
|
390
394
|
# @return [Array<Hash>] all imacs in the jss
|
391
|
-
def self.all_imacs(refresh = false, api:
|
392
|
-
|
395
|
+
def self.all_imacs(refresh = false, api: nil, cnx: Jamf.cnx)
|
396
|
+
cnx = api if api
|
397
|
+
|
398
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^imac/i }
|
393
399
|
end
|
394
400
|
|
395
401
|
# @return [Array<Hash>] all mac minis in the jss
|
396
|
-
def self.all_minis(refresh = false, api:
|
397
|
-
|
402
|
+
def self.all_minis(refresh = false, api: nil, cnx: Jamf.cnx)
|
403
|
+
cnx = api if api
|
404
|
+
|
405
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macmini/i }
|
398
406
|
end
|
399
407
|
|
400
408
|
# @return [Array<Hash>] all macpros in the jss
|
401
|
-
def self.all_macpros(refresh = false, api:
|
402
|
-
|
409
|
+
def self.all_macpros(refresh = false, api: nil, cnx: Jamf.cnx)
|
410
|
+
cnx = api if api
|
411
|
+
|
412
|
+
all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macpro/i }
|
403
413
|
end
|
404
414
|
|
405
415
|
# Retrieve Application Usage data for a computer by id, without
|
@@ -412,8 +422,8 @@ module JSS
|
|
412
422
|
#
|
413
423
|
# @param end_date [String,Date,DateTime,Time] Defaults to start_date
|
414
424
|
#
|
415
|
-
# @param
|
416
|
-
# Defaults to the corrently active API. See {
|
425
|
+
# @param cnx [Jamf::Connection] an API connection to use for the query.
|
426
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
417
427
|
#
|
418
428
|
# @return [Hash{Date=>Array<Hash>}] A Hash with keys (Date instances) for
|
419
429
|
# each day in the range.
|
@@ -428,24 +438,105 @@ module JSS
|
|
428
438
|
# :foreground => Integer, the minutes it was in the foreground
|
429
439
|
# :open => Integer, the minutes it was running.
|
430
440
|
#
|
431
|
-
def self.application_usage(ident, start_date, end_date = nil, api:
|
432
|
-
|
441
|
+
def self.application_usage(ident, start_date, end_date = nil, api: nil, cnx: Jamf.cnx)
|
442
|
+
cnx = api if api
|
443
|
+
|
444
|
+
id = valid_id ident, cnx: cnx
|
433
445
|
raise "No computer matches identifier: #{ident}" unless id
|
446
|
+
|
434
447
|
end_date ||= start_date
|
435
|
-
start_date =
|
436
|
-
end_date =
|
437
|
-
|
448
|
+
start_date = Jamf.parse_time start_date
|
449
|
+
end_date = Jamf.parse_time end_date
|
450
|
+
|
438
451
|
start_date = start_date.strftime APPLICATION_USAGE_DATE_FMT
|
439
452
|
end_date = end_date.strftime APPLICATION_USAGE_DATE_FMT
|
440
|
-
|
453
|
+
|
454
|
+
data = cnx.c_get(APPLICATION_USAGE_RSRC + "/id/#{id}/#{start_date}_#{end_date}")
|
455
|
+
|
441
456
|
parsed_data = {}
|
457
|
+
|
442
458
|
data[APPLICATION_USAGE_KEY].each do |day_hash|
|
443
459
|
date = Date.parse day_hash[:date]
|
444
460
|
parsed_data[date] = day_hash[:apps]
|
445
461
|
end
|
462
|
+
|
446
463
|
parsed_data
|
447
464
|
end # app usage
|
448
465
|
|
466
|
+
# Query the JSS for computers with some app installed. An app name is required
|
467
|
+
# as the first parameter.
|
468
|
+
#
|
469
|
+
# If no other parameters are given, returns a Hash, one key per version of the
|
470
|
+
# app. For each version there is an array of Hashes, one Hash for each
|
471
|
+
# computer with that version. The sub hashes contain keys for the computer's
|
472
|
+
# identifiers, i.e. :name, :id, :udid, :serial_number, :mac_address.
|
473
|
+
#
|
474
|
+
# If one or more inventory fields are provided in the 'fields' parameter,
|
475
|
+
# each computer's hash also has keys and values for those fields if they
|
476
|
+
# exist in the JSS. These fields are those available in the display options
|
477
|
+
# for Advanced Computer Searches (including extention attribute names) and
|
478
|
+
# their names are case-sensitive, so 'Username', not 'username'
|
479
|
+
#
|
480
|
+
# If a specific version is provided in the 'version' parameter, only computers
|
481
|
+
# containing that version of the app are returned as an Array of Hashes.
|
482
|
+
#
|
483
|
+
# If the ids_only parameter is truthy, an Array of JSS id numbers for
|
484
|
+
# computers with this app is returned. In this case the 'fields' parameter
|
485
|
+
# is ignored, however the 'version' parameters is still valid and will
|
486
|
+
# restrict the list to those computer ids with that version installed.
|
487
|
+
#
|
488
|
+
# This method implements the 'computerapplications' API endpoint.
|
489
|
+
#
|
490
|
+
# NOTE: To see all the apps installed on a specific computer, fetch the
|
491
|
+
# Jamf::Computer instance and call its {Jamf::Computer#apps} method.
|
492
|
+
#
|
493
|
+
# @param appname [String] The name of the app to look for, e.g. 'Transmogrifier.app'
|
494
|
+
#
|
495
|
+
# @param fields [String,Array<String>] Additional 'inventory fields' to return
|
496
|
+
# with each computer's data
|
497
|
+
#
|
498
|
+
# @param version [String] Limit search to a specific version of the app
|
499
|
+
#
|
500
|
+
# @param ids_only [Boolean] Just return an array of the id's of computers
|
501
|
+
# found with this query. Defaults to false
|
502
|
+
#
|
503
|
+
# @param cnx [Jamf::Connection] The API connection to use for the query.
|
504
|
+
# default: Jamf.cnx
|
505
|
+
#
|
506
|
+
# @return [Array<Integer>] When ids_only == true, the ids of computers with
|
507
|
+
# the app installed (possibly limited to version)
|
508
|
+
#
|
509
|
+
# @return [Array<Hash>] When version is provided, An Array of Hashes, one
|
510
|
+
# for each computer, with keys for identifiers plus any requested fields.
|
511
|
+
#
|
512
|
+
# @return [Hash{String => Array<Hash>}] When no version is provided, a Hash
|
513
|
+
# with keys for each version, pointing to an array of Hashes, one for
|
514
|
+
# each computer with that version. Each computer's Hash has keys for
|
515
|
+
# identifiers plus any requested fields.
|
516
|
+
#
|
517
|
+
#
|
518
|
+
def self.application_installs(appname, fields: [], version: nil, ids_only: false, api: nil, cnx: Jamf.cnx)
|
519
|
+
cnx = api if api
|
520
|
+
|
521
|
+
fields = [fields] unless fields.is_a? Array
|
522
|
+
|
523
|
+
rsrc = "#{COMPUTER_APPLICATIONS_RSRC}/#{CGI.escape appname.to_s}"
|
524
|
+
rsrc << "/version/#{CGI.escape version.to_s}" if version
|
525
|
+
rsrc << "/inventory/#{CGI.escape fields.join(',')}" unless ids_only || fields.empty?
|
526
|
+
|
527
|
+
result = cnx.c_get(rsrc)[:computer_applications]
|
528
|
+
|
529
|
+
return result[:unique_computers].map { |c| c[:id] } if ids_only
|
530
|
+
|
531
|
+
if version.nil?
|
532
|
+
hash_by_version = {}
|
533
|
+
result[:versions].each { |v| hash_by_version[v[:number]] = v[:computers] }
|
534
|
+
return hash_by_version
|
535
|
+
end
|
536
|
+
|
537
|
+
result[:versions].first[:computers]
|
538
|
+
end # self.application_installs
|
539
|
+
|
449
540
|
# The 'computer management' data for a given computer by id,
|
450
541
|
# looked up on the fly.
|
451
542
|
#
|
@@ -468,8 +559,8 @@ module JSS
|
|
468
559
|
# @param only[Symbol] When fetching a subset, only return one value
|
469
560
|
# per item in the array. meaningless without a subset.
|
470
561
|
#
|
471
|
-
# @param
|
472
|
-
# Defaults to the corrently active API. See {
|
562
|
+
# @param cnx [Jamf::Connection] an API connection to use for the query.
|
563
|
+
# Defaults to the corrently active API. See {Jamf::Connection}
|
473
564
|
#
|
474
565
|
# @return [Hash] Without a subset:, a hash of all subsets, each of which is
|
475
566
|
# an Array
|
@@ -477,33 +568,41 @@ module JSS
|
|
477
568
|
# @return [Array] With a subset:, an array of items in that subset, possibly
|
478
569
|
# limited to just certain values with only:
|
479
570
|
#
|
480
|
-
def self.management_data(ident, subset: nil, only: nil, api:
|
481
|
-
|
571
|
+
def self.management_data(ident, subset: nil, only: nil, api: nil, cnx: Jamf.cnx)
|
572
|
+
cnx = api if api
|
573
|
+
|
574
|
+
id = valid_id ident, cnx: cnx
|
482
575
|
raise "No computer matches identifier: #{ident}" unless id
|
483
576
|
if subset
|
484
|
-
management_data_subset id, subset: subset, only: only,
|
577
|
+
management_data_subset id, subset: subset, only: only, cnx: cnx
|
485
578
|
else
|
486
|
-
full_management_data id,
|
579
|
+
full_management_data id, cnx: cnx
|
487
580
|
end
|
488
581
|
end
|
489
582
|
|
490
583
|
# The full set of management data for a given computer.
|
491
584
|
# This private method is called by self.management_data, q.v.
|
492
585
|
#
|
493
|
-
def self.full_management_data(id, api:
|
586
|
+
def self.full_management_data(id, api: nil, cnx: Jamf.cnx)
|
587
|
+
cnx = api if api
|
588
|
+
|
494
589
|
mgmt_rsrc = MGMT_DATA_RSRC + "/id/#{id}"
|
495
|
-
|
590
|
+
cnx.c_get(mgmt_rsrc)[MGMT_DATA_KEY]
|
496
591
|
end
|
497
592
|
private_class_method :full_management_data
|
498
593
|
|
499
594
|
# A subset of management data for a given computer.
|
500
595
|
# This private method is called by self.management_data, q.v.
|
501
596
|
#
|
502
|
-
def self.management_data_subset(id, subset: nil, only: nil, api:
|
597
|
+
def self.management_data_subset(id, subset: nil, only: nil, api: nil, cnx: Jamf.cnx)
|
598
|
+
cnx = api if api
|
599
|
+
|
503
600
|
raise "Subset must be one of :#{MGMT_DATA_SUBSETS.join ', :'}" unless MGMT_DATA_SUBSETS.include? subset
|
601
|
+
|
504
602
|
subset_rsrc = MGMT_DATA_RSRC + "/id/#{id}/subset/#{subset}"
|
505
|
-
subset_data =
|
603
|
+
subset_data = cnx.c_get(subset_rsrc)[MGMT_DATA_KEY]
|
506
604
|
return subset_data[subset] unless only
|
605
|
+
|
507
606
|
subset_data[subset].map { |d| d[only] }
|
508
607
|
end
|
509
608
|
private_class_method :management_data_subset
|
@@ -584,6 +683,15 @@ module JSS
|
|
584
683
|
# @return [Hash] the :name and :id of the site for this machine
|
585
684
|
attr_reader :site
|
586
685
|
|
686
|
+
# @return [Hash] The security settings for this Computer
|
687
|
+
# Keys are:
|
688
|
+
# activation_lock: Boolean
|
689
|
+
# recovery_lock_enabled: Boolean
|
690
|
+
# secure_boot_level: String
|
691
|
+
# external_boot_level: String
|
692
|
+
# firewall_enabled: Boolean
|
693
|
+
attr_reader :security
|
694
|
+
|
587
695
|
# @return [String] the name of the Software Update Server assigned to this machine.
|
588
696
|
attr_reader :sus
|
589
697
|
|
@@ -767,8 +875,8 @@ module JSS
|
|
767
875
|
# alt_mac_address:, barcode_1:, barcode_2:
|
768
876
|
#
|
769
877
|
#
|
770
|
-
def initialize(args
|
771
|
-
super
|
878
|
+
def initialize(**args)
|
879
|
+
super
|
772
880
|
if @in_jss
|
773
881
|
|
774
882
|
# mutable stuff
|
@@ -798,6 +906,8 @@ module JSS
|
|
798
906
|
@report_date = JSS.epoch_to_time @init_data[:general][:report_date_epoch]
|
799
907
|
@sus = @init_data[:general][:sus]
|
800
908
|
|
909
|
+
@security = @init_data[:security] || {}
|
910
|
+
|
801
911
|
@configuration_profiles = @init_data[:configuration_profiles]
|
802
912
|
|
803
913
|
@management_status = @init_data[:general][:management_status]
|
@@ -935,21 +1045,21 @@ module JSS
|
|
935
1045
|
|
936
1046
|
# Get application usage data for this computer
|
937
1047
|
# for a given date range.
|
938
|
-
# See {
|
1048
|
+
# See {Jamf::Computer.application_usage} for details
|
939
1049
|
#
|
940
1050
|
def application_usage(start_date, end_date = nil)
|
941
|
-
|
1051
|
+
Jamf::Computer.application_usage @id, start_date, end_date, cnx: @cnx
|
942
1052
|
end # app usage
|
943
1053
|
|
944
1054
|
# The 'computer management' data for this computer
|
945
1055
|
#
|
946
1056
|
# NOTE: the data isn't cached locally, and the API is queried every time
|
947
1057
|
#
|
948
|
-
# @see {
|
1058
|
+
# @see {Jamf::Computer.management_data} for details
|
949
1059
|
#
|
950
1060
|
def management_data(subset: nil, only: nil)
|
951
|
-
raise
|
952
|
-
|
1061
|
+
raise Jamf::NoSuchItemError, 'Computer not yet saved in the JSS' unless @in_jss
|
1062
|
+
Jamf::Computer.management_data @id, subset: subset, only: only, cnx: @cnx
|
953
1063
|
end
|
954
1064
|
|
955
1065
|
# A shortcut for 'management_data subset: :smart_groups'
|
@@ -1027,7 +1137,7 @@ module JSS
|
|
1027
1137
|
# The same as
|
1028
1138
|
# #set_management_to nil, nil
|
1029
1139
|
# followed by
|
1030
|
-
#
|
1140
|
+
# Jamf::Computer.send_mdm_command @id, :unmanage_device
|
1031
1141
|
# which currently isn't working
|
1032
1142
|
#
|
1033
1143
|
# @return [void]
|
@@ -1047,15 +1157,14 @@ module JSS
|
|
1047
1157
|
end
|
1048
1158
|
|
1049
1159
|
# flush the logs for this computer in a given policy
|
1050
|
-
# @see
|
1160
|
+
# @see Jamf::Policy.flush_logs
|
1051
1161
|
#
|
1052
1162
|
def flush_policy_logs(policy, older_than: 0, period: :days)
|
1053
|
-
|
1163
|
+
Jamf::Policy.flush_logs(
|
1054
1164
|
policy,
|
1055
1165
|
older_than: older_than,
|
1056
1166
|
period: period,
|
1057
|
-
computers: [@id],
|
1058
|
-
api: @api
|
1167
|
+
computers: [@id], cnx: @cnx
|
1059
1168
|
)
|
1060
1169
|
end
|
1061
1170
|
|
@@ -1077,31 +1186,31 @@ module JSS
|
|
1077
1186
|
|
1078
1187
|
def ip_address=(new_val)
|
1079
1188
|
return nil if @ip_address == new_val
|
1080
|
-
@ip_address = new_val.empty? ? new_val :
|
1189
|
+
@ip_address = new_val.empty? ? new_val : Jamf::Validate.ip_address(new_val)
|
1081
1190
|
@need_to_update = true
|
1082
1191
|
end
|
1083
1192
|
|
1084
1193
|
def mac_address=(new_val)
|
1085
1194
|
return nil if new_val == @mac_address
|
1086
|
-
@mac_address = new_val.empty? ? new_val :
|
1195
|
+
@mac_address = new_val.empty? ? new_val : Jamf::Validate.mac_address(new_val)
|
1087
1196
|
@need_to_update = true
|
1088
1197
|
end
|
1089
1198
|
|
1090
1199
|
def alt_mac_address=(new_val)
|
1091
1200
|
return nil if new_val == @alt_mac_address
|
1092
|
-
@alt_mac_address = new_val.empty? ? new_val :
|
1201
|
+
@alt_mac_address = new_val.empty? ? new_val : Jamf::Validate.mac_address(new_val)
|
1093
1202
|
@need_to_update = true
|
1094
1203
|
end
|
1095
1204
|
|
1096
1205
|
def serial_number=(new_val)
|
1097
1206
|
return nil if new_val == @serial_number
|
1098
|
-
@serial_number = new_val.empty? ? new_val :
|
1207
|
+
@serial_number = new_val.empty? ? new_val : Jamf::Validate.doesnt_already_exist(Jamf::Computer, :serial_number, new_val, cnx: cnx)
|
1099
1208
|
@need_to_update = true
|
1100
1209
|
end
|
1101
1210
|
|
1102
1211
|
def udid=(new_val)
|
1103
1212
|
return nil if new_val == @udid
|
1104
|
-
@udid = new_val.empty? ? new_val :
|
1213
|
+
@udid = new_val.empty? ? new_val : Jamf::Validate.doesnt_already_exist(Jamf::Computer, :udid, new_val, cnx: cnx)
|
1105
1214
|
@need_to_update = true
|
1106
1215
|
end
|
1107
1216
|
|
@@ -1160,6 +1269,9 @@ module JSS
|
|
1160
1269
|
@software = nil
|
1161
1270
|
end # delete
|
1162
1271
|
|
1272
|
+
|
1273
|
+
|
1274
|
+
|
1163
1275
|
# aliases
|
1164
1276
|
alias alt_macaddress alt_mac_address
|
1165
1277
|
alias bar_code_1 barcode1
|
@@ -1191,7 +1303,7 @@ module JSS
|
|
1191
1303
|
# In particular, any data gatherd by a Recon cannot be changed
|
1192
1304
|
#
|
1193
1305
|
def rest_xml
|
1194
|
-
doc = REXML::Document.new
|
1306
|
+
doc = REXML::Document.new Jamf::Connection::XML_HEADER
|
1195
1307
|
computer = doc.add_element self.class::RSRC_OBJECT_KEY.to_s
|
1196
1308
|
|
1197
1309
|
general = computer.add_element('general')
|
@@ -1224,5 +1336,3 @@ module JSS
|
|
1224
1336
|
end # class Computer
|
1225
1337
|
|
1226
1338
|
end # module
|
1227
|
-
|
1228
|
-
require 'jss/api_object/computer/application_installs'
|