def save
      if @in_jss
        raise JSS::UnsupportedError, 'Updating this object in the JSS is currently not supported by ruby-jss' unless updatable?
        update
      else
        raise JSS::UnsupportedError, 'Creating this object in the JSS is currently not supported by ruby-jss' unless creatable?
        create
      end
    end
def save
      if @in_jss
        raise JSS::UnsupportedError, 'Updating this object in the JSS is currently not supported by ruby-jss' unless updatable?
        update
      else
        raise JSS::UnsupportedError, 'Creating this object in the JSS is currently not supported by ruby-jss' unless creatable?
        create
      end
    end
Constructor

 The args hash must include :id, :name, or :data.
 * :id or :name will be looked up via the API
 * * if the subclass includes JSS::Creatable, :id can be :new, to create a new object in the JSS.
     and :name is required
 * :data must be the JSON output of a separate {JSS::APIConnection} query (a Hash of valid object data)

 Some subclasses can accept other options, by pasing their keys in a final Array

 @param args[Hash] the data for looking up, or constructing, a new object.

 @option args :id[Integer] the jss id to look up

 @option args :name[String] the name to look up

 @option args :fetch_rsrc[String] a non-standard resource for fetching
   API data e.g. to limit the data returned


 init
 Public Instance Methods

 Either Create or Update this object in the JSS

 If this item is creatable or updatable, then
 create it if needed, or update it if it already exists.

 @return [Integer] the id of the item created or updated