Show / Hide Table of Contents

Class UsersResource.PatchRequest

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.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<User>
DirectoryBaseServiceRequest<User>
UsersResource.PatchRequest
Implements
IClientServiceRequest<User>
IClientServiceRequest
Inherited Members
DirectoryBaseServiceRequest<User>.Xgafv
DirectoryBaseServiceRequest<User>.AccessToken
DirectoryBaseServiceRequest<User>.Alt
DirectoryBaseServiceRequest<User>.Callback
DirectoryBaseServiceRequest<User>.Fields
DirectoryBaseServiceRequest<User>.Key
DirectoryBaseServiceRequest<User>.OauthToken
DirectoryBaseServiceRequest<User>.PrettyPrint
DirectoryBaseServiceRequest<User>.QuotaUser
DirectoryBaseServiceRequest<User>.UploadType
DirectoryBaseServiceRequest<User>.UploadProtocol
ClientServiceRequest<User>.Execute()
ClientServiceRequest<User>.ExecuteAsStream()
ClientServiceRequest<User>.ExecuteAsync()
ClientServiceRequest<User>.ExecuteAsync(CancellationToken)
ClientServiceRequest<User>.ExecuteAsStreamAsync()
ClientServiceRequest<User>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<User>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<User>.GenerateRequestUri()
ClientServiceRequest<User>.GetDefaultETagAction(String)
ClientServiceRequest<User>.ETagAction
ClientServiceRequest<User>.ModifyRequest
ClientServiceRequest<User>.RequestParameters
ClientServiceRequest<User>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class 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
System.String userKey

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.User>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.User>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.User>.RestPath

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
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.User>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Admin.Directory.directory_v1.DirectoryBaseServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.User>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top