Class: Google::Apis::PeopleV1::Source
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Source
- 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
-
#etag ⇒ String
The HTTP entity tag of the source.
-
#id ⇒ String
The unique identifier within the source type generated by the server.
-
#profile_metadata ⇒ Google::Apis::PeopleV1::ProfileMetadata
The read-only metadata about a profile.
-
#type ⇒ String
The source type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Source
constructor
A new instance of Source.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source
1028 1029 1030 |
# File 'generated/google/apis/people_v1/classes.rb', line 1028 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
The HTTP entity tag of the
source. Used for web cache validation. Only populated in
person.metadata.sources.
Corresponds to the JSON property etag
1016 1017 1018 |
# File 'generated/google/apis/people_v1/classes.rb', line 1016 def etag @etag end |
#id ⇒ String
The unique identifier within the source type generated by the server.
Corresponds to the JSON property id
1021 1022 1023 |
# File 'generated/google/apis/people_v1/classes.rb', line 1021 def id @id end |
#profile_metadata ⇒ Google::Apis::PeopleV1::ProfileMetadata
The read-only metadata about a profile.
Corresponds to the JSON property profileMetadata
1026 1027 1028 |
# File 'generated/google/apis/people_v1/classes.rb', line 1026 def @profile_metadata end |
#type ⇒ String
The source type.
Corresponds to the JSON property type
1009 1010 1011 |
# File 'generated/google/apis/people_v1/classes.rb', line 1009 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1033 1034 1035 1036 1037 1038 |
# File 'generated/google/apis/people_v1/classes.rb', line 1033 def update!(**args) @type = args[:type] if args.key?(:type) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata) end |