Class UsersResource.UpdateRequest
Updates a user. This method supports patch semantics, meaning that you only need to include the fields you
wish to update. Fields that are not present in the request will be preserved, and fields set to null
will
be cleared. For repeating fields that contain arrays, individual items in the array can't be patched
piecemeal; they must be supplied in the request body with the desired values for all items. See the user
accounts guide for
more information.
Inheritance
UsersResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.UpdateRequest : DirectoryBaseServiceRequest<User>, IClientServiceRequest<User>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, User, string)
Constructs a new Update request.
Declaration
public UpdateRequest(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 Update parameter list.
Declaration
protected override void InitParameters()