class Google::Apis::PeopleV1::Relation
A person's relation to another person.
Attributes
The type of the relation translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header. Corresponds to the JSON property `formattedType` @return [String]
Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]
The name of the other person this relation refers to. Corresponds to the JSON property `person` @return [String]
The person's relation to the other person. The type can be custom or predefined. Possible values include, but are not limited to, the following values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * ` sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` * `referredBy` * `partner` Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/people_v1/classes.rb, line 1277 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/people_v1/classes.rb, line 1282 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @person = args[:person] if args.key?(:person) @type = args[:type] if args.key?(:type) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) end