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

Inherits:
Object
  • Object
show all
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 source of a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Source

Returns a new instance of Source.



2651
2652
2653
# File 'lib/google/apis/people_v1/classes.rb', line 2651

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)


2628
2629
2630
# File 'lib/google/apis/people_v1/classes.rb', line 2628

def etag
  @etag
end

#idString

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

Returns:

  • (String)


2633
2634
2635
# File 'lib/google/apis/people_v1/classes.rb', line 2633

def id
  @id
end

#profile_metadataGoogle::Apis::PeopleV1::ProfileMetadata

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



2638
2639
2640
# File 'lib/google/apis/people_v1/classes.rb', line 2638

def 
  @profile_metadata
end

#typeString

The source type. Corresponds to the JSON property type

Returns:

  • (String)


2643
2644
2645
# File 'lib/google/apis/people_v1/classes.rb', line 2643

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


2649
2650
2651
# File 'lib/google/apis/people_v1/classes.rb', line 2649

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2656
2657
2658
2659
2660
2661
2662
# File 'lib/google/apis/people_v1/classes.rb', line 2656

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