Table of Contents

Class UsersResource.PatchRequest

Namespace
Google.Apis.Admin.Directory.directory_v1
Assembly
Google.Apis.Admin.Directory.directory_v1.dll

Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (addresses, phones, etc). Use the update method instead.

public class UsersResource.PatchRequest : DirectoryBaseServiceRequest<User>
Inheritance
UsersResource.PatchRequest
Inherited Members

Constructors

PatchRequest(IClientService, User, string)

Constructs a new Patch request.

public PatchRequest(IClientService service, User body, string userKey)

Parameters

service IClientService
body User
userKey string

Properties

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

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.

public virtual string UserKey { get; }

Property Value

string

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Patch parameter list.

protected override void InitParameters()