ruby-jss 0.7.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/CHANGES.md +29 -22
- data/README.md +66 -86
- data/bin/jamfHelperBackgrounder +148 -0
- data/bin/netseg-update +0 -1
- data/lib/jss.rb +20 -9
- data/lib/jss/api_connection.rb +369 -295
- data/lib/jss/api_object.rb +651 -418
- data/lib/jss/api_object/account.rb +69 -77
- data/lib/jss/api_object/advanced_search.rb +201 -236
- data/lib/jss/api_object/advanced_search/advanced_computer_search.rb +42 -42
- data/lib/jss/api_object/advanced_search/advanced_mobile_device_search.rb +33 -43
- data/lib/jss/api_object/advanced_search/advanced_user_search.rb +33 -43
- data/lib/jss/api_object/building.rb +39 -52
- data/lib/jss/api_object/categorizable.rb +221 -0
- data/lib/jss/api_object/category.rb +81 -89
- data/lib/jss/api_object/computer.rb +486 -525
- data/lib/jss/api_object/computer_invitation.rb +73 -86
- data/lib/jss/api_object/criteriable.rb +6 -7
- data/lib/jss/api_object/ebook.rb +21 -0
- data/lib/jss/api_object/extendable.rb +6 -8
- data/lib/jss/api_object/group.rb +0 -3
- data/lib/jss/api_object/locatable.rb +19 -20
- data/lib/jss/api_object/mac_application.rb +21 -0
- data/lib/jss/api_object/mobile_device.rb +30 -21
- data/lib/jss/api_object/mobile_device_application.rb +447 -0
- data/lib/jss/api_object/mobile_device_configuration_profile.rb +21 -0
- data/lib/jss/api_object/osx_configuration_profile.rb +0 -3
- data/lib/jss/api_object/package.rb +21 -34
- data/lib/jss/api_object/peripheral.rb +16 -18
- data/lib/jss/api_object/policy.rb +5 -83
- data/lib/jss/api_object/purchasable.rb +11 -13
- data/lib/jss/api_object/scopable.rb +11 -12
- data/lib/jss/api_object/script.rb +3 -17
- data/lib/jss/api_object/self_servable.rb +419 -205
- data/lib/jss/api_object/self_servable/icon.rb +179 -0
- data/lib/jss/api_object/updatable.rb +35 -34
- data/lib/jss/api_object/uploadable.rb +72 -70
- data/lib/jss/api_object/user.rb +6 -7
- data/lib/jss/api_object/vppable.rb +117 -0
- data/lib/jss/client.rb +264 -225
- data/lib/jss/db_connection.rb +7 -5
- data/lib/jss/exceptions.rb +50 -42
- data/lib/jss/ruby_extensions.rb +8 -7
- data/lib/jss/ruby_extensions/object.rb +19 -0
- data/lib/jss/utility.rb +82 -40
- data/lib/jss/version.rb +1 -1
- metadata +37 -68
- data/bin/jss-webhook-server +0 -3
- data/lib/jss/webhooks.rb +0 -53
- data/lib/jss/webhooks/README.md +0 -269
- data/lib/jss/webhooks/configuration.rb +0 -213
- data/lib/jss/webhooks/data/sample_handlers/RestAPIOperation-executable +0 -91
- data/lib/jss/webhooks/data/sample_handlers/RestAPIOperation.rb +0 -45
- data/lib/jss/webhooks/data/sample_jsons/ComputerAdded.json +0 -27
- data/lib/jss/webhooks/data/sample_jsons/ComputerCheckIn.json +0 -27
- data/lib/jss/webhooks/data/sample_jsons/ComputerInventoryCompleted.json +0 -27
- data/lib/jss/webhooks/data/sample_jsons/ComputerPolicyFinished.json +0 -27
- data/lib/jss/webhooks/data/sample_jsons/ComputerPushCapabilityChanged.json +0 -27
- data/lib/jss/webhooks/data/sample_jsons/JSSShutdown.json +0 -14
- data/lib/jss/webhooks/data/sample_jsons/JSSStartup.json +0 -14
- data/lib/jss/webhooks/data/sample_jsons/MobileDeviceCheckIn.json +0 -26
- data/lib/jss/webhooks/data/sample_jsons/MobileDeviceCommandCompleted.json +0 -26
- data/lib/jss/webhooks/data/sample_jsons/MobileDeviceEnrolled.json +0 -26
- data/lib/jss/webhooks/data/sample_jsons/MobileDevicePushSent.json +0 -26
- data/lib/jss/webhooks/data/sample_jsons/MobileDeviceUnEnrolled.json +0 -26
- data/lib/jss/webhooks/data/sample_jsons/PatchSoftwareTitleUpdated.json +0 -14
- data/lib/jss/webhooks/data/sample_jsons/PushSent.json +0 -11
- data/lib/jss/webhooks/data/sample_jsons/RestAPIOperation.json +0 -15
- data/lib/jss/webhooks/data/sample_jsons/SCEPChallenge.json +0 -10
- data/lib/jss/webhooks/data/sample_jsons/SmartGroupComputerMembershipChange.json +0 -13
- data/lib/jss/webhooks/data/sample_jsons/SmartGroupMobileDeviceMembershipChange.json +0 -13
- data/lib/jss/webhooks/event.rb +0 -139
- data/lib/jss/webhooks/event/computer_added.rb +0 -38
- data/lib/jss/webhooks/event/computer_check_in.rb +0 -38
- data/lib/jss/webhooks/event/computer_inventory_completed.rb +0 -38
- data/lib/jss/webhooks/event/computer_policy_finished.rb +0 -38
- data/lib/jss/webhooks/event/computer_push_capability_changed.rb +0 -38
- data/lib/jss/webhooks/event/handlers.rb +0 -192
- data/lib/jss/webhooks/event/jss_shutdown.rb +0 -38
- data/lib/jss/webhooks/event/jss_startup.rb +0 -38
- data/lib/jss/webhooks/event/mobile_device_check_in.rb +0 -38
- data/lib/jss/webhooks/event/mobile_device_command_completed.rb +0 -38
- data/lib/jss/webhooks/event/mobile_device_enrolled.rb +0 -38
- data/lib/jss/webhooks/event/mobile_device_push_sent.rb +0 -38
- data/lib/jss/webhooks/event/mobile_device_unenrolled.rb +0 -38
- data/lib/jss/webhooks/event/patch_software_title_updated.rb +0 -38
- data/lib/jss/webhooks/event/push_sent.rb +0 -38
- data/lib/jss/webhooks/event/rest_api_operation.rb +0 -38
- data/lib/jss/webhooks/event/scep_challenge.rb +0 -38
- data/lib/jss/webhooks/event/smart_group_computer_membership_change.rb +0 -38
- data/lib/jss/webhooks/event/smart_group_mobile_device_membership_change.rb +0 -38
- data/lib/jss/webhooks/event/webhook.rb +0 -40
- data/lib/jss/webhooks/event_objects.rb +0 -112
- data/lib/jss/webhooks/event_objects/computer.rb +0 -49
- data/lib/jss/webhooks/event_objects/jss.rb +0 -36
- data/lib/jss/webhooks/event_objects/mobile_device.rb +0 -48
- data/lib/jss/webhooks/event_objects/patch_software_title_update.rb +0 -38
- data/lib/jss/webhooks/event_objects/push.rb +0 -33
- data/lib/jss/webhooks/event_objects/rest_api_operation.rb +0 -37
- data/lib/jss/webhooks/event_objects/scep_challenge.rb +0 -32
- data/lib/jss/webhooks/event_objects/smart_group.rb +0 -35
- data/lib/jss/webhooks/server_app.rb +0 -37
- data/lib/jss/webhooks/server_app/routes.rb +0 -27
- data/lib/jss/webhooks/server_app/routes/handle_webhook_event.rb +0 -39
- data/lib/jss/webhooks/server_app/routes/home.rb +0 -37
- data/lib/jss/webhooks/server_app/self_signed_cert.rb +0 -65
- data/lib/jss/webhooks/server_app/server.rb +0 -60
- data/lib/jss/webhooks/version.rb +0 -32
@@ -1,38 +0,0 @@
|
|
1
|
-
### Copyright 2017 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 JSSWebHooks
|
27
|
-
|
28
|
-
class SmartGroupMobileDeviceMembershipChangeEvent < Event
|
29
|
-
|
30
|
-
EVENT_NAME = 'SmartGroupMobileDeviceMembershipChange'.freeze
|
31
|
-
OBJECT_CLASS = JSSWebHooks::EventObjects::SmartGroup
|
32
|
-
|
33
|
-
end # class
|
34
|
-
|
35
|
-
# map the EVENT_NAME (which comes from the JSS) with this class
|
36
|
-
JSSWebHooks::Event.event_to_class_names[SmartGroupMobileDeviceMembershipChangeEvent::EVENT_NAME] = SmartGroupMobileDeviceMembershipChangeEvent
|
37
|
-
|
38
|
-
end # module
|
@@ -1,40 +0,0 @@
|
|
1
|
-
### Copyright 2017 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 JSSWebHooks
|
27
|
-
|
28
|
-
class Event
|
29
|
-
|
30
|
-
WEBHOOK_ATTRIBUTES = [
|
31
|
-
:id,
|
32
|
-
:name,
|
33
|
-
:webhookEvent
|
34
|
-
].freeze
|
35
|
-
|
36
|
-
WebHook = ImmutableStruct.new(*WEBHOOK_ATTRIBUTES)
|
37
|
-
|
38
|
-
end # class event
|
39
|
-
|
40
|
-
end # module
|
@@ -1,112 +0,0 @@
|
|
1
|
-
### Copyright 2017 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 JSSWebHooks
|
27
|
-
|
28
|
-
# Event Objects are JSON structures that come from the JSS
|
29
|
-
# with every webhook event. They represent the object that was affected
|
30
|
-
# by the event. For example, A ComputerAdded event affects
|
31
|
-
# a computer, and a RestAPIOperation event affects a REST API
|
32
|
-
# object.
|
33
|
-
#
|
34
|
-
# Since these Event Objects are mostly just short-lived static data
|
35
|
-
# they don't need to be represented full-blown Classes, but they would
|
36
|
-
# be nicer to work with if they weren't just Hashes.
|
37
|
-
#
|
38
|
-
# Ruby's Struct class provides a handy way to create something that's
|
39
|
-
# more than a Hash but less than a full Class. Unfortuantely, Struct-
|
40
|
-
# derived classes are fully mutable, and require positional parameters
|
41
|
-
# when creating instances.
|
42
|
-
#
|
43
|
-
# The ImmutableStruct class, provided by the immutable-struct gem,
|
44
|
-
# (https://github.com/stitchfix/immutable-struct)
|
45
|
-
# creates classes whose instances have immutable attributes, but allow
|
46
|
-
# (nay, require) named parameters when creating instances.
|
47
|
-
#
|
48
|
-
# This module dynamically creates ImmutableStruct classes for the various
|
49
|
-
# Event Objects that come with each webhook event. Each Event Objects class
|
50
|
-
# is defined in the @object_definitions Hash, which is accessible via the
|
51
|
-
# JSSWebHooks::EventObjects::object_definitions method.
|
52
|
-
#
|
53
|
-
# Each object is defined in that Hash thus:
|
54
|
-
#
|
55
|
-
# Key: Symbol, the name of the object e.g. :computer
|
56
|
-
# Value: Hash, the attributes and other data for created the object's Class
|
57
|
-
#
|
58
|
-
# The value hash has these keys:
|
59
|
-
#
|
60
|
-
# :class_name => String, the name of the ImmutableStruct Class for this
|
61
|
-
# object, e.g. "Computer"
|
62
|
-
# :attributes => Array[<Symbol>], The instance-attributes for the Class, to
|
63
|
-
# be passed in as the keys of a hash when creating an instance.
|
64
|
-
# :methods => Array[<Hash>], if any methods are needed for the Class, other
|
65
|
-
# than the default getters for the attributes, each Hash in this array
|
66
|
-
# defines one. The :name key contains a symbol, the name of the method,
|
67
|
-
# and the :proc key contains a Proc object, the method code. See
|
68
|
-
# JSSWebHooks::EventObjects.object_definitions[:patch_software_title_update]
|
69
|
-
# for an example.
|
70
|
-
#
|
71
|
-
module EventObjects
|
72
|
-
|
73
|
-
# This will hold the object definitions for each Event Object
|
74
|
-
# it will be populated by the require statements below.
|
75
|
-
@object_definitions = {}
|
76
|
-
|
77
|
-
# Access to the Module-instance var @object_definitions
|
78
|
-
#
|
79
|
-
# @return [Hash] the @object_definitions Hash
|
80
|
-
#
|
81
|
-
def self.object_definitions
|
82
|
-
@object_definitions
|
83
|
-
end
|
84
|
-
|
85
|
-
# load in the definitions of the Event Objects
|
86
|
-
Pathname.new(__FILE__).parent.+('event_objects').children.each do |file|
|
87
|
-
require file.to_s if file.extname == '.rb'
|
88
|
-
end
|
89
|
-
|
90
|
-
# loop thru the event object definitions,
|
91
|
-
# creating a class for each, via ImmutableStruct
|
92
|
-
@object_definitions.each do |_object_key, object_def|
|
93
|
-
new_class = ImmutableStruct.new(*object_def[:attributes]) do
|
94
|
-
# Class Method to return the list of attributes for this class
|
95
|
-
@attributes = object_def[:attributes]
|
96
|
-
def self.attributes
|
97
|
-
@attributes
|
98
|
-
end
|
99
|
-
|
100
|
-
# if any non-getter methods are needed for this class,
|
101
|
-
# create them here
|
102
|
-
object_def[:methods].to_a.each do |meth|
|
103
|
-
next unless meth[:name] && meth[:proc]
|
104
|
-
define_method meth[:name], meth[:proc]
|
105
|
-
end
|
106
|
-
end
|
107
|
-
const_set object_def[:class_name], new_class
|
108
|
-
end # @object_definitions.each
|
109
|
-
|
110
|
-
end # module event object
|
111
|
-
|
112
|
-
end # module
|
@@ -1,49 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:computer] = {
|
27
|
-
class_name: 'Computer',
|
28
|
-
attributes: [
|
29
|
-
:udid,
|
30
|
-
:deviceName,
|
31
|
-
:model,
|
32
|
-
:macAddress,
|
33
|
-
:alternateMacAddress,
|
34
|
-
:serialNumber,
|
35
|
-
:osVersion,
|
36
|
-
:osBuild,
|
37
|
-
:userDirectoryID,
|
38
|
-
:username,
|
39
|
-
:realName,
|
40
|
-
:emailAddress,
|
41
|
-
:phone,
|
42
|
-
:position,
|
43
|
-
:department,
|
44
|
-
:building,
|
45
|
-
:room,
|
46
|
-
:jssID
|
47
|
-
],
|
48
|
-
methods: []
|
49
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:jss] = {
|
27
|
-
class_name: 'JSS',
|
28
|
-
attributes: [
|
29
|
-
:institution,
|
30
|
-
:hostAddress,
|
31
|
-
:webApplicationPath,
|
32
|
-
:isClusterMaster,
|
33
|
-
:jssUrl
|
34
|
-
],
|
35
|
-
methods: []
|
36
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:mobile_device] = {
|
27
|
-
class_name: 'MobileDevice',
|
28
|
-
attributes: [
|
29
|
-
:udid,
|
30
|
-
:deviceName,
|
31
|
-
:version,
|
32
|
-
:model,
|
33
|
-
:bluetoothMacAddress,
|
34
|
-
:wifiMacAddress,
|
35
|
-
:imei,
|
36
|
-
:icciID,
|
37
|
-
:product,
|
38
|
-
:serialNumber,
|
39
|
-
:userDirectoryID,
|
40
|
-
:room,
|
41
|
-
:osVersion,
|
42
|
-
:osBuild,
|
43
|
-
:modelDisplay,
|
44
|
-
:username,
|
45
|
-
:jssID
|
46
|
-
],
|
47
|
-
methods: []
|
48
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:patch_software_title_update] = {
|
27
|
-
class_name: 'PatchSoftwareTitleUpdate',
|
28
|
-
attributes: [
|
29
|
-
:name,
|
30
|
-
:latestVersion,
|
31
|
-
:lastUpdate,
|
32
|
-
:reportUrl,
|
33
|
-
:jssID
|
34
|
-
],
|
35
|
-
methods: [
|
36
|
-
{ name: :timestamp, proc: proc { Time.strptime lastUpdate.to_s[0..-4], '%s' } }
|
37
|
-
]
|
38
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:push] = {
|
27
|
-
class_name: 'Push',
|
28
|
-
attributes: [
|
29
|
-
:type,
|
30
|
-
:jssID
|
31
|
-
],
|
32
|
-
methods: []
|
33
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:rest_api_operation] = {
|
27
|
-
class_name: 'RestAPIOperation',
|
28
|
-
attributes: [
|
29
|
-
:operationSuccessful,
|
30
|
-
:objectID,
|
31
|
-
:objectName,
|
32
|
-
:objectTypeName,
|
33
|
-
:authorizedUsername,
|
34
|
-
:restAPIOperationType
|
35
|
-
],
|
36
|
-
methods: []
|
37
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
### Copyright 2017 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
|
-
JSSWebHooks::EventObjects.object_definitions[:scep_challenge] = {
|
27
|
-
class_name: 'SCEPChallenge',
|
28
|
-
attributes: [
|
29
|
-
:targetDevice
|
30
|
-
],
|
31
|
-
methods: []
|
32
|
-
}
|