Show / Hide Table of Contents

Class UsersResource.PhotosResource.PatchRequest

Adds a photo for the user. This method supports [patch semantics](/admin- sdk/directory/v1/guides/performance#patch).

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<UserPhoto>
DirectoryBaseServiceRequest<UserPhoto>
UsersResource.PhotosResource.PatchRequest
Implements
IClientServiceRequest<UserPhoto>
IClientServiceRequest
Inherited Members
DirectoryBaseServiceRequest<UserPhoto>.Xgafv
DirectoryBaseServiceRequest<UserPhoto>.AccessToken
DirectoryBaseServiceRequest<UserPhoto>.Alt
DirectoryBaseServiceRequest<UserPhoto>.Callback
DirectoryBaseServiceRequest<UserPhoto>.Fields
DirectoryBaseServiceRequest<UserPhoto>.Key
DirectoryBaseServiceRequest<UserPhoto>.OauthToken
DirectoryBaseServiceRequest<UserPhoto>.PrettyPrint
DirectoryBaseServiceRequest<UserPhoto>.QuotaUser
DirectoryBaseServiceRequest<UserPhoto>.UploadType
DirectoryBaseServiceRequest<UserPhoto>.UploadProtocol
ClientServiceRequest<UserPhoto>.Execute()
ClientServiceRequest<UserPhoto>.ExecuteAsStream()
ClientServiceRequest<UserPhoto>.ExecuteAsync()
ClientServiceRequest<UserPhoto>.ExecuteAsync(CancellationToken)
ClientServiceRequest<UserPhoto>.ExecuteAsStreamAsync()
ClientServiceRequest<UserPhoto>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<UserPhoto>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<UserPhoto>.GenerateRequestUri()
ClientServiceRequest<UserPhoto>.GetDefaultETagAction(String)
ClientServiceRequest<UserPhoto>.ETagAction
ClientServiceRequest<UserPhoto>.ModifyRequest
ClientServiceRequest<UserPhoto>.RequestParameters
ClientServiceRequest<UserPhoto>.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<UserPhoto>, IClientServiceRequest<UserPhoto>, IClientServiceRequest

Constructors

PatchRequest(IClientService, UserPhoto, String)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, UserPhoto body, string userKey)
Parameters
Type Name Description
IClientService service
UserPhoto 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.UserPhoto>.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.UserPhoto>.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.UserPhoto>.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.UserPhoto>.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.UserPhoto>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top