Class: Google::Apis::PeopleV1::PersonResponse
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::PersonResponse
- 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
The response for a single person
Instance Attribute Summary collapse
- #http_status_code ⇒ Fixnum
-
#person ⇒ Google::Apis::PeopleV1::Person
Information about a person merged from various data sources such as the authenticated user's contacts and profile data.
-
#requested_resource_name ⇒ String
The original requested resource name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonResponse
constructor
A new instance of PersonResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PersonResponse
Returns a new instance of PersonResponse.
1477 1478 1479 |
# File 'generated/google/apis/people_v1/classes.rb', line 1477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#http_status_code ⇒ Fixnum
HTTP 1.1 status code.
Corresponds to the JSON property httpStatusCode
1458 1459 1460 |
# File 'generated/google/apis/people_v1/classes.rb', line 1458 def http_status_code @http_status_code end |
#person ⇒ Google::Apis::PeopleV1::Person
Information about a person merged from various data sources such as the
authenticated user's contacts and profile data. Fields other than IDs,
metadata, and group memberships are user-edited. 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 person
1467 1468 1469 |
# File 'generated/google/apis/people_v1/classes.rb', line 1467 def person @person end |
#requested_resource_name ⇒ String
The original requested resource name. May be different than the resource name
on the returned person. The resource name can change when adding or removing
fields that link a contact and profile such as a verified email, verified
phone number, or a profile URL.
Corresponds to the JSON property requestedResourceName
1475 1476 1477 |
# File 'generated/google/apis/people_v1/classes.rb', line 1475 def requested_resource_name @requested_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1482 1483 1484 1485 1486 |
# File 'generated/google/apis/people_v1/classes.rb', line 1482 def update!(**args) @http_status_code = args[:http_status_code] if args.key?(:http_status_code) @person = args[:person] if args.key?(:person) @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) end |