All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.Directory.Members.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






Directory.Members (Admin SDK API directory_v1-rev20220606-1.32.1)












com.google.api.services.directory

Class Directory.Members

  • Enclosing class:
    Directory


    public class Directory.Members
    extends Object
    The "members" collection of methods.
    • Constructor Detail

      • Members

        public Members()
    • Method Detail

      • delete

        public Directory.Members.Delete delete(String groupKey,
                                               String memberKey)
                                        throws IOException
        Removes a member from a group. Create a request for the method "members.delete". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        memberKey - Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Directory.Members.Get get(String groupKey,
                                         String memberKey)
                                  throws IOException
        Retrieves a group member's properties. Create a request for the method "members.get". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        memberKey - Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
        Returns:
        the request
        Throws:
        IOException
      • hasMember

        public Directory.Members.HasMember hasMember(String groupKey,
                                                     String memberKey)
                                              throws IOException
        Checks whether the given user is a member of the group. Membership can be direct or nested. Create a request for the method "members.hasMember". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        memberKey - Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Directory.Members.Insert insert(String groupKey,
                                               Member content)
                                        throws IOException
        Adds a user to the specified group. Create a request for the method "members.insert". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        content - the Member
        Returns:
        the request
        Throws:
        IOException
      • list

        public Directory.Members.List list(String groupKey)
                                    throws IOException
        Retrieves a paginated list of all members in a group. Create a request for the method "members.list". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Directory.Members.Patch patch(String groupKey,
                                             String memberKey,
                                             Member content)
                                      throws IOException
        Updates the membership properties of a user in the specified group. This method supports [patch semantics](/admin-sdk/directory/v1/guides/performance#patch). Create a request for the method "members.patch". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        memberKey - Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
        content - the Member
        Returns:
        the request
        Throws:
        IOException
      • update

        public Directory.Members.Update update(String groupKey,
                                               String memberKey,
                                               Member content)
                                        throws IOException
        Updates the membership of a user in the specified group. Create a request for the method "members.update". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        groupKey - Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
        memberKey - Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
        content - the Member
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy