Class: Google::Apis::PeopleV1::UpdateContactPhotoRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/google/apis/people_v1/representations.rb

Overview

A request to update an existing contact's photo. All requests must have a valid photo format: JPEG or PNG.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateContactPhotoRequest

Returns a new instance of UpdateContactPhotoRequest.



2187
2188
2189
# File 'generated/google/apis/people_v1/classes.rb', line 2187

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#person_fieldsString

Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are:

  • addresses
  • ageRanges
  • biographies
  • birthdays
  • braggingRights
  • coverPhotos
  • emailAddresses
  • events
  • genders
  • imClients
  • interests
  • locales
  • memberships
  • metadata
  • names
  • nicknames
  • occupations
  • organizations
  • phoneNumbers
  • photos
  • relations
  • relationshipInterests
  • relationshipStatuses
  • residences
  • sipAddresses
  • skills
  • taglines
  • urls
  • userDefined Corresponds to the JSON property personFields

Returns:

  • (String)


2179
2180
2181
# File 'generated/google/apis/people_v1/classes.rb', line 2179

def person_fields
  @person_fields
end

#photo_bytesString

Required. Raw photo bytes Corresponds to the JSON property photoBytes NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2185
2186
2187
# File 'generated/google/apis/people_v1/classes.rb', line 2185

def photo_bytes
  @photo_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2192
2193
2194
2195
# File 'generated/google/apis/people_v1/classes.rb', line 2192

def update!(**args)
  @person_fields = args[:person_fields] if args.key?(:person_fields)
  @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
end