Class: Google::Apis::PeopleV1::PersonResponse
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::PersonResponse
- 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
The response for a single person
Instance Attribute Summary collapse
-
#http_status_code ⇒ Fixnum
DEPRECATED (Please use status instead) HTTP 1.1 status code.
-
#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.
-
#status ⇒ Google::Apis::PeopleV1::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonResponse
constructor
A new instance of PersonResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersonResponse
Returns a new instance of PersonResponse.
2249 2250 2251 |
# File 'lib/google/apis/people_v1/classes.rb', line 2249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#http_status_code ⇒ Fixnum
DEPRECATED (Please use status instead) HTTP 1.1 status code.
Corresponds to the JSON property httpStatusCode
2221 2222 2223 |
# File 'lib/google/apis/people_v1/classes.rb', line 2221 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. 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
2229 2230 2231 |
# File 'lib/google/apis/people_v1/classes.rb', line 2229 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
2237 2238 2239 |
# File 'lib/google/apis/people_v1/classes.rb', line 2237 def requested_resource_name @requested_resource_name end |
#status ⇒ Google::Apis::PeopleV1::Status
The Status
type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status
message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property status
2247 2248 2249 |
# File 'lib/google/apis/people_v1/classes.rb', line 2247 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2254 2255 2256 2257 2258 2259 |
# File 'lib/google/apis/people_v1/classes.rb', line 2254 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) @status = args[:status] if args.key?(:status) end |