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.
-
#resource_name ⇒ String
The resource name of the source.
-
#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
1229 1230 1231 |
# File 'generated/google/apis/people_v1/classes.rb', line 1229 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
1222 1223 1224 |
# File 'generated/google/apis/people_v1/classes.rb', line 1222 def etag @etag end |
#id ⇒ String
The unique identifier within the source type generated by the server.
Corresponds to the JSON property id
1227 1228 1229 |
# File 'generated/google/apis/people_v1/classes.rb', line 1227 def id @id end |
#resource_name ⇒ String
The resource name of the source. Only set if there is a separate
resource endpoint.
Corresponds to the JSON property resourceName
1210 1211 1212 |
# File 'generated/google/apis/people_v1/classes.rb', line 1210 def resource_name @resource_name end |
#type ⇒ String
The source type.
Corresponds to the JSON property type
1215 1216 1217 |
# File 'generated/google/apis/people_v1/classes.rb', line 1215 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1234 1235 1236 1237 1238 1239 |
# File 'generated/google/apis/people_v1/classes.rb', line 1234 def update!(**args) @resource_name = args[:resource_name] if args.key?(:resource_name) @type = args[:type] if args.key?(:type) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) end |