Class: Google::Apis::PeopleV1::UpdateContactPhotoRequest
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::UpdateContactPhotoRequest
- 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
-
#person_fields ⇒ String
Optional.
-
#photo_bytes ⇒ String
Required.
-
#sources ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateContactPhotoRequest
constructor
A new instance of UpdateContactPhotoRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateContactPhotoRequest
Returns a new instance of UpdateContactPhotoRequest.
2524 2525 2526 |
# File 'generated/google/apis/people_v1/classes.rb', line 2524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#person_fields ⇒ String
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 * calendarUrls * clientData *
coverPhotos * emailAddresses * events * externalIds * genders * imClients *
interests * locales * locations * memberships * metadata * miscKeywords *
names * nicknames * occupations * organizations * phoneNumbers * photos *
relations * sipAddresses * skills * urls * userDefined
Corresponds to the JSON property personFields
2510 2511 2512 |
# File 'generated/google/apis/people_v1/classes.rb', line 2510 def person_fields @person_fields end |
#photo_bytes ⇒ String
Required. Raw photo bytes
Corresponds to the JSON property photoBytes
NOTE: Values are automatically base64 encoded/decoded in the client library.
2516 2517 2518 |
# File 'generated/google/apis/people_v1/classes.rb', line 2516 def photo_bytes @photo_bytes end |
#sources ⇒ Array<String>
Optional. A mask of what source types to return. Defaults to
READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
Corresponds to the JSON property sources
2522 2523 2524 |
# File 'generated/google/apis/people_v1/classes.rb', line 2522 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2529 2530 2531 2532 2533 |
# File 'generated/google/apis/people_v1/classes.rb', line 2529 def update!(**args) @person_fields = args[:person_fields] if args.key?(:person_fields) @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes) @sources = args[:sources] if args.key?(:sources) end |