lib/jss/api_object/directory_binding_type/admitmac.rb
def remove_admin_group(value)
        raise JSS::InvalidDataError, 'Admin group being removed must be a string' unless value.is_a? String
        raise JSS::InvalidDataError, "Admin group #{value} is not in the current admin group(s)." unless @admin_group.include? value

        @admin_group.delete value

        container&.should_update

        @admin_group
      end
# Remove a specific admin group to admin_group
#
# @author Tyler Morgan
#
# @param newvalue [String] The admin group name you wish to remove from the admin group list
#
# @raise [JSS::InvalidDataError] If the value provided is not a String
# @raise [JSS::InvalidDataError] If the group provided is not in the admin_group array
#
# @return [Array <String>] An array of all the admin groups currently set.
Remove a specific admin group to admin_group
Remove a specific admin group to admin_group
def remove_admin_group(value)
        raise JSS::InvalidDataError, 'Admin group being removed must be a string' unless value.is_a? String
        raise JSS::InvalidDataError, "Admin group #{value} is not in the current admin group(s)." unless @admin_group.include? value
        @admin_group.delete value
        container&.should_update
        @admin_group
      end
def remove_admin_group ( value ) raise JSS :: InvalidDataError , 'Admin group being removed must be a string' unless value . is_a? String raise JSS :: InvalidDataError , "Admin group #{value} is not in the current admin group(s)." unless @admin_group . include? value @admin_group . delete value container &. should_update @admin_group end
Remove a specific admin group to admin_group
Remove a specific admin group to admin_group
An array of all the admin groups currently set.
An array of all the admin groups currently set .
Array <String>
[JSS::InvalidDataError] If the value provided is not a String
[ JSS :: InvalidDataError ] If the value provided is not a String
[JSS::InvalidDataError] If the group provided is not in the admin_group array
[ JSS :: InvalidDataError ] If the group provided is not in the admin_group array
value
newvalue
The admin group name you wish to remove from the admin group list
The admin group name you wish to remove from the admin group list
author
None