ruby-jss 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-jss might be problematic. Click here for more details.

Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +26 -0
  3. data/lib/jamf.rb +8 -13
  4. data/lib/jamf/api/{abstract_classes → base_classes}/collection_resource.rb +6 -5
  5. data/lib/jamf/api/{abstract_classes → base_classes}/json_object.rb +4 -20
  6. data/lib/jamf/api/{abstract_classes → base_classes}/prestage.rb +1 -1
  7. data/lib/jamf/api/{abstract_classes → base_classes}/resource.rb +6 -2
  8. data/lib/jamf/api/{abstract_classes → base_classes}/singleton_resource.rb +3 -2
  9. data/lib/jamf/api/json_objects/device_enrollment_sync_status.rb +1 -1
  10. data/lib/jamf/api/json_objects/md_prestage_name.rb +1 -1
  11. data/lib/jamf/api/json_objects/md_prestage_names.rb +2 -2
  12. data/lib/jamf/api/json_objects/prestage_assignment.rb +2 -2
  13. data/lib/jamf/api/mixins/{abstract.rb → base_class.rb} +34 -16
  14. data/lib/jamf/api/resources/collection_resources/building.rb +0 -4
  15. data/lib/jamf/api/resources/collection_resources/category.rb +0 -1
  16. data/lib/jamf/api/resources/collection_resources/computer_prestage.rb +1 -1
  17. data/lib/jamf/api/resources/collection_resources/department.rb +0 -2
  18. data/lib/jamf/api/resources/collection_resources/mobile_device_prestage.rb +1 -1
  19. data/lib/jamf/version.rb +1 -1
  20. data/lib/jss/api_connection.rb +1 -36
  21. data/lib/jss/api_object/computer.rb +13 -0
  22. data/lib/jss/api_object/configuration_profile.rb +28 -3
  23. data/lib/jss/api_object/policy.rb +105 -25
  24. data/lib/jss/api_object/scopable/scope.rb +31 -30
  25. data/lib/jss/utility.rb +142 -37
  26. data/lib/jss/version.rb +1 -1
  27. metadata +8 -41
  28. data/lib/jamf/api/abstract_classes/advanced_search.rb +0 -86
  29. data/lib/jamf/api/abstract_classes/generic_reference.rb +0 -153
  30. data/lib/jamf/api/abstract_classes/prestage_skip_setup_items.rb +0 -147
  31. data/lib/jamf/api/json_objects/account_prefs.rb +0 -79
  32. data/lib/jamf/api/json_objects/android_details.rb +0 -139
  33. data/lib/jamf/api/json_objects/appletv_details.rb +0 -110
  34. data/lib/jamf/api/json_objects/attachment.rb +0 -68
  35. data/lib/jamf/api/json_objects/cellular_network.rb +0 -151
  36. data/lib/jamf/api/json_objects/computer_prestage_skip_setup_items.rb +0 -80
  37. data/lib/jamf/api/json_objects/criterion.rb +0 -152
  38. data/lib/jamf/api/json_objects/extension_attribute_value.rb +0 -128
  39. data/lib/jamf/api/json_objects/installed_application.rb +0 -59
  40. data/lib/jamf/api/json_objects/installed_certificate.rb +0 -53
  41. data/lib/jamf/api/json_objects/installed_configuration_profile.rb +0 -67
  42. data/lib/jamf/api/json_objects/installed_ebook.rb +0 -58
  43. data/lib/jamf/api/json_objects/installed_provisioning_profile.rb +0 -59
  44. data/lib/jamf/api/json_objects/ios_details.rb +0 -244
  45. data/lib/jamf/api/json_objects/location.rb +0 -95
  46. data/lib/jamf/api/json_objects/mobile_device_details.rb +0 -219
  47. data/lib/jamf/api/json_objects/mobile_device_security.rb +0 -101
  48. data/lib/jamf/api/json_objects/purchasing_data.rb +0 -125
  49. data/lib/jamf/api/mixins/locatable.rb +0 -124
  50. data/lib/jamf/api/mixins/referable.rb +0 -92
  51. data/lib/jamf/api/resources/collection_resources/account.rb +0 -163
  52. data/lib/jamf/api/resources/collection_resources/advanced_mobile_device_search.rb +0 -52
  53. data/lib/jamf/api/resources/collection_resources/advanced_user_search.rb +0 -52
  54. data/lib/jamf/api/resources/collection_resources/computer.rb +0 -49
  55. data/lib/jamf/api/resources/collection_resources/extension_attribute.rb +0 -45
  56. data/lib/jamf/api/resources/collection_resources/mobile_device.rb +0 -315
  57. data/lib/jamf/api/resources/collection_resources/site.rb +0 -77
  58. data/lib/jamf/api/resources/singleton_resources/authorization.rb +0 -88
  59. data/lib/jamf/api/resources/singleton_resources/client_checkin_settings.rb +0 -139
  60. data/lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb +0 -95
