Class: Jamf::Category
- Inherits:
-
CollectionResource
- Object
- JSONObject
- Resource
- CollectionResource
- Jamf::Category
- Defined in:
- lib/jamf/api/resources/collection_resources/category.rb
Overview
A building defined in the JSS
Constant Summary collapse
- RSRC_VERSION =
Constants
'v2'.freeze
- RSRC_PATH =
'categories'.freeze
- OBJECT_MODEL =
Object Model / Attributes See APIObject class documentation for details of how the OBJECT_MODEL hash works.
{ # @!attribute [r] id # @return [Integer] id: { class: :integer, identifier: :primary, readonly: true }, # @!attribute name # @return [String] name: { class: :string, identifier: true, validator: :non_empty_string, required: true }, # @!attribute priority # @return [Integer] priority: { class: :integer } }.freeze
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#add_change_log_note(note, cnx: Jamf.cnx) ⇒ void
included
from ChangeLog
Add a note to this resource’s change log.
-
#change_log(refresh = false, cnx: Jamf.cnx) ⇒ Array<Jamf::ChangeHistoryEntry>
included
from ChangeLog
The change and note history for this resource.
-
#reference ⇒ self.class::GenericReference
included
from Referable
A reference to this object.
Constructor Details
This class inherits a constructor from Jamf::JSONObject
Instance Attribute Details
#id ⇒ Integer (readonly)
|
# File 'lib/jamf/api/resources/collection_resources/category.rb', line 54
|
#priority ⇒ Integer
|
# File 'lib/jamf/api/resources/collection_resources/category.rb', line 71
|
Instance Method Details
#add_change_log_note(note, cnx: Jamf.cnx) ⇒ void Originally defined in module ChangeLog
This method returns an undefined value.
Add a note to this resource’s change log.
If the change history has been cached already, it is recached after adding the note.
#change_log(refresh = false, cnx: Jamf.cnx) ⇒ Array<Jamf::ChangeHistoryEntry> Originally defined in module ChangeLog
The change and note history for this resource.
The history is cached internally and only re-fetched when a truthy parameter is given.
#reference ⇒ self.class::GenericReference Originally defined in module Referable
Returns A reference to this object.