Class: Google::Apis::PeopleV1::ContactToCreate
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::ContactToCreate
- 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 wrapper that contains the person data to populate a newly created source.
Instance Attribute Summary collapse
-
#contact_person ⇒ Google::Apis::PeopleV1::Person
Information about a person merged from various data sources such as the authenticated user's contacts and profile data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContactToCreate
constructor
A new instance of ContactToCreate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContactToCreate
Returns a new instance of ContactToCreate.
669 670 671 |
# File 'lib/google/apis/people_v1/classes.rb', line 669 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contact_person ⇒ Google::Apis::PeopleV1::Person
Information about a person merged from various data sources such as the
authenticated user's contacts and profile data. Most fields can have multiple
items. The items in a field have no guaranteed order, but each non-empty field
is guaranteed to have exactly one field with metadata.primary
set to true.
Corresponds to the JSON property contactPerson
667 668 669 |
# File 'lib/google/apis/people_v1/classes.rb', line 667 def contact_person @contact_person end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
674 675 676 |
# File 'lib/google/apis/people_v1/classes.rb', line 674 def update!(**args) @contact_person = args[:contact_person] if args.key?(:contact_person) end |