Class: Google::Apis::PeopleV1::PersonResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PersonResponse

Returns a new instance of PersonResponse.



1637
1638
1639
# File 'generated/google/apis/people_v1/classes.rb', line 1637

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

Instance Attribute Details

#http_status_codeFixnum

DEPRECATED (Please use status instead) HTTP 1.1 status code. Corresponds to the JSON property httpStatusCode

Returns:

  • (Fixnum)


1607
1608
1609
# File 'generated/google/apis/people_v1/classes.rb', line 1607

def http_status_code
  @http_status_code
end

#personGoogle::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



1616
1617
1618
# File 'generated/google/apis/people_v1/classes.rb', line 1616

def person
  @person
end

#requested_resource_nameString

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

Returns:

  • (String)


1625
1626
1627
# File 'generated/google/apis/people_v1/classes.rb', line 1625

def requested_resource_name
  @requested_resource_name
end

#statusGoogle::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



1635
1636
1637
# File 'generated/google/apis/people_v1/classes.rb', line 1635

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1642
1643
1644
1645
1646
1647
# File 'generated/google/apis/people_v1/classes.rb', line 1642

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