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.



701
702
703
# File 'lib/google/apis/people_v1/classes.rb', line 701

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)


681
682
683
# File 'lib/google/apis/people_v1/classes.rb', line 681

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)


693
694
695
# File 'lib/google/apis/people_v1/classes.rb', line 693

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>)


699
700
701
# File 'lib/google/apis/people_v1/classes.rb', line 699

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



706
707
708
709
710
# File 'lib/google/apis/people_v1/classes.rb', line 706

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