Class: Google::Apis::PeopleV1::ExternalId

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

An identifier from an external entity related to the person.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExternalId

Returns a new instance of ExternalId.



988
989
990
# File 'lib/google/apis/people_v1/classes.rb', line 988

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

Instance Attribute Details

#formatted_typeString

Output only. The type of the event translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedType

Returns:

  • (String)


970
971
972
# File 'lib/google/apis/people_v1/classes.rb', line 970

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



975
976
977
# File 'lib/google/apis/people_v1/classes.rb', line 975

def 
  @metadata
end

#typeString

The type of the external ID. The type can be custom or one of these predefined values: * account * customer * loginId * network * organization Corresponds to the JSON property type

Returns:

  • (String)


981
982
983
# File 'lib/google/apis/people_v1/classes.rb', line 981

def type
  @type
end

#valueString

The value of the external ID. Corresponds to the JSON property value

Returns:

  • (String)


986
987
988
# File 'lib/google/apis/people_v1/classes.rb', line 986

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



993
994
995
996
997
998
# File 'lib/google/apis/people_v1/classes.rb', line 993

def update!(**args)
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
  @metadata = args[:metadata] if args.key?(:metadata)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end