Class: Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest
- 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
-
#copy_mask ⇒ String
Required.
-
#read_mask ⇒ String
Optional.
-
#sources ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyOtherContactToMyContactsGroupRequest
constructor
A new instance of CopyOtherContactToMyContactsGroupRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CopyOtherContactToMyContactsGroupRequest
Returns a new instance of CopyOtherContactToMyContactsGroupRequest.
698 699 700 |
# File 'lib/google/apis/people_v1/classes.rb', line 698 def initialize(**args) update!(**args) end |
Instance Attribute Details
#copy_mask ⇒ String
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
678 679 680 |
# File 'lib/google/apis/people_v1/classes.rb', line 678 def copy_mask @copy_mask end |
#read_mask ⇒ 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 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
690 691 692 |
# File 'lib/google/apis/people_v1/classes.rb', line 690 def read_mask @read_mask 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
696 697 698 |
# File 'lib/google/apis/people_v1/classes.rb', line 696 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
703 704 705 706 707 |
# File 'lib/google/apis/people_v1/classes.rb', line 703 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 |