Class: Google::Apis::PeopleV1::Person
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Person
- 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
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
-
#addresses ⇒ Array<Google::Apis::PeopleV1::Address>
The person's street addresses.
-
#age_range ⇒ String
DEPRECATED (Please use
person.ageRanges
instead)** The person's read-only age range. -
#age_ranges ⇒ Array<Google::Apis::PeopleV1::AgeRangeType>
The person's read-only age ranges.
-
#biographies ⇒ Array<Google::Apis::PeopleV1::Biography>
The person's biographies.
-
#birthdays ⇒ Array<Google::Apis::PeopleV1::Birthday>
The person's birthdays.
-
#bragging_rights ⇒ Array<Google::Apis::PeopleV1::BraggingRights>
The person's bragging rights.
-
#cover_photos ⇒ Array<Google::Apis::PeopleV1::CoverPhoto>
The person's read-only cover photos.
-
#email_addresses ⇒ Array<Google::Apis::PeopleV1::EmailAddress>
The person's email addresses.
-
#etag ⇒ String
The HTTP entity tag of the resource.
-
#events ⇒ Array<Google::Apis::PeopleV1::Event>
The person's events.
-
#genders ⇒ Array<Google::Apis::PeopleV1::Gender>
The person's genders.
-
#im_clients ⇒ Array<Google::Apis::PeopleV1::ImClient>
The person's instant messaging clients.
-
#interests ⇒ Array<Google::Apis::PeopleV1::Interest>
The person's interests.
-
#locales ⇒ Array<Google::Apis::PeopleV1::Locale>
The person's locale preferences.
-
#memberships ⇒ Array<Google::Apis::PeopleV1::Membership>
The person's group memberships.
-
#metadata ⇒ Google::Apis::PeopleV1::PersonMetadata
The read-only metadata about a person.
-
#names ⇒ Array<Google::Apis::PeopleV1::Name>
The person's names.
-
#nicknames ⇒ Array<Google::Apis::PeopleV1::Nickname>
The person's nicknames.
-
#occupations ⇒ Array<Google::Apis::PeopleV1::Occupation>
The person's occupations.
-
#organizations ⇒ Array<Google::Apis::PeopleV1::Organization>
The person's past or current organizations.
-
#phone_numbers ⇒ Array<Google::Apis::PeopleV1::PhoneNumber>
The person's phone numbers.
-
#photos ⇒ Array<Google::Apis::PeopleV1::Photo>
The person's read-only photos.
-
#relations ⇒ Array<Google::Apis::PeopleV1::Relation>
The person's relations.
-
#relationship_interests ⇒ Array<Google::Apis::PeopleV1::RelationshipInterest>
The person's read-only relationship interests.
-
#relationship_statuses ⇒ Array<Google::Apis::PeopleV1::RelationshipStatus>
The person's read-only relationship statuses.
-
#residences ⇒ Array<Google::Apis::PeopleV1::Residence>
The person's residences.
-
#resource_name ⇒ String
The resource name for the person, assigned by the server.
-
#sip_addresses ⇒ Array<Google::Apis::PeopleV1::SipAddress>
The person's SIP addresses.
-
#skills ⇒ Array<Google::Apis::PeopleV1::Skill>
The person's skills.
-
#taglines ⇒ Array<Google::Apis::PeopleV1::Tagline>
The person's read-only taglines.
-
#urls ⇒ Array<Google::Apis::PeopleV1::Url>
The person's associated URLs.
-
#user_defined ⇒ Array<Google::Apis::PeopleV1::UserDefined>
The person's user defined data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Person
constructor
A new instance of Person.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Person
Returns a new instance of Person
1470 1471 1472 |
# File 'generated/google/apis/people_v1/classes.rb', line 1470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#addresses ⇒ Array<Google::Apis::PeopleV1::Address>
The person's street addresses.
Corresponds to the JSON property addresses
1309 1310 1311 |
# File 'generated/google/apis/people_v1/classes.rb', line 1309 def addresses @addresses end |
#age_range ⇒ String
DEPRECATED (Please use person.ageRanges
instead)**
The person's read-only age range.
Corresponds to the JSON property ageRange
1315 1316 1317 |
# File 'generated/google/apis/people_v1/classes.rb', line 1315 def age_range @age_range end |
#age_ranges ⇒ Array<Google::Apis::PeopleV1::AgeRangeType>
The person's read-only age ranges.
Corresponds to the JSON property ageRanges
1320 1321 1322 |
# File 'generated/google/apis/people_v1/classes.rb', line 1320 def age_ranges @age_ranges end |
#biographies ⇒ Array<Google::Apis::PeopleV1::Biography>
The person's biographies.
Corresponds to the JSON property biographies
1325 1326 1327 |
# File 'generated/google/apis/people_v1/classes.rb', line 1325 def biographies @biographies end |
#birthdays ⇒ Array<Google::Apis::PeopleV1::Birthday>
The person's birthdays.
Corresponds to the JSON property birthdays
1330 1331 1332 |
# File 'generated/google/apis/people_v1/classes.rb', line 1330 def birthdays @birthdays end |
#bragging_rights ⇒ Array<Google::Apis::PeopleV1::BraggingRights>
The person's bragging rights.
Corresponds to the JSON property braggingRights
1335 1336 1337 |
# File 'generated/google/apis/people_v1/classes.rb', line 1335 def bragging_rights @bragging_rights end |
#cover_photos ⇒ Array<Google::Apis::PeopleV1::CoverPhoto>
The person's read-only cover photos.
Corresponds to the JSON property coverPhotos
1340 1341 1342 |
# File 'generated/google/apis/people_v1/classes.rb', line 1340 def cover_photos @cover_photos end |
#email_addresses ⇒ Array<Google::Apis::PeopleV1::EmailAddress>
The person's email addresses.
Corresponds to the JSON property emailAddresses
1345 1346 1347 |
# File 'generated/google/apis/people_v1/classes.rb', line 1345 def email_addresses @email_addresses end |
#etag ⇒ String
The HTTP entity tag of the
resource. Used for web cache validation.
Corresponds to the JSON property etag
1351 1352 1353 |
# File 'generated/google/apis/people_v1/classes.rb', line 1351 def etag @etag end |
#events ⇒ Array<Google::Apis::PeopleV1::Event>
The person's events.
Corresponds to the JSON property events
1356 1357 1358 |
# File 'generated/google/apis/people_v1/classes.rb', line 1356 def events @events end |
#genders ⇒ Array<Google::Apis::PeopleV1::Gender>
The person's genders.
Corresponds to the JSON property genders
1361 1362 1363 |
# File 'generated/google/apis/people_v1/classes.rb', line 1361 def genders @genders end |
#im_clients ⇒ Array<Google::Apis::PeopleV1::ImClient>
The person's instant messaging clients.
Corresponds to the JSON property imClients
1366 1367 1368 |
# File 'generated/google/apis/people_v1/classes.rb', line 1366 def im_clients @im_clients end |
#interests ⇒ Array<Google::Apis::PeopleV1::Interest>
The person's interests.
Corresponds to the JSON property interests
1371 1372 1373 |
# File 'generated/google/apis/people_v1/classes.rb', line 1371 def interests @interests end |
#locales ⇒ Array<Google::Apis::PeopleV1::Locale>
The person's locale preferences.
Corresponds to the JSON property locales
1376 1377 1378 |
# File 'generated/google/apis/people_v1/classes.rb', line 1376 def locales @locales end |
#memberships ⇒ Array<Google::Apis::PeopleV1::Membership>
The person's group memberships.
Corresponds to the JSON property memberships
1381 1382 1383 |
# File 'generated/google/apis/people_v1/classes.rb', line 1381 def memberships @memberships end |
#metadata ⇒ Google::Apis::PeopleV1::PersonMetadata
The read-only metadata about a person.
Corresponds to the JSON property metadata
1386 1387 1388 |
# File 'generated/google/apis/people_v1/classes.rb', line 1386 def @metadata end |
#names ⇒ Array<Google::Apis::PeopleV1::Name>
The person's names.
Corresponds to the JSON property names
1391 1392 1393 |
# File 'generated/google/apis/people_v1/classes.rb', line 1391 def names @names end |
#nicknames ⇒ Array<Google::Apis::PeopleV1::Nickname>
The person's nicknames.
Corresponds to the JSON property nicknames
1396 1397 1398 |
# File 'generated/google/apis/people_v1/classes.rb', line 1396 def nicknames @nicknames end |
#occupations ⇒ Array<Google::Apis::PeopleV1::Occupation>
The person's occupations.
Corresponds to the JSON property occupations
1401 1402 1403 |
# File 'generated/google/apis/people_v1/classes.rb', line 1401 def occupations @occupations end |
#organizations ⇒ Array<Google::Apis::PeopleV1::Organization>
The person's past or current organizations.
Corresponds to the JSON property organizations
1406 1407 1408 |
# File 'generated/google/apis/people_v1/classes.rb', line 1406 def organizations @organizations end |
#phone_numbers ⇒ Array<Google::Apis::PeopleV1::PhoneNumber>
The person's phone numbers.
Corresponds to the JSON property phoneNumbers
1411 1412 1413 |
# File 'generated/google/apis/people_v1/classes.rb', line 1411 def phone_numbers @phone_numbers end |
#photos ⇒ Array<Google::Apis::PeopleV1::Photo>
The person's read-only photos.
Corresponds to the JSON property photos
1416 1417 1418 |
# File 'generated/google/apis/people_v1/classes.rb', line 1416 def photos @photos end |
#relations ⇒ Array<Google::Apis::PeopleV1::Relation>
The person's relations.
Corresponds to the JSON property relations
1421 1422 1423 |
# File 'generated/google/apis/people_v1/classes.rb', line 1421 def relations @relations end |
#relationship_interests ⇒ Array<Google::Apis::PeopleV1::RelationshipInterest>
The person's read-only relationship interests.
Corresponds to the JSON property relationshipInterests
1426 1427 1428 |
# File 'generated/google/apis/people_v1/classes.rb', line 1426 def relationship_interests @relationship_interests end |
#relationship_statuses ⇒ Array<Google::Apis::PeopleV1::RelationshipStatus>
The person's read-only relationship statuses.
Corresponds to the JSON property relationshipStatuses
1431 1432 1433 |
# File 'generated/google/apis/people_v1/classes.rb', line 1431 def relationship_statuses @relationship_statuses end |
#residences ⇒ Array<Google::Apis::PeopleV1::Residence>
The person's residences.
Corresponds to the JSON property residences
1436 1437 1438 |
# File 'generated/google/apis/people_v1/classes.rb', line 1436 def residences @residences end |
#resource_name ⇒ String
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 property resourceName
1443 1444 1445 |
# File 'generated/google/apis/people_v1/classes.rb', line 1443 def resource_name @resource_name end |
#sip_addresses ⇒ Array<Google::Apis::PeopleV1::SipAddress>
The person's SIP addresses.
Corresponds to the JSON property sipAddresses
1448 1449 1450 |
# File 'generated/google/apis/people_v1/classes.rb', line 1448 def sip_addresses @sip_addresses end |
#skills ⇒ Array<Google::Apis::PeopleV1::Skill>
The person's skills.
Corresponds to the JSON property skills
1453 1454 1455 |
# File 'generated/google/apis/people_v1/classes.rb', line 1453 def skills @skills end |
#taglines ⇒ Array<Google::Apis::PeopleV1::Tagline>
The person's read-only taglines.
Corresponds to the JSON property taglines
1458 1459 1460 |
# File 'generated/google/apis/people_v1/classes.rb', line 1458 def taglines @taglines end |
#urls ⇒ Array<Google::Apis::PeopleV1::Url>
The person's associated URLs.
Corresponds to the JSON property urls
1463 1464 1465 |
# File 'generated/google/apis/people_v1/classes.rb', line 1463 def urls @urls end |
#user_defined ⇒ Array<Google::Apis::PeopleV1::UserDefined>
The person's user defined data.
Corresponds to the JSON property userDefined
1468 1469 1470 |
# File 'generated/google/apis/people_v1/classes.rb', line 1468 def user_defined @user_defined end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 |
# File 'generated/google/apis/people_v1/classes.rb', line 1475 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) @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) @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) @memberships = args[:memberships] if args.key?(:memberships) @metadata = args[:metadata] if args.key?(:metadata) @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 |