Class: Google::Apis::PeopleV1::Source

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 source of a field.

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

Returns a new instance of Source



2013
2014
2015
# File 'generated/google/apis/people_v1/classes.rb', line 2013

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

Instance Attribute Details

#etagString

Only populated in person.metadata.sources. The HTTP entity tag of the source. Used for web cache validation. Corresponds to the JSON property etag

Returns:

  • (String)


1990
1991
1992
# File 'generated/google/apis/people_v1/classes.rb', line 1990

def etag
  @etag
end

#idString

The unique identifier within the source type generated by the server. Corresponds to the JSON property id

Returns:

  • (String)


1995
1996
1997
# File 'generated/google/apis/people_v1/classes.rb', line 1995

def id
  @id
end

#profile_metadataGoogle::Apis::PeopleV1::ProfileMetadata

The read-only metadata about a profile. Corresponds to the JSON property profileMetadata



2000
2001
2002
# File 'generated/google/apis/people_v1/classes.rb', line 2000

def 
  @profile_metadata
end

#typeString

The source type. Corresponds to the JSON property type

Returns:

  • (String)


2005
2006
2007
# File 'generated/google/apis/people_v1/classes.rb', line 2005

def type
  @type
end

#update_timeString

Only populated in person.metadata.sources. Last update timestamp of this source. Corresponds to the JSON property updateTime

Returns:

  • (String)


2011
2012
2013
# File 'generated/google/apis/people_v1/classes.rb', line 2011

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2018
2019
2020
2021
2022
2023
2024
# File 'generated/google/apis/people_v1/classes.rb', line 2018

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end