ruby-jss 4.2.0b2 → 4.2.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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +25 -7
  3. data/README-2.0.0.md +19 -8
  4. data/README.md +43 -30
  5. data/lib/jamf/api/classic/api_objects/patch_title.rb +0 -2
  6. data/lib/jamf/api/jamf_pro/api_objects/api_client.rb +3 -0
  7. data/lib/jamf/api/jamf_pro/api_objects/api_role.rb +3 -0
  8. data/lib/jamf/api/jamf_pro/api_objects/j_package.rb +307 -119
  9. data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates/plan.rb +237 -0
  10. data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates.rb +291 -0
  11. data/lib/jamf/api/jamf_pro/base_classes/oapi_object.rb +8 -0
  12. data/lib/jamf/api/jamf_pro/mixins/collection_resource.rb +23 -3
  13. data/lib/jamf/api/jamf_pro/mixins/filterable.rb +8 -0
  14. data/lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb +17 -3
  15. data/lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb +2 -0
  16. data/lib/jamf/api/jamf_pro/mixins/prestage.rb +3 -0
  17. data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +123 -0
  18. data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +105 -0
  19. data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +112 -0
  20. data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +159 -0
  21. data/lib/jamf/api/jamf_pro/oapi_schemas/authentication_type.rb +97 -0
  22. data/lib/jamf/api/jamf_pro/oapi_schemas/{device_enrollment_disown_body.rb → available_updates.rb} +14 -10
  23. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +124 -0
  24. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +102 -0
  25. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +151 -0
  26. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +118 -0
  27. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +372 -0
  28. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +120 -0
  29. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +97 -0
  30. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +98 -0
  31. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +89 -0
  32. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +131 -0
  33. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +105 -0
  34. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +124 -0
  35. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +118 -0
  36. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +97 -0
  37. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +143 -0
  38. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +120 -0
  39. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +175 -0
  40. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +93 -0
  41. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +244 -0
  42. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +264 -0
  43. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +81 -0
  44. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb +276 -0
  45. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault.rb +127 -0
  46. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +88 -0
  47. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +196 -0
  48. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +88 -0
  49. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +148 -0
  50. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +97 -0
  51. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +145 -0
  52. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +94 -0
  53. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +97 -0
  54. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +93 -0
  55. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v3.rb +129 -0
  56. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +99 -0
  57. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +158 -0
  58. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +88 -0
  59. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +109 -0
  60. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +193 -0
  61. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +81 -0
  62. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +93 -0
  63. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +90 -0
  64. data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +131 -0
  65. data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declaration.rb +111 -0
  66. data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declarations.rb +88 -0
  67. data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +97 -0
  68. data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +94 -0
  69. data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +89 -0
  70. data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +146 -0
  71. data/lib/jamf/api/jamf_pro/oapi_schemas/{package_manifest.rb → location_information_v2.rb} +35 -37
  72. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan.rb +181 -0
  73. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_event_store.rb +85 -0
  74. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_group_post.rb +99 -0
  75. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post.rb +98 -0
  76. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post_response.rb +100 -0
  77. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle.rb +115 -0
  78. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status.rb +169 -0
  79. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status_wrapper.rb +91 -0
  80. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plans.rb +102 -0
  81. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_status.rb +173 -0
  82. data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_statuses.rb +102 -0
  83. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +94 -0
  84. data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +118 -0
  85. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_configuration_post.rb +142 -0
  86. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device.rb +105 -0
  87. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_post.rb +97 -0
  88. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_response.rb +96 -0
  89. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_group_post.rb +96 -0
  90. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +89 -0
  91. data/lib/jamf/api/jamf_pro/oapi_schemas/plan_status.rb +127 -0
  92. data/lib/jamf/api/jamf_pro/oapi_schemas/{device_enrollment_prestage.rb → prestage_purchasing_information.rb} +51 -88
  93. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +174 -0
  94. data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +94 -0
  95. data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +91 -0
  96. data/lib/jamf/api/jamf_pro/oapi_schemas.rb +24 -1
  97. data/lib/jamf/composer.rb +114 -107
  98. data/lib/jamf/oapi_validate.rb +1 -0
  99. data/lib/jamf/version.rb +1 -1
  100. data/test/bin/runtests +2 -2
  101. data/test/lib/jamf_test/collection_tests.rb +10 -2
  102. data/test/tests/computer_group.rb +29 -12
  103. data/test/tests/{jp_building.rb → j_building.rb} +2 -2
  104. data/test/tests/j_package.rb +47 -0
  105. metadata +87 -8
