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

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

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






Directory.Users.Photos (Admin SDK API directory_v1-rev20220802-2.0.0)












com.google.api.services.directory

Class Directory.Users.Photos

  • Enclosing class:
    Directory.Users


    public class Directory.Users.Photos
    extends Object
    The "photos" collection of methods.
    • Constructor Detail

      • Photos

        public Photos()
    • Method Detail

      • delete

        public Directory.Users.Photos.Delete delete(String userKey)
                                             throws IOException
        Removes the user's photo. Create a request for the method "photos.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:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Directory.Users.Photos.Get get(String userKey)
                                       throws IOException
        Retrieves the user's photo. Create a request for the method "photos.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:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Directory.Users.Photos.Patch patch(String userKey,
                                                  UserPhoto content)
                                           throws IOException
        Adds a photo for the user. This method supports [patch semantics](/admin- sdk/directory/v1/guides/performance#patch). Create a request for the method "photos.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:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        content - the UserPhoto
        Returns:
        the request
        Throws:
        IOException
      • update

        public Directory.Users.Photos.Update update(String userKey,
                                                    UserPhoto content)
                                             throws IOException
        Adds a photo for the user. Create a request for the method "photos.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:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        content - the UserPhoto
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy