Class: Google::Apis::PeopleV1::Person

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Person

Returns a new instance of Person.



2097
2098
2099
# File 'lib/google/apis/people_v1/classes.rb', line 2097

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

Instance Attribute Details

#addressesArray<Google::Apis::PeopleV1::Address>

The person's street addresses. Corresponds to the JSON property addresses



1894
1895
1896
# File 'lib/google/apis/people_v1/classes.rb', line 1894

def addresses
  @addresses
end

#age_rangeString

Output only. DEPRECATED (Please use person.ageRanges instead) The person' s age range. Corresponds to the JSON property ageRange

Returns:

  • (String)


1900
1901
1902
# File 'lib/google/apis/people_v1/classes.rb', line 1900

def age_range
  @age_range
end

#age_rangesArray<Google::Apis::PeopleV1::AgeRangeType>

Output only. The person's age ranges. Corresponds to the JSON property ageRanges



1905
1906
1907
# File 'lib/google/apis/people_v1/classes.rb', line 1905

def age_ranges
  @age_ranges
end

#biographiesArray<Google::Apis::PeopleV1::Biography>

The person's biographies. This field is a singleton for contact sources. Corresponds to the JSON property biographies



1910
1911
1912
# File 'lib/google/apis/people_v1/classes.rb', line 1910

def biographies
  @biographies
end

#birthdaysArray<Google::Apis::PeopleV1::Birthday>

The person's birthdays. This field is a singleton for contact sources. Corresponds to the JSON property birthdays



1915
1916
1917
# File 'lib/google/apis/people_v1/classes.rb', line 1915

def birthdays
  @birthdays
end

#bragging_rightsArray<Google::Apis::PeopleV1::BraggingRights>

DEPRECATED: No data will be returned The person's bragging rights. Corresponds to the JSON property braggingRights



1920
1921
1922
# File 'lib/google/apis/people_v1/classes.rb', line 1920

def bragging_rights
  @bragging_rights
end

#calendar_urlsArray<Google::Apis::PeopleV1::CalendarUrl>

The person's calendar URLs. Corresponds to the JSON property calendarUrls



1925
1926
1927
# File 'lib/google/apis/people_v1/classes.rb', line 1925

def calendar_urls
  @calendar_urls
end

#client_dataArray<Google::Apis::PeopleV1::ClientData>

The person's client data. Corresponds to the JSON property clientData



1930
1931
1932
# File 'lib/google/apis/people_v1/classes.rb', line 1930

def client_data
  @client_data
end

#cover_photosArray<Google::Apis::PeopleV1::CoverPhoto>

Output only. The person's cover photos. Corresponds to the JSON property coverPhotos



1935
1936
1937
# File 'lib/google/apis/people_v1/classes.rb', line 1935

def cover_photos
  @cover_photos
end

#email_addressesArray<Google::Apis::PeopleV1::EmailAddress>

The person's email addresses. For connections.list, otherContacts.list, and people.listDirectoryPeople the number of email addresses is limited to 100. If a Person has more email addresses the entire set can be obtained by calling 'people.get'. Corresponds to the JSON property emailAddresses



1945
1946
1947
# File 'lib/google/apis/people_v1/classes.rb', line 1945

def email_addresses
  @email_addresses
end

#etagString

The HTTP entity tag of the resource. Used for web cache validation. Corresponds to the JSON property etag

Returns:

  • (String)


1951
1952
1953
# File 'lib/google/apis/people_v1/classes.rb', line 1951

def etag
  @etag
end

#eventsArray<Google::Apis::PeopleV1::Event>

The person's events. Corresponds to the JSON property events

Returns:



1956
1957
1958
# File 'lib/google/apis/people_v1/classes.rb', line 1956

def events
  @events
end

#external_idsArray<Google::Apis::PeopleV1::ExternalId>

The person's external IDs. Corresponds to the JSON property externalIds



1961
1962
1963
# File 'lib/google/apis/people_v1/classes.rb', line 1961

def external_ids
  @external_ids
end

#file_asesArray<Google::Apis::PeopleV1::FileAs>

The person's file-ases. Corresponds to the JSON property fileAses

Returns:



1966
1967
1968
# File 'lib/google/apis/people_v1/classes.rb', line 1966

def file_ases
  @file_ases
end

#gendersArray<Google::Apis::PeopleV1::Gender>