@@ -1,139 +0,0 @@
1
- # Copyright 2020 Pixar
2
-
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "Apache License")
5
- # with the following modification; you may not use this file except in
6
- # compliance with the Apache License and the following modification to it:
7
- # Section 6. Trademarks. is deleted and replaced with:
8
- #
9
- # 6. Trademarks. This License does not grant permission to use the trade
10
- # names, trademarks, service marks, or product names of the Licensor
11
- # and its affiliates, except as required to comply with Section 4(c) of
12
- # the License and to reproduce the content of the NOTICE file.
13
- #
14
- # You may obtain a copy of the Apache License at
15
- #
16
- # http://www.apache.org/licenses/LICENSE-2.0
17
- #
18
- # Unless required by applicable law or agreed to in writing, software
19
- # distributed under the Apache License with the above modification is
20
- # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- # KIND, either express or implied. See the Apache License for the specific
22
- # language governing permissions and limitations under the Apache License.
23
- #
24
- #
25
-
26
- module Jamf
27
-
28
- # The client checkin settings for the Jamf Pro Server
29
- #
30
- class ClientCheckInSettings < Jamf::SingletonResource
31
-
32
- # Mix-Ins
33
- #####################################
34
-
35
- extend Jamf::ChangeLog
36
- include Jamf::ChangeLog
37
-
38
- # Constants
39
- #####################################
40
-
41
- UPDATABLE = true
42
-
43
- RSRC_VERSION = 'v2'.freeze
44
-
45
- RSRC_PATH = 'check-in'.freeze
46
-
47
- OBJECT_MODEL = {
48
-
49
- # @!attribute checkInFrequency
50
- # @return [integer]
51
- checkInFrequency: {
52
- class: :integer
53
- },
54
-
55
- # @!attribute isCreateHooks
56
- # @return [Boolean]
57
- createHooks: {
58
- class: :boolean
59
- },
60
-
61
- # @!attribute isHookLog
62
- # @return [Boolean]
63
- hookLog: {
64
- class: :boolean
65
- },
66
-
67
- # @!attribute isHookPolicies
68
- # @return [Boolean]
69
- hookPolicies: {
70
- class: :boolean
71
- },
72
-
73
- # @!attribute isHookHideRestore
74
- # @return [Boolean]
75
- hookHideRestore: {
76
- class: :boolean
77
- },
78
-
79
- # @!attribute isHookMCX
80
- # @return [Boolean]
81
- hookMcx: {
82
- class: :boolean
83
- },
84
-
85
- # @!attribute isBackgroundHooks
86
- # @return [Boolean]
87
- backgroundHooks: {
88
- class: :boolean
89
- },
90
-
91
- # @!attribute isHookDisplayStatus
92
- # @return [Boolean]
93
- hookDisplayStatus: {
94
- class: :boolean
95
- },
96
-
97
- # @!attribute isCreateStartupScript
98
- # @return [Boolean]
99
- createStartupScript: {
100
- class: :boolean
101
- },
102
-
103
- # @!attribute isStartupLog
104
- # @return [Boolean]
105
- startupLog: {
106
- class: :boolean
107
- },
108
-
109
- # @!attribute isStartupPolicies
110
- # @return [Boolean]
111
- startupPolicies: {
112
- class: :boolean
113
- },
114
-
115
- # @!attribute isStartupSSH
116
- # @return [Boolean]
117
- startupSsh: {
118
- class: :boolean
119
- },
120
-
121
- # @!attribute isStartupMCX
122
- # @return [Boolean]
123
- startupMcx: {
124
- class: :boolean
125
- },
126
-
127
- # @!attribute isEnableLocalConfigurationProfiles
128
- # @return [Boolean]
129
- enableLocalConfigurationProfiles: {
130
- class: :boolean
131
- }
132
-
133
- }.freeze # end OBJECT_MODEL
134
-
135
- parse_object_model
136
-
137
- end # class ClientCheckIn
138
-
139
- end # module JAMF
@@ -1,95 +0,0 @@
1
- # Copyright 2020 Pixar
2
-
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "Apache License")
5
- # with the following modification; you may not use this file except in
6
- # compliance with the Apache License and the following modification to it:
7
- # Section 6. Trademarks. is deleted and replaced with:
8
- #
9
- # 6. Trademarks. This License does not grant permission to use the trade
10
- # names, trademarks, service marks, or product names of the Licensor
11
- # and its affiliates, except as required to comply with Section 4(c) of
12
- # the License and to reproduce the content of the NOTICE file.
13
- #
14
- # You may obtain a copy of the Apache License at
15
- #
16
- # http://www.apache.org/licenses/LICENSE-2.0
17
- #
18
- # Unless required by applicable law or agreed to in writing, software
19
- # distributed under the Apache License with the above modification is
20
- # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- # KIND, either express or implied. See the Apache License for the specific
22
- # language governing permissions and limitations under the Apache License.
23
- #
24
- #
25
-
26
- module Jamf
27
-
28
- # The device re-enrollment settings for the Jamf Pro Server
29
- #
30
- class ReEnrollmentSettings < Jamf::SingletonResource
31
-
32
- # Mix-Ins
33
- #####################################
34
-
35
- include Jamf::ChangeLog
36
-
37
- # Constants
38
- #####################################
39
-
40
- RSRC_VERSION = 'v1'.freeze
41
-
42
- RSRC_PATH = 'reenrollment'.freeze
43
-
44
- FLUSH_MDM_QUEUE_NOTHING = 'DELETE_NOTHING'.freeze
45
- FLUSH_MDM_QUEUE_ERRORS = 'DELETE_ERRORS'.freeze
46
- FLUSH_MDM_QUEUE_NOT_ACKD = 'DELETE_EVERYTHING_EXCEPT_ACKNOWLEDGED'.freeze
47
- FLUSH_MDM_QUEUE_EVERYTHING = 'DELETE_EVERYTHING'.freeze
48
-
49
- FLUSH_MDM_QUEUE_OPTIONS = [
50
- FLUSH_MDM_QUEUE_NOTHING,
51
- FLUSH_MDM_QUEUE_ERRORS,
52
- FLUSH_MDM_QUEUE_NOT_ACKD,
53
- FLUSH_MDM_QUEUE_EVERYTHING
54
- ].freeze
55
-
56
- OBJECT_MODEL = {
57
-
58
- # @!attribute isFlushPolicyHistoryEnabled
59
- # @return [Boolean]
60
- isFlushPolicyHistoryEnabled: {
61
- class: :boolean
62
- },
63
-
64
- # @!attribute isFlushLocationInformationEnabled
65
- # @return [Boolean]
66
- isFlushLocationInformationEnabled: {
67
- class: :boolean
68
- },
69
-
70
- # @!attribute isFlushLocationInformationHistoryEnabled
71
- # @return [Boolean]
72
- isFlushLocationInformationHistoryEnabled: {
73
- class: :boolean
74
- },
75
-
76
- # @!attribute isFlushExtensionAttributesEnabled
77
- # @return [Boolean]
78
- isFlushExtensionAttributesEnabled: {
79
- class: :boolean
80
- },
81
-
82
- # @!attribute flushMDMQueue
83
- # @param [Symbol] a key from ReEnrollment::FLUSH_MDM_QUEUE_OPTIONS
84
- # @return [Symbol]
85
- flushMDMQueue: {
86
- class: :string,
87
- enum: FLUSH_MDM_QUEUE_OPTIONS
88
- }
89
-
90
- }.freeze # end OBJECT_MODEL
91
- parse_object_model
92
-
93
- end # class ReEnrollment
94
-
95
- end # module JAMF