ruby-jss 0.11.0a5 → 0.11.0a6

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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +35 -29
  3. data/README.md +36 -48
  4. data/bin/cgrouper +1 -1
  5. data/bin/jamfHelperBackgrounder +1 -1
  6. data/bin/netseg-update +1 -1
  7. data/lib/jss.rb +1 -1
  8. data/lib/jss/api_connection.rb +1 -1
  9. data/lib/jss/api_object.rb +1 -1
  10. data/lib/jss/api_object/account.rb +1 -1
  11. data/lib/jss/api_object/advanced_search.rb +1 -1
  12. data/lib/jss/api_object/advanced_search/advanced_computer_search.rb +1 -1
  13. data/lib/jss/api_object/advanced_search/advanced_mobile_device_search.rb +1 -1
  14. data/lib/jss/api_object/advanced_search/advanced_user_search.rb +1 -1
  15. data/lib/jss/api_object/building.rb +1 -1
  16. data/lib/jss/api_object/categorizable.rb +1 -1
  17. data/lib/jss/api_object/category.rb +1 -1
  18. data/lib/jss/api_object/computer.rb +6 -18
  19. data/lib/jss/api_object/computer_invitation.rb +1 -1
  20. data/lib/jss/api_object/creatable.rb +1 -1
  21. data/lib/jss/api_object/criteriable.rb +1 -1
  22. data/lib/jss/api_object/criteriable/criteria.rb +1 -1
  23. data/lib/jss/api_object/criteriable/criterion.rb +1 -1
  24. data/lib/jss/api_object/department.rb +1 -1
  25. data/lib/jss/api_object/distribution_point.rb +1 -1
  26. data/lib/jss/api_object/extendable.rb +1 -1
  27. data/lib/jss/api_object/extension_attribute.rb +1 -1
  28. data/lib/jss/api_object/extension_attribute/computer_extension_attribute.rb +1 -1
  29. data/lib/jss/api_object/extension_attribute/mobile_device_extension_attribute.rb +1 -1
  30. data/lib/jss/api_object/extension_attribute/user_extension_attribute.rb +1 -1
  31. data/lib/jss/api_object/group.rb +1 -1
  32. data/lib/jss/api_object/group/computer_group.rb +1 -1
  33. data/lib/jss/api_object/group/mobile_device_group.rb +1 -1
  34. data/lib/jss/api_object/group/user_group.rb +1 -1
  35. data/lib/jss/api_object/ldap_server.rb +1 -1
  36. data/lib/jss/api_object/locatable.rb +1 -1
  37. data/lib/jss/api_object/management_history.rb +29 -17
  38. data/lib/jss/api_object/management_history/audit_event.rb +1 -0
  39. data/lib/jss/api_object/management_history/casper_imaging_log.rb +1 -0
  40. data/lib/jss/api_object/management_history/casper_remote_log.rb +1 -0
  41. data/lib/jss/api_object/management_history/computer_usage_log.rb +1 -0
  42. data/lib/jss/api_object/management_history/ebook.rb +1 -0
  43. data/lib/jss/api_object/management_history/hashlike.rb +24 -0
  44. data/lib/jss/api_object/management_history/mac_app_store_app.rb +1 -0
  45. data/lib/jss/api_object/management_history/mdm_command.rb +1 -0
  46. data/lib/jss/api_object/management_history/mobile_device_app.rb +2 -0
  47. data/lib/jss/api_object/management_history/policy_log.rb +1 -0
  48. data/lib/jss/api_object/management_history/screen_sharing_log.rb +1 -0
  49. data/lib/jss/api_object/management_history/user_location_change.rb +3 -0
  50. data/lib/jss/api_object/matchable.rb +1 -1
  51. data/lib/jss/api_object/mdm.rb +1 -1
  52. data/lib/jss/api_object/mobile_device.rb +10 -12
  53. data/lib/jss/api_object/mobile_device_application.rb +1 -1
  54. data/lib/jss/api_object/netboot_server.rb +1 -1
  55. data/lib/jss/api_object/network_segment.rb +1 -1
  56. data/lib/jss/api_object/osx_configuration_profile.rb +1 -1
  57. data/lib/jss/api_object/package.rb +1 -1
  58. data/lib/jss/api_object/patch.rb +1 -1
  59. data/lib/jss/api_object/patch_policy.rb +1 -1
  60. data/lib/jss/api_object/peripheral.rb +1 -1
  61. data/lib/jss/api_object/peripheral_type.rb +1 -1
  62. data/lib/jss/api_object/policy.rb +1 -1
  63. data/lib/jss/api_object/purchasable.rb +1 -1
  64. data/lib/jss/api_object/removable_macaddr.rb +1 -1
  65. data/lib/jss/api_object/scopable.rb +1 -1
  66. data/lib/jss/api_object/scopable/scope.rb +1 -1
  67. data/lib/jss/api_object/script.rb +1 -1
  68. data/lib/jss/api_object/self_servable.rb +1 -1
  69. data/lib/jss/api_object/self_servable/icon.rb +1 -1
  70. data/lib/jss/api_object/sitable.rb +1 -1
  71. data/lib/jss/api_object/site.rb +1 -1
  72. data/lib/jss/api_object/software_update_server.rb +1 -1
  73. data/lib/jss/api_object/updatable.rb +1 -1
  74. data/lib/jss/api_object/uploadable.rb +1 -1
  75. data/lib/jss/api_object/user.rb +1 -1
  76. data/lib/jss/api_object/vppable.rb +1 -1
  77. data/lib/jss/api_object/webhook.rb +1 -1
  78. data/lib/jss/client.rb +1 -1
  79. data/lib/jss/compatibility.rb +1 -1
  80. data/lib/jss/composer.rb +1 -1
  81. data/lib/jss/configuration.rb +1 -1
  82. data/lib/jss/db_connection.rb +1 -1
  83. data/lib/jss/exceptions.rb +1 -1
  84. data/lib/jss/ruby_extensions.rb +1 -1
  85. data/lib/jss/ruby_extensions/array.rb +1 -1
  86. data/lib/jss/ruby_extensions/filetest.rb +1 -1
  87. data/lib/jss/ruby_extensions/hash.rb +1 -1
  88. data/lib/jss/ruby_extensions/ipaddr.rb +1 -1
  89. data/lib/jss/ruby_extensions/pathname.rb +1 -1
  90. data/lib/jss/ruby_extensions/string.rb +1 -1
  91. data/lib/jss/ruby_extensions/time.rb +1 -1
  92. data/lib/jss/server.rb +1 -1
  93. data/lib/jss/utility.rb +1 -1
  94. data/lib/jss/validate.rb +1 -1
  95. data/lib/jss/version.rb +2 -2
  96. metadata +3 -2
