lib/jss/api_object/scopable/scope.rb
def remove_exclusion(key, item)
        key = pluralize_key(key)
        item_id = validate_item :exclusion, key, item, error_if_not_found: false
        return unless @exclusions[key]&.include?(item_id)

        @exclusions[key].delete item_id
        @container&.should_update
      end
# Remove a single item for exclusions of this scope
#
# @param key[Symbol] the type of item being removed from the excludions, :computer, :building, etc...
#
# @param item[String,integer] a valid identifier of the item being removed
#
# @example
#   remove_exclusion(:network_segments, "foo")
#
# @return [void]
#
Remove a single item for exclusions of this scope
Remove a single item for exclusions of this scope
def remove_exclusion(key, item)
        key = pluralize_key(key)
        item_id = validate_item :exclusion, key, item, error_if_not_found: false
        return unless @exclusions[key]&.include?(item_id)
        @exclusions[key].delete item_id
        @container&.should_update
      end
def remove_exclusion ( key , item ) key = pluralize_key ( key ) item_id = validate_item :exclusion , key , item , error_if_not_found : false return unless @exclusions [ key ] &. include? ( item_id ) @exclusions [ key ] . delete item_id @container &. should_update end
Remove a single item for exclusions of this scope
Remove a single item for exclusions of this scope
None
void
key
the type of item being removed from the excludions, :computer, :building, etc
the type of item being removed from the excludions : computer : building etc
item
a valid identifier of the item being removed
a valid identifier of the item being removed
example
None