@@ -0,0 +1,276 @@
1
+ # Copyright 2025 Pixar
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
+ # with the following modification; you may not use this file except in
5
+ # compliance with the Apache License and the following modification to it:
6
+ # Section 6. Trademarks. is deleted and replaced with:
7
+ #
8
+ # 6. Trademarks. This License does not grant permission to use the trade
9
+ # names, trademarks, service marks, or product names of the Licensor
10
+ # and its affiliates, except as required to comply with Section 4(c) of
11
+ # the License and to reproduce the content of the NOTICE file.
12
+ #
13
+ # You may obtain a copy of the Apache License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the Apache License with the above modification is
19
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ # KIND, either express or implied. See the Apache License for the specific
21
+ # language governing permissions and limitations under the Apache License.
22
+ #
23
+
24
+
25
+ module Jamf
26
+
27
+ # This module is the namespace for all objects defined
28
+ # in the OAPI JSON schema under the components => schemas key
29
+ #
30
+ module OAPISchemas
31
+
32
+
33
+ # OAPI Object Model and Enums for: ComputerInventory
34
+ #
35
+ #
36
+ #
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
+ #
40
+ # This class may be used directly, e.g instances of other classes may
41
+ # use instances of this class as one of their own properties/attributes.
42
+ #
43
+ # It may also be used as a superclass when implementing Jamf Pro API
44
+ # Resources in ruby-jss. The subclasses include appropriate mixins, and
45
+ # should expand on the basic functionality provided here.
46
+ #
47
+ #
48
+ # Container Objects:
49
+ # Other object models that use this model as the value in one
50
+ # of their attributes.
51
+ # - Jamf::OAPISchemas::ComputerInventorySearchResults
52
+ #
53
+ # Sub Objects:
54
+ # Other object models used by this model's attributes.
55
+ # - Jamf::OAPISchemas::ComputerGeneral
56
+ # - Jamf::OAPISchemas::ComputerDiskEncryption
57
+ # - Jamf::OAPISchemas::ComputerPurchase
58
+ # - Jamf::OAPISchemas::ComputerApplication
59
+ # - Jamf::OAPISchemas::ComputerStorage
60
+ # - Jamf::OAPISchemas::ComputerUserAndLocation
61
+ # - Jamf::OAPISchemas::ComputerConfigurationProfile
62
+ # - Jamf::OAPISchemas::ComputerPrinter
63
+ # - Jamf::OAPISchemas::ComputerService
64
+ # - Jamf::OAPISchemas::ComputerHardware
65
+ # - Jamf::OAPISchemas::ComputerLocalUserAccount
66
+ # - Jamf::OAPISchemas::ComputerCertificate
67
+ # - Jamf::OAPISchemas::ComputerAttachment
68
+ # - Jamf::OAPISchemas::ComputerPlugin
69
+ # - Jamf::OAPISchemas::ComputerPackageReceipts
70
+ # - Jamf::OAPISchemas::ComputerFont
71
+ # - Jamf::OAPISchemas::ComputerSecurity
72
+ # - Jamf::OAPISchemas::ComputerOperatingSystem
73
+ # - Jamf::OAPISchemas::ComputerLicensedSoftware
74
+ # - Jamf::OAPISchemas::ComputerIbeacon
75
+ # - Jamf::OAPISchemas::ComputerSoftwareUpdate
76
+ # - Jamf::OAPISchemas::ComputerExtensionAttribute
77
+ # - Jamf::OAPISchemas::ComputerContentCaching
78
+ # - Jamf::OAPISchemas::GroupMembership
79
+ #
80
+ # Endpoints and Privileges:
81
+ # API endpoints and HTTP operations that use this object
82
+ # model, and the Jamf Pro privileges needed to access them.
83
+ # - '/v1/computers-inventory-detail/{id}:GET' needs permissions:
84
+ # - Read Computers
85
+ # - '/v1/computers-inventory-detail/{id}:PATCH' needs permissions:
86
+ # - Update Computers
87
+ # - '/v1/computers-inventory/{id}:GET' needs permissions:
88
+ # - Read Computers
89
+ #
90
+ #
91
+ class ComputerInventory < Jamf::OAPIObject
92
+
93
+
94
+
95
+ OAPI_PROPERTIES = {
96
+
97
+ # @!attribute [r] id
98
+ # @return [String]
99
+ id: {
100
+ class: :j_id,
101
+ identifier: :primary,
102
+ readonly: true,
103
+ min_length: 1
104
+ },
105
+
106
+ # @!attribute udid
107
+ # @return [String]
108
+ udid: {
109
+ class: :string
110
+ },
111
+
112
+ # @!attribute general
113
+ # @return [Jamf::OAPISchemas::ComputerGeneral]
114
+ general: {
115
+ class: Jamf::OAPISchemas::ComputerGeneral
116
+ },
117
+
118
+ # @!attribute diskEncryption
119
+ # @return [Jamf::OAPISchemas::ComputerDiskEncryption]
120
+ diskEncryption: {
121
+ class: Jamf::OAPISchemas::ComputerDiskEncryption
122
+ },
123
+
124
+ # @!attribute purchasing
125
+ # @return [Jamf::OAPISchemas::ComputerPurchase]
126
+ purchasing: {
127
+ class: Jamf::OAPISchemas::ComputerPurchase
128
+ },
129
+
130
+ # @!attribute applications
131
+ # @return [Array<Jamf::OAPISchemas::ComputerApplication>]
132
+ applications: {
133
+ class: Jamf::OAPISchemas::ComputerApplication,
134
+ multi: true
135
+ },
136
+
137
+ # @!attribute storage
138
+ # @return [Jamf::OAPISchemas::ComputerStorage]
139
+ storage: {
140
+ class: Jamf::OAPISchemas::ComputerStorage
141
+ },
142
+
143
+ # @!attribute userAndLocation
144
+ # @return [Jamf::OAPISchemas::ComputerUserAndLocation]
145
+ userAndLocation: {
146
+ class: Jamf::OAPISchemas::ComputerUserAndLocation
147
+ },
148
+
149
+ # @!attribute configurationProfiles
150
+ # @return [Array<Jamf::OAPISchemas::ComputerConfigurationProfile>]
151
+ configurationProfiles: {
152
+ class: Jamf::OAPISchemas::ComputerConfigurationProfile,
153
+ multi: true
154
+ },
155
+
156
+ # @!attribute printers
157
+ # @return [Array<Jamf::OAPISchemas::ComputerPrinter>]
158
+ printers: {
159
+ class: Jamf::OAPISchemas::ComputerPrinter,
160
+ multi: true
161
+ },
162
+
163
+ # @!attribute services
164
+ # @return [Array<Jamf::OAPISchemas::ComputerService>]
165
+ services: {
166
+ class: Jamf::OAPISchemas::ComputerService,
167
+ multi: true
168
+ },
169
+
170
+ # @!attribute hardware
171
+ # @return [Jamf::OAPISchemas::ComputerHardware]
172
+ hardware: {
173
+ class: Jamf::OAPISchemas::ComputerHardware
174
+ },
175
+
176
+ # @!attribute localUserAccounts
177
+ # @return [Array<Jamf::OAPISchemas::ComputerLocalUserAccount>]
178
+ localUserAccounts: {
179
+ class: Jamf::OAPISchemas::ComputerLocalUserAccount,
180
+ multi: true
181
+ },
182
+
183
+ # @!attribute certificates
184
+ # @return [Array<Jamf::OAPISchemas::ComputerCertificate>]
185
+ certificates: {
186
+ class: Jamf::OAPISchemas::ComputerCertificate,
187
+ multi: true
188
+ },
189
+
190
+ # @!attribute attachments
191
+ # @return [Array<Jamf::OAPISchemas::ComputerAttachment>]
192
+ attachments: {
193
+ class: Jamf::OAPISchemas::ComputerAttachment,
194
+ multi: true
195
+ },
196
+
197
+ # @!attribute plugins
198
+ # @return [Array<Jamf::OAPISchemas::ComputerPlugin>]
199
+ plugins: {
200
+ class: Jamf::OAPISchemas::ComputerPlugin,
201
+ multi: true
202
+ },
203
+
204
+ # @!attribute packageReceipts
205
+ # @return [Jamf::OAPISchemas::ComputerPackageReceipts]
206
+ packageReceipts: {
207
+ class: Jamf::OAPISchemas::ComputerPackageReceipts
208
+ },
209
+
210
+ # @!attribute fonts
211
+ # @return [Array<Jamf::OAPISchemas::ComputerFont>]
212
+ fonts: {
213
+ class: Jamf::OAPISchemas::ComputerFont,
214
+ multi: true
215
+ },
216
+
217
+ # @!attribute security
218
+ # @return [Jamf::OAPISchemas::ComputerSecurity]
219
+ security: {
220
+ class: Jamf::OAPISchemas::ComputerSecurity
221
+ },
222
+
223
+ # @!attribute operatingSystem
224
+ # @return [Jamf::OAPISchemas::ComputerOperatingSystem]
225
+ operatingSystem: {
226
+ class: Jamf::OAPISchemas::ComputerOperatingSystem
227
+ },
228
+
229
+ # @!attribute licensedSoftware
230
+ # @return [Array<Jamf::OAPISchemas::ComputerLicensedSoftware>]
231
+ licensedSoftware: {
232
+ class: Jamf::OAPISchemas::ComputerLicensedSoftware,
233
+ multi: true
234
+ },
235
+
236
+ # @!attribute ibeacons
237
+ # @return [Array<Jamf::OAPISchemas::ComputerIbeacon>]
238
+ ibeacons: {
239
+ class: Jamf::OAPISchemas::ComputerIbeacon,
240
+ multi: true
241
+ },
242
+
243
+ # @!attribute softwareUpdates
244
+ # @return [Array<Jamf::OAPISchemas::ComputerSoftwareUpdate>]
245
+ softwareUpdates: {
246
+ class: Jamf::OAPISchemas::ComputerSoftwareUpdate,
247
+ multi: true
248
+ },
249
+
250
+ # @!attribute extensionAttributes
251
+ # @return [Array<Jamf::OAPISchemas::ComputerExtensionAttribute>]
252
+ extensionAttributes: {
253
+ class: Jamf::OAPISchemas::ComputerExtensionAttribute,
254
+ multi: true
255
+ },
256
+
257
+ # @!attribute contentCaching
258
+ # @return [Jamf::OAPISchemas::ComputerContentCaching]
259
+ contentCaching: {
260
+ class: Jamf::OAPISchemas::ComputerContentCaching
261
+ },
262
+
263
+ # @!attribute groupMemberships
264
+ # @return [Array<Jamf::OAPISchemas::GroupMembership>]
265
+ groupMemberships: {
266
+ class: Jamf::OAPISchemas::GroupMembership,
267
+ multi: true
268
+ }
269
+
270
+ } # end OAPI_PROPERTIES
271
+
272
+ end # class ComputerInventory
273
+
274
+ end # module OAPISchemas
275
+
276
+ end # module Jamf
@@ -0,0 +1,127 @@
1
+ # Copyright 2025 Pixar
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
+ # with the following modification; you may not use this file except in
5
+ # compliance with the Apache License and the following modification to it:
6
+ # Section 6. Trademarks. is deleted and replaced with:
7
+ #
8
+ # 6. Trademarks. This License does not grant permission to use the trade
9
+ # names, trademarks, service marks, or product names of the Licensor
10
+ # and its affiliates, except as required to comply with Section 4(c) of
11
+ # the License and to reproduce the content of the NOTICE file.
12
+ #
13
+ # You may obtain a copy of the Apache License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the Apache License with the above modification is
19
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ # KIND, either express or implied. See the Apache License for the specific
21
+ # language governing permissions and limitations under the Apache License.
22
+ #
23
+
24
+
25
+ module Jamf
26
+
27
+ # This module is the namespace for all objects defined
28
+ # in the OAPI JSON schema under the components => schemas key
29
+ #
30
+ module OAPISchemas
31
+
32
+
33
+ # OAPI Object Model and Enums for: ComputerInventoryFileVault
34
+ #
35
+ #
36
+ #
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.6.1-t1718634702
39
+ #
40
+ # This class may be used directly, e.g instances of other classes may
41
+ # use instances of this class as one of their own properties/attributes.
42
+ #
43
+ # It may also be used as a superclass when implementing Jamf Pro API
44
+ # Resources in ruby-jss. The subclasses include appropriate mixins, and
45
+ # should expand on the basic functionality provided here.
46
+ #
47
+ #
48
+ # Container Objects:
49
+ # Other object models that use this model as the value in one
50
+ # of their attributes.
51
+ # - Jamf::OAPISchemas::ComputerInventoryFileVaultSearchResults
52
+ #
53
+ # Sub Objects:
54
+ # Other object models used by this model's attributes.
55
+ # - Jamf::OAPISchemas::ComputerPartitionEncryption
56
+ #
57
+ # Endpoints and Privileges:
58
+ # API endpoints and HTTP operations that use this object
59
+ # model, and the Jamf Pro privileges needed to access them.
60
+ # - '/v1/computers-inventory/{id}/filevault:GET' needs permissions:
61
+ # - View Disk Encryption Recovery Key
62
+ #
63
+ #
64
+ class ComputerInventoryFileVault < Jamf::OAPIObject
65
+
66
+ # Enums used by this class or others
67
+
68
+ INDIVIDUAL_RECOVERY_KEY_VALIDITY_STATUS_OPTIONS = [
69
+ 'VALID',
70
+ 'INVALID',
71
+ 'UNKNOWN',
72
+ 'NOT_APPLICABLE'
73
+ ]
74
+
75
+ OAPI_PROPERTIES = {
76
+
77
+ # @!attribute [r] computerId
78
+ # @return [String]
79
+ computerId: {
80
+ class: :string,
81
+ readonly: true
82
+ },
83
+
84
+ # @!attribute name
85
+ # @return [String]
86
+ name: {
87
+ class: :string
88
+ },
89
+
90
+ # @!attribute personalRecoveryKey
91
+ # @return [String]
92
+ personalRecoveryKey: {
93
+ class: :string
94
+ },
95
+
96
+ # @!attribute bootPartitionEncryptionDetails
97
+ # @return [Jamf::OAPISchemas::ComputerPartitionEncryption]
98
+ bootPartitionEncryptionDetails: {
99
+ class: Jamf::OAPISchemas::ComputerPartitionEncryption
100
+ },
101
+
102
+ # @!attribute individualRecoveryKeyValidityStatus
103
+ # @return [String]
104
+ individualRecoveryKeyValidityStatus: {
105
+ class: :string,
106
+ enum: INDIVIDUAL_RECOVERY_KEY_VALIDITY_STATUS_OPTIONS
107
+ },
108
+
109
+ # @!attribute institutionalRecoveryKeyPresent
110
+ # @return [Boolean]
111
+ institutionalRecoveryKeyPresent: {
112
+ class: :boolean
113
+ },
114
+
115
+ # @!attribute diskEncryptionConfigurationName
116
+ # @return [String]
117
+ diskEncryptionConfigurationName: {
118
+ class: :string
119
+ }
120
+
121
+ } # end OAPI_PROPERTIES
122
+
123
+ end # class ComputerInventoryFileVault
124
+
125
+ end # module OAPISchemas
126
+
127
+ end # module Jamf
@@ -0,0 +1,88 @@
1
+ # Copyright 2025 Pixar
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
+ # with the following modification; you may not use this file except in
5
+ # compliance with the Apache License and the following modification to it:
6
+ # Section 6. Trademarks. is deleted and replaced with:
7
+ #
8
+ # 6. Trademarks. This License does not grant permission to use the trade
9
+ # names, trademarks, service marks, or product names of the Licensor
10
+ # and its affiliates, except as required to comply with Section 4(c) of
11
+ # the License and to reproduce the content of the NOTICE file.
12
+ #
13
+ # You may obtain a copy of the Apache License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the Apache License with the above modification is
19
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ # KIND, either express or implied. See the Apache License for the specific
21
+ # language governing permissions and limitations under the Apache License.
22
+ #
23
+
24
+
25
+ module Jamf
26
+
27
+ # This module is the namespace for all objects defined
28
+ # in the OAPI JSON schema under the components => schemas key
29
+ #
30
+ module OAPISchemas
31
+
32
+
33
+ # OAPI Object Model and Enums for: ComputerLicensedSoftware
34
+ #
35
+ #
36
+ #
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.9.2-t1726753918
39
+ #
40
+ # This class may be used directly, e.g instances of other classes may
41
+ # use instances of this class as one of their own properties/attributes.
42
+ #
43
+ # It may also be used as a superclass when implementing Jamf Pro API
44
+ # Resources in ruby-jss. The subclasses include appropriate mixins, and
45
+ # should expand on the basic functionality provided here.
46
+ #
47
+ #
48
+ # Container Objects:
49
+ # Other object models that use this model as the value in one
50
+ # of their attributes.
51
+ # - Jamf::OAPISchemas::ComputerInventory
52
+ #
53
+ # Sub Objects:
54
+ # Other object models used by this model's attributes.
55
+ #
56
+ #
57
+ # Endpoints and Privileges:
58
+ # API endpoints and HTTP operations that use this object
59
+ # model, and the Jamf Pro privileges needed to access them.
60
+ #
61
+ #
62
+ #
63
+ class ComputerLicensedSoftware < Jamf::OAPIObject
64
+
65
+
66
+
67
+ OAPI_PROPERTIES = {
68
+
69
+ # @!attribute id
70
+ # @return [String]
71
+ id: {
72
+ class: :j_id,
73
+ identifier: :primary
74
+ },
75
+
76
+ # @!attribute name
77
+ # @return [String]
78
+ name: {
79
+ class: :string
80
+ }
81
+
82
+ } # end OAPI_PROPERTIES
83
+
84
+ end # class ComputerLicensedSoftware
85
+
86
+ end # module OAPISchemas
87
+
88
+ end # module Jamf
@@ -0,0 +1,196 @@
1
+ # Copyright 2025 Pixar
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "Apache License")
4
+ # with the following modification; you may not use this file except in
5
+ # compliance with the Apache License and the following modification to it:
6
+ # Section 6. Trademarks. is deleted and replaced with:
7
+ #
8
+ # 6. Trademarks. This License does not grant permission to use the trade
9
+ # names, trademarks, service marks, or product names of the Licensor
10
+ # and its affiliates, except as required to comply with Section 4(c) of
11
+ # the License and to reproduce the content of the NOTICE file.
12
+ #
13
+ # You may obtain a copy of the Apache License at
14
+ #
15
+ # http://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the Apache License with the above modification is
19
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ # KIND, either express or implied. See the Apache License for the specific
21
+ # language governing permissions and limitations under the Apache License.
22
+ #
23
+
24
+
25
+ module Jamf
26
+
27
+ # This module is the namespace for all objects defined
28
+ # in the OAPI JSON schema under the components => schemas key
29
+ #
30
+ module OAPISchemas
31
+
32
+
33
+ # OAPI Object Model and Enums for: ComputerLocalUserAccount
34
+ #
35
+ #
36
+ #
37
+ # This class was automatically generated from the api/schema
38
+ # URL path on a Jamf Pro server version 11.9.2-t1726753918
39
+ #
40
+ # This class may be used directly, e.g instances of other classes may
41
+ # use instances of this class as one of their own properties/attributes.
42
+ #
43
+ # It may also be used as a superclass when implementing Jamf Pro API
44
+ # Resources in ruby-jss. The subclasses include appropriate mixins, and
45
+ # should expand on the basic functionality provided here.
46
+ #
47
+ #
48
+ # Container Objects:
49
+ # Other object models that use this model as the value in one
50
+ # of their attributes.
51
+ # - Jamf::OAPISchemas::ComputerInventory
52
+ #
53
+ # Sub Objects:
54
+ # Other object models used by this model's attributes.
55
+ #
56
+ #
57
+ # Endpoints and Privileges:
58
+ # API endpoints and HTTP operations that use this object
59
+ # model, and the Jamf Pro privileges needed to access them.
60
+ #
61
+ #
62
+ #
63
+ class ComputerLocalUserAccount < Jamf::OAPIObject
64
+
65
+ # Enums used by this class or others
66
+
67
+ USER_ACCOUNT_TYPE_OPTIONS = [
68
+ 'LOCAL',
69
+ 'MOBILE',
70
+ 'UNKNOWN'
71
+ ]
72
+
73
+ AZURE_ACTIVE_DIRECTORY_ID_OPTIONS = [
74
+ 'ACTIVATED',
75
+ 'DEACTIVATED',
76
+ 'UNRESPONSIVE',
77
+ 'UNKNOWN'
78
+ ]
79
+
80
+ OAPI_PROPERTIES = {
81
+
82
+ # @!attribute uid
83
+ # @return [String]
84
+ uid: {
85
+ class: :string
86
+ },
87
+
88
+ # @!attribute [r] userGuid
89
+ # @return [String]
90
+ userGuid: {
91
+ class: :string,
92
+ readonly: true
93
+ },
94
+
95
+ # @!attribute username
96
+ # @return [String]
97
+ username: {
98
+ class: :string
99
+ },
100
+
101
+ # @!attribute fullName
102
+ # @return [String]
103
+ fullName: {
104
+ class: :string
105
+ },
106
+
107
+ # @!attribute admin
108
+ # @return [Boolean]
109
+ admin: {
110
+ class: :boolean
111
+ },
112
+
113
+ # @!attribute homeDirectory
114
+ # @return [String]
115
+ homeDirectory: {
116
+ class: :string
117
+ },
118
+
119
+ # Home directory size in MB.
120
+ # @!attribute [r] homeDirectorySizeMb
121
+ # @return [Integer]
122
+ homeDirectorySizeMb: {
123
+ class: :integer,
124
+ format: 'int64',
125
+ readonly: true
126
+ },
127
+
128
+ # @!attribute fileVault2Enabled
129
+ # @return [Boolean]
130
+ fileVault2Enabled: {
131
+ class: :boolean
132
+ },
133
+
134
+ # @!attribute userAccountType
135
+ # @return [String]
136
+ userAccountType: {
137
+ class: :string,
138
+ enum: USER_ACCOUNT_TYPE_OPTIONS
139
+ },
140
+
141
+ # @!attribute passwordMinLength
142
+ # @return [Integer]
143
+ passwordMinLength: {
144
+ class: :integer
145
+ },
146
+
147
+ # @!attribute passwordMaxAge
148
+ # @return [Integer]
149
+ passwordMaxAge: {
150
+ class: :integer
151
+ },
152
+
153
+ # @!attribute passwordMinComplexCharacters
154
+ # @return [Integer]
155
+ passwordMinComplexCharacters: {
156
+ class: :integer
157
+ },
158
+
159
+ # @!attribute passwordHistoryDepth
160
+ # @return [Integer]
161
+ passwordHistoryDepth: {
162
+ class: :integer
163
+ },
164
+
165
+ # @!attribute passwordRequireAlphanumeric
166
+ # @return [Boolean]
167
+ passwordRequireAlphanumeric: {
168
+ class: :boolean
169
+ },
170
+
171
+ # @!attribute computerAzureActiveDirectoryId
172
+ # @return [String]
173
+ computerAzureActiveDirectoryId: {
174
+ class: :string
175
+ },
176
+
177
+ # @!attribute userAzureActiveDirectoryId
178
+ # @return [String]
179
+ userAzureActiveDirectoryId: {
180
+ class: :string
181
+ },
182
+
183
+ # @!attribute azureActiveDirectoryId
184
+ # @return [String]
185
+ azureActiveDirectoryId: {
186
+ class: :string,
187
+ enum: AZURE_ACTIVE_DIRECTORY_ID_OPTIONS
188
+ }
189
+
190
+ } # end OAPI_PROPERTIES
191
+
192
+ end # class ComputerLocalUserAccount
193
+
194
+ end # module OAPISchemas
195
+
196
+ end # module Jamf