Class: Google::Apis::PeopleV1::PersonMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::PersonMetadata
- 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 metadata about a person.
Instance Attribute Summary collapse
-
#deleted ⇒ Boolean
(also: #deleted?)
Output only.
-
#linked_people_resource_names ⇒ Array<String>
Output only.
-
#object_type ⇒ String
Output only.
-
#previous_resource_names ⇒ Array<String>
Output only.
-
#sources ⇒ Array<Google::Apis::PeopleV1::Source>
The sources of data for the person.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonMetadata
constructor
A new instance of PersonMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersonMetadata
Returns a new instance of PersonMetadata.
2179 2180 2181 |
# File 'lib/google/apis/people_v1/classes.rb', line 2179 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deleted ⇒ Boolean Also known as: deleted?
Output only. True if the person resource has been deleted. Populated only for
connections.list and
otherContacts.list requests that
include a sync token.
Corresponds to the JSON property deleted
2151 2152 2153 |
# File 'lib/google/apis/people_v1/classes.rb', line 2151 def deleted @deleted end |
#linked_people_resource_names ⇒ Array<String>
Output only. Resource names of people linked to this resource.
Corresponds to the JSON property linkedPeopleResourceNames
2157 2158 2159 |
# File 'lib/google/apis/people_v1/classes.rb', line 2157 def linked_people_resource_names @linked_people_resource_names end |
#object_type ⇒ String
Output only. DEPRECATED (Please use person.metadata.sources.
profileMetadata.objectType instead) The type of the person object.
Corresponds to the JSON property objectType
2163 2164 2165 |
# File 'lib/google/apis/people_v1/classes.rb', line 2163 def object_type @object_type end |
#previous_resource_names ⇒ Array<String>
Output only. Any former resource names this person has had. Populated only for
connections.list requests
that include a sync token. The resource name may change when adding or
removing fields that link a contact and profile such as a verified email,
verified phone number, or profile URL.
Corresponds to the JSON property previousResourceNames
2172 2173 2174 |
# File 'lib/google/apis/people_v1/classes.rb', line 2172 def previous_resource_names @previous_resource_names end |
#sources ⇒ Array<Google::Apis::PeopleV1::Source>
The sources of data for the person.
Corresponds to the JSON property sources
2177 2178 2179 |
# File 'lib/google/apis/people_v1/classes.rb', line 2177 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2184 2185 2186 2187 2188 2189 2190 |
# File 'lib/google/apis/people_v1/classes.rb', line 2184 def update!(**args) @deleted = args[:deleted] if args.key?(:deleted) @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names) @object_type = args[:object_type] if args.key?(:object_type) @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names) @sources = args[:sources] if args.key?(:sources) end |