The person's genders. This field is a singleton for contact sources. Corresponds to the JSON property genders

Returns:



1971
1972
1973
# File 'lib/google/apis/people_v1/classes.rb', line 1971

def genders
  @genders
end

#im_clientsArray<Google::Apis::PeopleV1::ImClient>

The person's instant messaging clients. Corresponds to the JSON property imClients



1976
1977
1978
# File 'lib/google/apis/people_v1/classes.rb', line 1976

def im_clients
  @im_clients
end

#interestsArray<Google::Apis::PeopleV1::Interest>

The person's interests. Corresponds to the JSON property interests



1981
1982
1983
# File 'lib/google/apis/people_v1/classes.rb', line 1981

def interests
  @interests
end

#localesArray<Google::Apis::PeopleV1::Locale>

The person's locale preferences. Corresponds to the JSON property locales

Returns:



1986
1987
1988
# File 'lib/google/apis/people_v1/classes.rb', line 1986

def locales
  @locales
end

#locationsArray<Google::Apis::PeopleV1::Location>

The person's locations. Corresponds to the JSON property locations



1991
1992
1993
# File 'lib/google/apis/people_v1/classes.rb', line 1991

def locations
  @locations
end

#membershipsArray<Google::Apis::PeopleV1::Membership>

The person's group memberships. Corresponds to the JSON property memberships



1996
1997
1998
# File 'lib/google/apis/people_v1/classes.rb', line 1996

def memberships
  @memberships
end

#metadataGoogle::Apis::PeopleV1::PersonMetadata

The metadata about a person. Corresponds to the JSON property metadata



2001
2002
2003
# File 'lib/google/apis/people_v1/classes.rb', line 2001

def 
  @metadata
end

#misc_keywordsArray<Google::Apis::PeopleV1::MiscKeyword>

The person's miscellaneous keywords. Corresponds to the JSON property miscKeywords



2006
2007
2008
# File 'lib/google/apis/people_v1/classes.rb', line 2006

def misc_keywords
  @misc_keywords
end

#namesArray<Google::Apis::PeopleV1::Name>

The person's names. This field is a singleton for contact sources. Corresponds to the JSON property names

Returns:



2011
2012
2013
# File 'lib/google/apis/people_v1/classes.rb', line 2011

def names
  @names
end

#nicknamesArray<Google::Apis::PeopleV1::Nickname>

The person's nicknames. Corresponds to the JSON property nicknames



2016
2017
2018
# File 'lib/google/apis/people_v1/classes.rb', line 2016

def nicknames
  @nicknames
end

#occupationsArray<Google::Apis::PeopleV1::Occupation>

The person's occupations. Corresponds to the JSON property occupations



2021
2022
2023
# File 'lib/google/apis/people_v1/classes.rb', line 2021

def occupations
  @occupations
end

#organizationsArray<Google::Apis::PeopleV1::Organization>

The person's past or current organizations. Corresponds to the JSON property organizations



2026
2027
2028
# File 'lib/google/apis/people_v1/classes.rb', line 2026

def organizations
  @organizations
end

#phone_numbersArray<Google::Apis::PeopleV1::PhoneNumber>

The person's phone numbers. For connections.list, otherContacts.list, and people.listDirectoryPeople the number of phone numbers is limited to 100. If a Person has more phone numbers the entire set can be obtained by calling ' people.get'. Corresponds to the JSON property phoneNumbers



2036
2037
2038
# File 'lib/google/apis/people_v1/classes.rb', line 2036

def phone_numbers
  @phone_numbers
end

#photosArray<Google::Apis::PeopleV1::Photo>

Output only. The person's photos. Corresponds to the JSON property photos

Returns:



2041
2042
2043
# File 'lib/google/apis/people_v1/classes.rb', line 2041

def photos
  @photos
end

#relationsArray<Google::Apis::PeopleV1::Relation>

The person's relations. Corresponds to the JSON property relations



2046
2047
2048
# File 'lib/google/apis/people_v1/classes.rb', line 2046

def relations
  @relations
end

#relationship_interestsArray<Google::Apis::PeopleV1::RelationshipInterest>

Output only. DEPRECATED: No data will be returned The person's relationship interests. Corresponds to the JSON property relationshipInterests



2052
2053
2054
# File 'lib/google/apis/people_v1/classes.rb', line 2052

