Class: Google::Apis::PeopleV1::PersonMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::PersonMetadata
- 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 read-only metadata about a person.
Instance Attribute Summary collapse
-
#deleted ⇒ Boolean
(also: #deleted?)
True if the person resource has been deleted.
-
#linked_people_resource_names ⇒ Array<String>
Resource names of people linked to this resource.
-
#object_type ⇒ String
DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
-
#previous_resource_names ⇒ Array<String>
Any former resource names this person has had.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PersonMetadata
Returns a new instance of PersonMetadata
1078 1079 1080 |
# File 'generated/google/apis/people_v1/classes.rb', line 1078 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deleted ⇒ Boolean Also known as: deleted?
True if the person resource has been deleted. Populated only for
connections.list requests
that include a sync token.
Corresponds to the JSON property deleted
1075 1076 1077 |
# File 'generated/google/apis/people_v1/classes.rb', line 1075 def deleted @deleted end |
#linked_people_resource_names ⇒ Array<String>
Resource names of people linked to this resource.
Corresponds to the JSON property linkedPeopleResourceNames
1053 1054 1055 |
# File 'generated/google/apis/people_v1/classes.rb', line 1053 def linked_people_resource_names @linked_people_resource_names end |
#object_type ⇒ String
DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
The type of the person object.
Corresponds to the JSON property objectType
1048 1049 1050 |
# File 'generated/google/apis/people_v1/classes.rb', line 1048 def object_type @object_type end |
#previous_resource_names ⇒ Array<String>
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
1068 1069 1070 |
# File 'generated/google/apis/people_v1/classes.rb', line 1068 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
1058 1059 1060 |
# File 'generated/google/apis/people_v1/classes.rb', line 1058 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1083 1084 1085 1086 1087 1088 1089 |
# File 'generated/google/apis/people_v1/classes.rb', line 1083 def update!(**args) @object_type = args[:object_type] if args.key?(:object_type) @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names) @sources = args[:sources] if args.key?(:sources) @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names) @deleted = args[:deleted] if args.key?(:deleted) end |