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

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



518
519
520
# File 'generated/google/apis/people_v1/classes.rb', line 518

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)


498
499
500
# File 'generated/google/apis/people_v1/classes.rb', line 498

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)


510
511
512
# File 'generated/google/apis/people_v1/classes.rb', line 510

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


516
517
518
# File 'generated/google/apis/people_v1/classes.rb', line 516

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



523
524
525
526
527
# File 'generated/google/apis/people_v1/classes.rb', line 523

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