@@ -17,6 +17,7 @@ module JSS
17
17
  :date_time_epoch,
18
18
  :details
19
19
  )
20
+ include JSS::ManagementHistory::HashLike
20
21
 
21
22
  # @!attribute [r] status
22
23
  # @return [String] The status of the event.
@@ -23,6 +23,7 @@ module JSS
23
23
  :room,
24
24
  :position
25
25
  )
26
+ include JSS::ManagementHistory::HashLike
26
27
 
27
28
  # @!attribute [r] date_time_epoch
28
29
  # @return [Integer] When the change occurred
@@ -36,6 +37,8 @@ module JSS
36
37
  # @!attribute [r] email_address
37
38
  # @return [String] The email_address for this change
38
39
 
40
+ alias email email_address
41
+
39
42
  # @!attribute [r] phone_number
40
43
  # @return [String] The phone_number for this change
41
44
 
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -41,20 +41,18 @@ module JSS
41
41
  # ---
42
42
  # === Adding devices to the JSS
43
43
  #
44
- # This class cannot be used to add new mobile devices to the JSS. That can only be done
45
- # via the enrollment process. See JSS::MobileDeviceInvitation for sending
46
- # an enrollment invite to a device.
44
+ # When creating new MobileDevices in the JSS with this class
45
+ # (using {JSS::MobileDevice.make}) you must specify a udid, and serial_number
46
+ # before calling `create` or `save`. You can provide these values with the
47
+ # `.make` call, or afterward using setters.
47
48
  #
48
49
  # ---
49
- # === Editing values
50
+ # === Management History & Logs
50
51
  #
51
- # Only a few values can be changed via the API, using these methods, q.v:
52
- # - #asset_tag= String
53
- # - #extension_attribute= Hash of :name or :id, and :value
54
- # - #location= Hash of values in @location, not all are required
55
- # - #purchasing= Hash of values in @purchasing, not all are required
56
- #
57
- # After modfying any values, #save must be called to save changes to the JSS.
52
+ # MobileDevice Management History and logs can now be retrieved both from a
53
+ # MobileDevice instance, and directly via class methods without fetching an
54
+ # instance. This is handled by the mixed-in {JSS::ManagementHistory} module,
55
+ # Q.V. for details.
58
56
  #
59
57
  # ---
60
58
  # === MDM Commands
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
data/lib/jss/client.rb CHANGED
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
data/lib/jss/composer.rb CHANGED
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
data/lib/jss/server.rb CHANGED
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
data/lib/jss/utility.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
 
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
data/lib/jss/validate.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Pixar
1
+ # Copyright 2018 Pixar
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
4
  # with the following modification; you may not use this file except in
data/lib/jss/version.rb CHANGED
@@ -1,4 +1,4 @@
1
- ### Copyright 2017 Pixar
1
+ ### Copyright 2018 Pixar
2
2
 
3
3
  ###
4
4
  ### Licensed under the Apache License, Version 2.0 (the "Apache License")
@@ -27,6 +27,6 @@
27
27
  module JSS
28
28
 
29
29
  ### The version of the JSS ruby gem
30
- VERSION = '0.11.0a5'.freeze
30
+ VERSION = '0.11.0a6'.freeze
31
31
 
32
32
  end # module
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0a5
4
+ version: 0.11.0a6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lasell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-15 00:00:00.000000000 Z
12
+ date: 2018-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist
@@ -165,6 +165,7 @@ files:
165
165
  - lib/jss/api_object/management_history/casper_remote_log.rb
166
166
  - lib/jss/api_object/management_history/computer_usage_log.rb
167
167
  - lib/jss/api_object/management_history/ebook.rb
168
+ - lib/jss/api_object/management_history/hashlike.rb
168
169
  - lib/jss/api_object/management_history/mac_app_store_app.rb
169
170
  - lib/jss/api_object/management_history/mdm_command.rb
170
171
  - lib/jss/api_object/management_history/mobile_device_app.rb