def relationship_interests
  @relationship_interests
end

#relationship_statusesArray<Google::Apis::PeopleV1::RelationshipStatus>

Output only. DEPRECATED: No data will be returned The person's relationship statuses. Corresponds to the JSON property relationshipStatuses



2058
2059
2060
# File 'lib/google/apis/people_v1/classes.rb', line 2058

def relationship_statuses
  @relationship_statuses
end

#residencesArray<Google::Apis::PeopleV1::Residence>

DEPRECATED: (Please use person.locations instead) The person's residences. Corresponds to the JSON property residences



2064
2065
2066
# File 'lib/google/apis/people_v1/classes.rb', line 2064

def residences
  @residences
end

#resource_nameString

The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of people/person_id`. Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


2070
2071
2072
# File 'lib/google/apis/people_v1/classes.rb', line 2070

def resource_name
  @resource_name
end

#sip_addressesArray<Google::Apis::PeopleV1::SipAddress>

The person's SIP addresses. Corresponds to the JSON property sipAddresses



2075
2076
2077
# File 'lib/google/apis/people_v1/classes.rb', line 2075

def sip_addresses
  @sip_addresses
end

#skillsArray<Google::Apis::PeopleV1::Skill>

The person's skills. Corresponds to the JSON property skills

Returns:



2080
2081
2082
# File 'lib/google/apis/people_v1/classes.rb', line 2080

def skills
  @skills
end

#taglinesArray<Google::Apis::PeopleV1::Tagline>

Output only. DEPRECATED: No data will be returned The person's taglines. Corresponds to the JSON property taglines



2085
2086
2087
# File 'lib/google/apis/people_v1/classes.rb', line 2085

def taglines
  @taglines
end

#urlsArray<Google::Apis::PeopleV1::Url>

The person's associated URLs. Corresponds to the JSON property urls

Returns:



2090
2091
2092
# File 'lib/google/apis/people_v1/classes.rb', line 2090

def urls
  @urls
end

#user_definedArray<Google::Apis::PeopleV1::UserDefined>

The person's user defined data. Corresponds to the JSON property userDefined



2095
2096
2097
# File 'lib/google/apis/people_v1/classes.rb', line 2095

def user_defined
  @user_defined
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
# File 'lib/google/apis/people_v1/classes.rb', line 2102

def update!(**args)
  @addresses = args[:addresses] if args.key?(:addresses)
  @age_range = args[:age_range] if args.key?(:age_range)
  @age_ranges = args[:age_ranges] if args.key?(:age_ranges)
  @biographies = args[:biographies] if args.key?(:biographies)
  @birthdays = args[:birthdays] if args.key?(:birthdays)
  @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
  @calendar_urls = args[:calendar_urls] if args.key?(:calendar_urls)
  @client_data = args[:client_data] if args.key?(:client_data)
  @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
  @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
  @etag = args[:etag] if args.key?(:etag)
  @events = args[:events] if args.key?(:events)
  @external_ids = args[:external_ids] if args.key?(:external_ids)
  @file_ases = args[:file_ases] if args.key?(:file_ases)
  @genders = args[:genders] if args.key?(:genders)
  @im_clients = args[:im_clients] if args.key?(:im_clients)
  @interests = args[:interests] if args.key?(:interests)
  @locales = args[:locales] if args.key?(:locales)
  @locations = args[:locations] if args.key?(:locations)
  @memberships = args[:memberships] if args.key?(:memberships)
  @metadata = args[:metadata] if args.key?(:metadata)
  @misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords)
  @names = args[:names] if args.key?(:names)
  @nicknames = args[:nicknames] if args.key?(:nicknames)
  @occupations = args[:occupations] if args.key?(:occupations)
  @organizations = args[:organizations] if args.key?(:organizations)
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
  @photos = args[:photos] if args.key?(:photos)
  @relations = args[:relations] if args.key?(:relations)
  @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
  @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
  @residences = args[:residences] if args.key?(:residences)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @sip_addresses = args[:sip_addresses] if args.key?(:sip_addresses)
  @skills = args[:skills] if args.key?(:skills)
  @taglines = args[:taglines] if args.key?(:taglines)
  @urls = args[:urls] if args.key?(:urls)
  @user_defined = args[:user_defined] if args.key?(:user_defined)
end