Class: Google::Apis::PeopleV1::PersonMetadata

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 read-only metadata about a 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) ⇒ PersonMetadata

Returns a new instance of PersonMetadata



1574
1575
1576
# File 'generated/google/apis/people_v1/classes.rb', line 1574

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

Instance Attribute Details

#deletedBoolean 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

Returns:

  • (Boolean)


1544
1545
1546
# File 'generated/google/apis/people_v1/classes.rb', line 1544

def deleted
  @deleted
end

#linked_people_resource_namesArray<String>

Resource names of people linked to this resource. Corresponds to the JSON property linkedPeopleResourceNames

Returns:

  • (Array<String>)


1550
1551
1552
# File 'generated/google/apis/people_v1/classes.rb', line 1550

def linked_people_resource_names
  @linked_people_resource_names
end

#object_typeString

DEPRECATED (Please use person.metadata.sources.profileMetadata.objectType instead) The type of the person object. Corresponds to the JSON property objectType

Returns:

  • (String)


1557
1558
1559
# File 'generated/google/apis/people_v1/classes.rb', line 1557

def object_type
  @object_type
end

#previous_resource_namesArray<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

Returns:

  • (Array<String>)


1567
1568
1569
# File 'generated/google/apis/people_v1/classes.rb', line 1567

def previous_resource_names
  @previous_resource_names
end

#sourcesArray<Google::Apis::PeopleV1::Source>

The sources of data for the person. Corresponds to the JSON property sources

Returns:



1572
1573
1574
# File 'generated/google/apis/people_v1/classes.rb', line 1572

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1579
1580
1581
1582
1583
1584
1585
# File 'generated/google/apis/people_v1/classes.rb', line 1579

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