Class: Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest

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

Overview

A request to copy an "Other contact" to my contacts group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyOtherContactToMyContactsGroupRequest

Returns a new instance of CopyOtherContactToMyContactsGroupRequest.



523
524
525
# File 'lib/google/apis/people_v1/classes.rb', line 523

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

Instance Attribute Details

#copy_maskString

Required. A field mask to restrict which fields are copied into the new contact. Valid values are: * emailAddresses * names * phoneNumbers Corresponds to the JSON property copyMask

Returns:

  • (String)


503
504
505
# File 'lib/google/apis/people_v1/classes.rb', line 503

def copy_mask
  @copy_mask
end

#read_maskString

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 the copy mask with metadata and membership fields if not set. 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 readMask

Returns:

  • (String)


515
516
517
# File 'lib/google/apis/people_v1/classes.rb', line 515

def read_mask
  @read_mask
end

#sourcesArray<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

Returns:

  • (Array<String>)


521
522
523
# File 'lib/google/apis/people_v1/classes.rb', line 521

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



528
529
530
531
532
# File 'lib/google/apis/people_v1/classes.rb', line 528

def update!(**args)
  @copy_mask = args[:copy_mask] if args.key?(:copy_mask)
  @read_mask = args[:read_mask] if args.key?(:read_mask)
  @sources = args[:sources] if args.key?(:sources)
end