Class UsersResource.PatchRequest
Updates a user using patch semantics. The update method should be used instead, because it also supports
patch semantics and has better performance. If you're mapping an external identity to a Google identity, use
the update method instead
of the patch method. This method is unable to clear fields that contain repeated objects (addresses,
phones, etc). Use the update method instead.
Inheritance
UsersResource.PatchRequest
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.PatchRequest : DirectoryBaseServiceRequest<User>, IClientServiceRequest<User>, IClientServiceRequest
Constructors
PatchRequest(IClientService, User, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, User body, string userKey)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| User | body | |
| string | userKey |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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.
Declaration
[RequestParameter("userKey", RequestParameterType.Path)]
public virtual string UserKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()