lib/jss/api_object/directory_binding_type/active_directory.rb
# Add a specific admin group to the admin_groups
# 
# @author Tyler Morgan
#
# @param newvalue [String] The admin group name you want 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 not in the admin_group array
#
# @return [Array <String>] An array of all the admin groups currently set.
Add a specific admin group to the admin_groups
Add a specific admin group to the admin_groups
def add_admin_group(value)
                raise JSS::InvalidDataError, "Admin group must be a string." unless value.is_a? String
                raise JSS::InvalidDataError, "Group \"#{value}\" already is in the admin groups." unless !@admin_groups.include? value
                @admin_groups << value
                self.container&.should_update
                return @admin_groups
            end
def add_admin_group ( value ) raise JSS :: InvalidDataError , "Admin group must be a string." unless value . is_a? String raise JSS :: InvalidDataError , "Group \"#{value}\" already is in the admin groups." unless ! @admin_groups . include? value @admin_groups << value self . container &. should_update return @admin_groups end
Add a specific admin group to the admin_groups
Add a specific admin group to the admin_groups
# Set the object to needing to be updated.
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 want to add to the admin group list
The admin group name you want to add to the admin group list
author
None