ruby-jss 0.11.0 → 0.12.0
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.
Potentially problematic release.
This version of ruby-jss might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGES.md +21 -1
- data/lib/jss.rb +8 -6
- data/lib/jss/api_object.rb +1 -2
- data/lib/jss/api_object/computer.rb +45 -25
- data/lib/jss/api_object/computer/application_installs.rb +119 -0
- data/lib/jss/api_object/{osx_configuration_profile.rb → configuration_profile.rb} +14 -94
- data/lib/jss/api_object/configuration_profile/mobile_device_configuration_profile.rb +75 -0
- data/lib/jss/api_object/configuration_profile/osx_configuration_profile.rb +117 -0
- data/lib/jss/api_object/mdm.rb +2 -0
- data/lib/jss/api_object/mobile_device.rb +1 -1
- data/lib/jss/api_object/self_servable.rb +47 -9
- data/lib/jss/client.rb +62 -356
- data/lib/jss/client/jamf_binary.rb +132 -0
- data/lib/jss/client/jamf_helper.rb +298 -0
- data/lib/jss/client/management_action.rb +114 -0
- data/lib/jss/composer.rb +145 -168
- data/lib/jss/ruby_extensions/hash.rb +119 -64
- data/lib/jss/version.rb +1 -1
- metadata +29 -4
- data/lib/jss/api_object/mobile_device_configuration_profile.rb +0 -62
data/lib/jss/version.rb
CHANGED
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.
|
4
|
+
version: 0.12.0
|
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-
|
12
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plist
|
@@ -99,6 +99,26 @@ dependencies:
|
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: 2.3.0
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: recursive-open-struct
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '1.1'
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 1.1.0
|
112
|
+
type: :runtime
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '1.1'
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 1.1.0
|
102
122
|
description: |2
|
103
123
|
The ruby-jss gem provides the JSS module, a framework for interacting with the REST API
|
104
124
|
of the Jamf Software Server (JSS), the core of Jamf Pro, an enterprise/education
|
@@ -139,7 +159,11 @@ files:
|
|
139
159
|
- lib/jss/api_object/categorizable.rb
|
140
160
|
- lib/jss/api_object/category.rb
|
141
161
|
- lib/jss/api_object/computer.rb
|
162
|
+
- lib/jss/api_object/computer/application_installs.rb
|
142
163
|
- lib/jss/api_object/computer_invitation.rb
|
164
|
+
- lib/jss/api_object/configuration_profile.rb
|
165
|
+
- lib/jss/api_object/configuration_profile/mobile_device_configuration_profile.rb
|
166
|
+
- lib/jss/api_object/configuration_profile/osx_configuration_profile.rb
|
143
167
|
- lib/jss/api_object/creatable.rb
|
144
168
|
- lib/jss/api_object/criteriable.rb
|
145
169
|
- lib/jss/api_object/criteriable/criteria.rb
|
@@ -176,10 +200,8 @@ files:
|
|
176
200
|
- lib/jss/api_object/mdm.rb
|
177
201
|
- lib/jss/api_object/mobile_device.rb
|
178
202
|
- lib/jss/api_object/mobile_device_application.rb
|
179
|
-
- lib/jss/api_object/mobile_device_configuration_profile.rb
|
180
203
|
- lib/jss/api_object/netboot_server.rb
|
181
204
|
- lib/jss/api_object/network_segment.rb
|
182
|
-
- lib/jss/api_object/osx_configuration_profile.rb
|
183
205
|
- lib/jss/api_object/package.rb
|
184
206
|
- lib/jss/api_object/patch.rb
|
185
207
|
- lib/jss/api_object/patch_policy.rb
|
@@ -203,6 +225,9 @@ files:
|
|
203
225
|
- lib/jss/api_object/vppable.rb
|
204
226
|
- lib/jss/api_object/webhook.rb
|
205
227
|
- lib/jss/client.rb
|
228
|
+
- lib/jss/client/jamf_binary.rb
|
229
|
+
- lib/jss/client/jamf_helper.rb
|
230
|
+
- lib/jss/client/management_action.rb
|
206
231
|
- lib/jss/compatibility.rb
|
207
232
|
- lib/jss/composer.rb
|
208
233
|
- lib/jss/configuration.rb
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# This is just a stub for now.
|
2
|
-
|
3
|
-
#
|
4
|
-
module JSS
|
5
|
-
|
6
|
-
#
|
7
|
-
class MobileDeviceConfigurationProfile < APIObject
|
8
|
-
|
9
|
-
# Mix-Ins
|
10
|
-
###################################
|
11
|
-
include JSS::Categorizable
|
12
|
-
include JSS::Sitable
|
13
|
-
include JSS::Scopable
|
14
|
-
include JSS::SelfServable
|
15
|
-
|
16
|
-
### The base for REST resources of this class
|
17
|
-
RSRC_BASE = 'mobiledeviceconfigurationprofiles'.freeze
|
18
|
-
|
19
|
-
### the hash key used for the JSON list output of all objects in the JSS
|
20
|
-
RSRC_LIST_KEY = :configuration_profiles
|
21
|
-
|
22
|
-
### The hash key used for the JSON object output.
|
23
|
-
### It's also used in various error messages
|
24
|
-
RSRC_OBJECT_KEY = :configuration_profile
|
25
|
-
|
26
|
-
# the object type for this object in
|
27
|
-
# the object history table.
|
28
|
-
# See {APIObject#add_object_history_entry}
|
29
|
-
OBJECT_HISTORY_OBJECT_TYPE = 22
|
30
|
-
|
31
|
-
# Our scopes deal with computers
|
32
|
-
SCOPE_TARGET_KEY = :mobile_devices
|
33
|
-
|
34
|
-
SITE_SUBSET = :general
|
35
|
-
|
36
|
-
# Attributes
|
37
|
-
###################################
|
38
|
-
|
39
|
-
# @return [String] the description of this profile
|
40
|
-
attr_reader :description
|
41
|
-
|
42
|
-
# @return [String] the distribution_method of this profile
|
43
|
-
attr_reader :distribution_method
|
44
|
-
|
45
|
-
# @return [Boolean] can the user remove this profile
|
46
|
-
attr_reader :user_removable
|
47
|
-
|
48
|
-
# @return [String] the level (user/computer) of this profile
|
49
|
-
attr_reader :level
|
50
|
-
|
51
|
-
# @return [String] the uuid of this profile. NOT Updatable
|
52
|
-
attr_reader :uuid
|
53
|
-
|
54
|
-
# @return [Boolean] Should this profile be redeployed when an inventory update happens?
|
55
|
-
attr_reader :redeploy_on_update
|
56
|
-
|
57
|
-
# @return [String] the plist containing the payloads for this profile. NOT Updatable
|
58
|
-
attr_reader :payloads
|
59
|
-
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|