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.
- checksums.yaml +4 -4
- data/CHANGES.md +25 -7
- data/README-2.0.0.md +19 -8
- data/README.md +43 -30
- data/lib/jamf/api/classic/api_objects/patch_title.rb +0 -2
- data/lib/jamf/api/jamf_pro/api_objects/api_client.rb +3 -0
- data/lib/jamf/api/jamf_pro/api_objects/api_role.rb +3 -0
- data/lib/jamf/api/jamf_pro/api_objects/j_package.rb +307 -119
- data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates/plan.rb +237 -0
- data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates.rb +291 -0
- data/lib/jamf/api/jamf_pro/base_classes/oapi_object.rb +8 -0
- data/lib/jamf/api/jamf_pro/mixins/collection_resource.rb +23 -3
- data/lib/jamf/api/jamf_pro/mixins/filterable.rb +8 -0
- data/lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb +17 -3
- data/lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb +2 -0
- data/lib/jamf/api/jamf_pro/mixins/prestage.rb +3 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +123 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +112 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +159 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/authentication_type.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/{device_enrollment_disown_body.rb → available_updates.rb} +14 -10
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +151 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +372 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +124 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +143 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +120 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +175 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +244 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +264 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb +276 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault.rb +127 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +196 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +148 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +145 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v3.rb +129 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +158 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +109 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +193 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +81 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +93 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +90 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +131 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declaration.rb +111 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declarations.rb +88 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +146 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/{package_manifest.rb → location_information_v2.rb} +35 -37
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan.rb +181 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_event_store.rb +85 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_group_post.rb +99 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post.rb +98 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post_response.rb +100 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle.rb +115 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status.rb +169 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status_wrapper.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plans.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_status.rb +173 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_statuses.rb +102 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +118 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_configuration_post.rb +142 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device.rb +105 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_post.rb +97 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_response.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_group_post.rb +96 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +89 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_status.rb +127 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/{device_enrollment_prestage.rb → prestage_purchasing_information.rb} +51 -88
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +174 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +94 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +91 -0
- data/lib/jamf/api/jamf_pro/oapi_schemas.rb +24 -1
- data/lib/jamf/composer.rb +114 -107
- data/lib/jamf/oapi_validate.rb +1 -0
- data/lib/jamf/version.rb +1 -1
- data/test/bin/runtests +2 -2
- data/test/lib/jamf_test/collection_tests.rb +10 -2
- data/test/tests/computer_group.rb +29 -12
- data/test/tests/{jp_building.rb → j_building.rb} +2 -2
- data/test/tests/j_package.rb +47 -0
- metadata +87 -8
@@ -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: DssDeclarations
|
34
|
+
#
|
35
|
+
#
|
36
|
+
#
|
37
|
+
# This class was automatically generated from the api/schema
|
38
|
+
# URL path on a Jamf Pro server version 11.14.1-t1740408745756
|
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
|
+
#
|
52
|
+
#
|
53
|
+
# Sub Objects:
|
54
|
+
# Other object models used by this model's attributes.
|
55
|
+
# - Jamf::OAPISchemas::DssDeclaration
|
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/dss-declarations/{id}:GET' needs permissions:
|
61
|
+
# - Read Mobile Devices
|
62
|
+
# - Read Computers
|
63
|
+
# - '/v1/managed-software-updates/plans/{id}/declarations:GET' needs permissions:
|
64
|
+
# - Read Managed Software Updates
|
65
|
+
# - Read Computers
|
66
|
+
# - Read Mobile Devices
|
67
|
+
#
|
68
|
+
#
|
69
|
+
class DssDeclarations < Jamf::OAPIObject
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
OAPI_PROPERTIES = {
|
74
|
+
|
75
|
+
# @!attribute declarations
|
76
|
+
# @return [Array<Jamf::OAPISchemas::DssDeclaration>]
|
77
|
+
declarations: {
|
78
|
+
class: Jamf::OAPISchemas::DssDeclaration,
|
79
|
+
multi: true
|
80
|
+
}
|
81
|
+
|
82
|
+
} # end OAPI_PROPERTIES
|
83
|
+
|
84
|
+
end # class DssDeclarations
|
85
|
+
|
86
|
+
end # module OAPISchemas
|
87
|
+
|
88
|
+
end # module Jamf
|
@@ -0,0 +1,97 @@
|
|
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: EnrollmentMethod
|
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::ComputerGeneral
|
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 EnrollmentMethod < Jamf::OAPIObject
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
OAPI_PROPERTIES = {
|
68
|
+
|
69
|
+
# @!attribute [r] id
|
70
|
+
# @return [String]
|
71
|
+
id: {
|
72
|
+
class: :j_id,
|
73
|
+
identifier: :primary,
|
74
|
+
readonly: true
|
75
|
+
},
|
76
|
+
|
77
|
+
# @!attribute [r] objectName
|
78
|
+
# @return [String]
|
79
|
+
objectName: {
|
80
|
+
class: :string,
|
81
|
+
readonly: true
|
82
|
+
},
|
83
|
+
|
84
|
+
# @!attribute [r] objectType
|
85
|
+
# @return [String]
|
86
|
+
objectType: {
|
87
|
+
class: :string,
|
88
|
+
readonly: true
|
89
|
+
}
|
90
|
+
|
91
|
+
} # end OAPI_PROPERTIES
|
92
|
+
|
93
|
+
end # class EnrollmentMethod
|
94
|
+
|
95
|
+
end # module OAPISchemas
|
96
|
+
|
97
|
+
end # module Jamf
|
@@ -0,0 +1,94 @@
|
|
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: GroupMembership
|
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 GroupMembership < Jamf::OAPIObject
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
OAPI_PROPERTIES = {
|
68
|
+
|
69
|
+
# @!attribute groupId
|
70
|
+
# @return [String]
|
71
|
+
groupId: {
|
72
|
+
class: :string
|
73
|
+
},
|
74
|
+
|
75
|
+
# @!attribute groupName
|
76
|
+
# @return [String]
|
77
|
+
groupName: {
|
78
|
+
class: :string
|
79
|
+
},
|
80
|
+
|
81
|
+
# Indicates that group is smart group
|
82
|
+
# @!attribute smartGroup
|
83
|
+
# @return [Boolean]
|
84
|
+
smartGroup: {
|
85
|
+
class: :boolean
|
86
|
+
}
|
87
|
+
|
88
|
+
} # end OAPI_PROPERTIES
|
89
|
+
|
90
|
+
end # class GroupMembership
|
91
|
+
|
92
|
+
end # module OAPISchemas
|
93
|
+
|
94
|
+
end # module Jamf
|
@@ -0,0 +1,89 @@
|
|
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: InventoryPreloadExtensionAttribute
|
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::InventoryPreloadRecord
|
52
|
+
# - Jamf::OAPISchemas::InventoryPreloadRecordV2
|
53
|
+
#
|
54
|
+
# Sub Objects:
|
55
|
+
# Other object models used by this model's attributes.
|
56
|
+
#
|
57
|
+
#
|
58
|
+
# Endpoints and Privileges:
|
59
|
+
# API endpoints and HTTP operations that use this object
|
60
|
+
# model, and the Jamf Pro privileges needed to access them.
|
61
|
+
#
|
62
|
+
#
|
63
|
+
#
|
64
|
+
class InventoryPreloadExtensionAttribute < Jamf::OAPIObject
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
OAPI_PROPERTIES = {
|
69
|
+
|
70
|
+
# @!attribute name
|
71
|
+
# @return [String]
|
72
|
+
name: {
|
73
|
+
class: :string,
|
74
|
+
required: true
|
75
|
+
},
|
76
|
+
|
77
|
+
# @!attribute value
|
78
|
+
# @return [String]
|
79
|
+
value: {
|
80
|
+
class: :string
|
81
|
+
}
|
82
|
+
|
83
|
+
} # end OAPI_PROPERTIES
|
84
|
+
|
85
|
+
end # class InventoryPreloadExtensionAttribute
|
86
|
+
|
87
|
+
end # module OAPISchemas
|
88
|
+
|
89
|
+
end # module Jamf
|
@@ -0,0 +1,146 @@
|
|
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: LocationInformation
|
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::DeviceEnrollmentPrestage
|
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 LocationInformation < Jamf::OAPIObject
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
OAPI_PROPERTIES = {
|
68
|
+
|
69
|
+
# @!attribute username
|
70
|
+
# @return [String]
|
71
|
+
username: {
|
72
|
+
class: :string,
|
73
|
+
required: true
|
74
|
+
},
|
75
|
+
|
76
|
+
# @!attribute realname
|
77
|
+
# @return [String]
|
78
|
+
realname: {
|
79
|
+
class: :string,
|
80
|
+
required: true
|
81
|
+
},
|
82
|
+
|
83
|
+
# @!attribute phone
|
84
|
+
# @return [String]
|
85
|
+
phone: {
|
86
|
+
class: :string,
|
87
|
+
required: true
|
88
|
+
},
|
89
|
+
|
90
|
+
# @!attribute email
|
91
|
+
# @return [String]
|
92
|
+
email: {
|
93
|
+
class: :string,
|
94
|
+
required: true
|
95
|
+
},
|
96
|
+
|
97
|
+
# @!attribute room
|
98
|
+
# @return [String]
|
99
|
+
room: {
|
100
|
+
class: :string,
|
101
|
+
required: true
|
102
|
+
},
|
103
|
+
|
104
|
+
# @!attribute position
|
105
|
+
# @return [String]
|
106
|
+
position: {
|
107
|
+
class: :string,
|
108
|
+
required: true
|
109
|
+
},
|
110
|
+
|
111
|
+
# @!attribute departmentId
|
112
|
+
# @return [Integer]
|
113
|
+
departmentId: {
|
114
|
+
class: :integer,
|
115
|
+
required: true
|
116
|
+
},
|
117
|
+
|
118
|
+
# @!attribute buildingId
|
119
|
+
# @return [Integer]
|
120
|
+
buildingId: {
|
121
|
+
class: :integer,
|
122
|
+
required: true
|
123
|
+
},
|
124
|
+
|
125
|
+
# @!attribute id
|
126
|
+
# @return [Integer]
|
127
|
+
id: {
|
128
|
+
class: :j_id,
|
129
|
+
required: true,
|
130
|
+
identifier: :primary
|
131
|
+
},
|
132
|
+
|
133
|
+
# @!attribute versionLock
|
134
|
+
# @return [Integer]
|
135
|
+
versionLock: {
|
136
|
+
class: :integer,
|
137
|
+
required: true
|
138
|
+
}
|
139
|
+
|
140
|
+
} # end OAPI_PROPERTIES
|
141
|
+
|
142
|
+
end # class LocationInformation
|
143
|
+
|
144
|
+
end # module OAPISchemas
|
145
|
+
|
146
|
+
end # module Jamf
|
@@ -30,7 +30,7 @@ module Jamf
|
|
30
30
|
module OAPISchemas
|
31
31
|
|
32
32
|
|
33
|
-
# OAPI Object Model and Enums for:
|
33
|
+
# OAPI Object Model and Enums for: LocationInformationV2
|
34
34
|
#
|
35
35
|
#
|
36
36
|
#
|
@@ -48,7 +48,7 @@ module Jamf
|
|
48
48
|
# Container Objects:
|
49
49
|
# Other object models that use this model as the value in one
|
50
50
|
# of their attributes.
|
51
|
-
# - Jamf::OAPISchemas::
|
51
|
+
# - Jamf::OAPISchemas::DeviceEnrollmentPrestageV2
|
52
52
|
#
|
53
53
|
# Sub Objects:
|
54
54
|
# Other object models used by this model's attributes.
|
@@ -60,88 +60,86 @@ module Jamf
|
|
60
60
|
#
|
61
61
|
#
|
62
62
|
#
|
63
|
-
class
|
63
|
+
class LocationInformationV2 < Jamf::OAPIObject
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
HASH_TYPE_OPTIONS = [
|
68
|
-
'MD5',
|
69
|
-
'SHA256'
|
70
|
-
]
|
65
|
+
|
71
66
|
|
72
67
|
OAPI_PROPERTIES = {
|
73
68
|
|
74
|
-
# @!attribute
|
69
|
+
# @!attribute username
|
75
70
|
# @return [String]
|
76
|
-
|
71
|
+
username: {
|
77
72
|
class: :string,
|
78
73
|
required: true
|
79
74
|
},
|
80
75
|
|
81
|
-
# @!attribute
|
76
|
+
# @!attribute realname
|
82
77
|
# @return [String]
|
83
|
-
|
78
|
+
realname: {
|
84
79
|
class: :string,
|
85
80
|
required: true
|
86
81
|
},
|
87
82
|
|
88
|
-
# @!attribute
|
83
|
+
# @!attribute phone
|
89
84
|
# @return [String]
|
90
|
-
|
85
|
+
phone: {
|
91
86
|
class: :string,
|
92
|
-
required: true
|
93
|
-
enum: HASH_TYPE_OPTIONS
|
87
|
+
required: true
|
94
88
|
},
|
95
89
|
|
96
|
-
# @!attribute
|
90
|
+
# @!attribute email
|
97
91
|
# @return [String]
|
98
|
-
|
99
|
-
class: :string
|
92
|
+
email: {
|
93
|
+
class: :string,
|
94
|
+
required: true
|
100
95
|
},
|
101
96
|
|
102
|
-
# @!attribute
|
97
|
+
# @!attribute room
|
103
98
|
# @return [String]
|
104
|
-
|
105
|
-
class: :string
|
99
|
+
room: {
|
100
|
+
class: :string,
|
101
|
+
required: true
|
106
102
|
},
|
107
103
|
|
108
|
-
# @!attribute
|
104
|
+
# @!attribute position
|
109
105
|
# @return [String]
|
110
|
-
|
106
|
+
position: {
|
111
107
|
class: :string,
|
112
108
|
required: true
|
113
109
|
},
|
114
110
|
|
115
|
-
# @!attribute
|
111
|
+
# @!attribute departmentId
|
116
112
|
# @return [String]
|
117
|
-
|
113
|
+
departmentId: {
|
118
114
|
class: :string,
|
119
115
|
required: true
|
120
116
|
},
|
121
117
|
|
122
|
-
# @!attribute
|
118
|
+
# @!attribute buildingId
|
123
119
|
# @return [String]
|
124
|
-
|
125
|
-
class: :string
|
120
|
+
buildingId: {
|
121
|
+
class: :string,
|
122
|
+
required: true
|
126
123
|
},
|
127
124
|
|
128
|
-
# @!attribute
|
125
|
+
# @!attribute id
|
129
126
|
# @return [String]
|
130
|
-
|
131
|
-
class: :
|
132
|
-
required: true
|
127
|
+
id: {
|
128
|
+
class: :j_id,
|
129
|
+
required: true,
|
130
|
+
identifier: :primary
|
133
131
|
},
|
134
132
|
|
135
|
-
# @!attribute
|
133
|
+
# @!attribute versionLock
|
136
134
|
# @return [Integer]
|
137
|
-
|
135
|
+
versionLock: {
|
138
136
|
class: :integer,
|
139
137
|
required: true
|
140
138
|
}
|
141
139
|
|
142
140
|
} # end OAPI_PROPERTIES
|
143
141
|
|
144
|
-
end # class
|
142
|
+
end # class LocationInformationV2
|
145
143
|
|
146
144
|
end # module OAPISchemas
|
147
145
|
|