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

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.


249
250
251
# File 'generated/google/apis/people_v1/classes.rb', line 249

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)

241
242
243
# File 'generated/google/apis/people_v1/classes.rb', line 241

def deleted
  @deleted
end

#object_typeString

The type of the person object. Corresponds to the JSON property objectType

Returns:

  • (String)

247
248
249
# File 'generated/google/apis/people_v1/classes.rb', line 247

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>)

234
235
236
# File 'generated/google/apis/people_v1/classes.rb', line 234

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:


225
226
227
# File 'generated/google/apis/people_v1/classes.rb', line 225

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


254
255
256
257
258
259
# File 'generated/google/apis/people_v1/classes.rb', line 254

def update!(**args)
  @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)
  @object_type = args[:object_type] if args.key?(:object_type)
end