lib/jss/api_object/directory_binding_type/admitmac.rb
def add_admin_group(value)
        raise JSS::InvalidDataError, 'Admin group must be a string.' unless value.is_a? String
        raise JSS::InvalidDataError, "Admin group \"#{value}\" already is in the list of admin groups." if @admin_group.include? value

        @admin_group << value

        container&.should_update

        @admin_group
      end
# An a specific admin group to admin_group
#
# @author Tyler Morgan
#
# @param value [String] The admin group name you wish to add to the admin group list
#
# @raise [JSS::InvalidDataError] If the value provided is not a String
# @raise [JSS::InvalidDataError] If the group provided is already a member of the admin_group array
#
# @return [Array <String>] An array of all the admin groups currently set.
An a specific admin group to admin_group
An a specific admin group to admin_group
def add_admin_group(value)
        raise JSS::InvalidDataError, 'Admin group must be a string.' unless value.is_a? String
        raise JSS::InvalidDataError, "Admin group \"#{value}\" already is in the list of admin groups." if @admin_group.include? value
        @admin_group << value
        container&.should_update
        @admin_group
      end
def add_admin_group ( value ) raise JSS :: InvalidDataError , 'Admin group must be a string.' unless value . is_a? String raise JSS :: InvalidDataError , "Admin group \"#{value}\" already is in the list of admin groups." if @admin_group . include? value @admin_group << value container &. should_update @admin_group end
An a specific admin group to admin_group
An 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 already a member of the admin_group array
[ JSS :: InvalidDataError ] If the group provided is already a member of the admin_group array
value
The admin group name you wish to add to the admin group list
The admin group name you wish to add to the admin group list
author
None