class Google::Apis::AdminDirectoryV1::UserEmail

JSON template for an email.

Attributes

address[RW]

Email id of the user. Corresponds to the JSON property `address` @return [String]

custom_type[RW]

Custom Type. Corresponds to the JSON property `customType` @return [String]

primary[RW]

If this is user's primary email. Only one entry could be marked as primary. Corresponds to the JSON property `primary` @return [Boolean]

primary?[RW]

If this is user's primary email. Only one entry could be marked as primary. Corresponds to the JSON property `primary` @return [Boolean]

type[RW]

Each entry can have a type which indicates standard types of that entry. For example email could be of home, work etc. In addition to the standard type, an entry can have a custom type and can take any value Such types should have the CUSTOM value as type and also have a customType value. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 4113
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 4118
def update!(**args)
  @address = args[:address] if args.key?(:address)
  @custom_type = args[:custom_type] if args.key?(:custom_type)
  @primary = args[:primary] if args.key?(:primary)
  @type = args[:type] if args.key?(:type)
end