Show / Hide Table of Contents

Class UsersResource.PhotosResource

The "photos" collection of methods.

Inheritance
object
UsersResource.PhotosResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.PhotosResource

Constructors

PhotosResource(IClientService)

Constructs a new resource.

Declaration
public PhotosResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string)

Removes the user's photo.

Declaration
public virtual UsersResource.PhotosResource.DeleteRequest Delete(string userKey)
Parameters
Type Name Description
string 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
Type Description
UsersResource.PhotosResource.DeleteRequest

Get(string)

Retrieves the user's photo.

Declaration
public virtual UsersResource.PhotosResource.GetRequest Get(string userKey)
Parameters
Type Name Description
string 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
Type Description
UsersResource.PhotosResource.GetRequest

Patch(UserPhoto, string)

Adds a photo for the user. This method supports patch semantics.

Declaration
public virtual UsersResource.PhotosResource.PatchRequest Patch(UserPhoto body, string userKey)
Parameters
Type Name Description
UserPhoto body

The body of the request.

string 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
Type Description
UsersResource.PhotosResource.PatchRequest

Update(UserPhoto, string)

Adds a photo for the user.

Declaration
public virtual UsersResource.PhotosResource.UpdateRequest Update(UserPhoto body, string userKey)
Parameters
Type Name Description
UserPhoto body

The body of the request.

string 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
Type Description
UsersResource.PhotosResource.UpdateRequest
In this article
Back to top Generated by DocFX