Show / Hide Table of Contents

Class PeopleResource.UpdateContactRequest

Update contact data for an existing contact person. Any non-contact data will not be modified.

The request throws a 400 error if updatePersonFields is not specified.

The request throws a 400 error if person.metadata.sources is not specified for the contact to be updated.

The request throws a 400 error with an error with reason "failedPrecondition" if person.metadata.sources.etag is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and re-apply their updates to the latest person.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<Person>
PeopleServiceBaseServiceRequest<Person>
PeopleResource.UpdateContactRequest
Implements
Google.Apis.Requests.IClientServiceRequest<Person>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
PeopleServiceBaseServiceRequest<Person>.Xgafv
PeopleServiceBaseServiceRequest<Person>.AccessToken
PeopleServiceBaseServiceRequest<Person>.Alt
PeopleServiceBaseServiceRequest<Person>.Callback
PeopleServiceBaseServiceRequest<Person>.Fields
PeopleServiceBaseServiceRequest<Person>.Key
PeopleServiceBaseServiceRequest<Person>.OauthToken
PeopleServiceBaseServiceRequest<Person>.PrettyPrint
PeopleServiceBaseServiceRequest<Person>.QuotaUser
PeopleServiceBaseServiceRequest<Person>.UploadType
PeopleServiceBaseServiceRequest<Person>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.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.PeopleService.v1
Assembly: Google.Apis.PeopleService.v1.dll
Syntax
public class UpdateContactRequest : PeopleServiceBaseServiceRequest<Person>, IClientServiceRequest<Person>, IClientServiceRequest

Constructors

UpdateContactRequest(IClientService, Person, String)

Constructs a new UpdateContact request.

Declaration
public UpdateContactRequest(IClientService service, Person body, string resourceName)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
Person body
System.String resourceName

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.PeopleService.v1.Data.Person>.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.PeopleService.v1.Data.Person>.MethodName

ResourceName

The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of people/{person_id}.

Declaration
[RequestParameter("resourceName", RequestParameterType.Path)]
public virtual string ResourceName { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.RestPath

UpdatePersonFields

Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are:

  • addresses * biographies * birthdays * emailAddresses * events * genders * imClients * interests * locales * memberships * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * sipAddresses * urls * userDefined
Declaration
[RequestParameter("updatePersonFields", RequestParameterType.Query)]
public virtual object UpdatePersonFields { get; set; }
Property Value
Type Description
System.Object

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.PeopleService.v1.Data.Person>.GetBody()

InitParameters()

Initializes UpdateContact parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.PeopleService.v1.PeopleServiceBaseServiceRequest<Google.Apis.PeopleService.v1.Data.Person>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
Back to top