class Google::Apis::AdminDirectoryV1::UserIm

JSON template for instant messenger of an user.

Attributes

custom_protocol[RW]

Custom protocol. Corresponds to the JSON property `customProtocol` @return [String]

custom_type[RW]

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

im[RW]

Instant messenger id. Corresponds to the JSON property `im` @return [String]

primary[RW]

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

primary?[RW]

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

protocol[RW]

Protocol used in the instant messenger. It should be one of the values from ImProtocolTypes map. Similar to type it can take a CUSTOM value and specify the custom name in customProtocol field. Corresponds to the JSON property `protocol` @return [String]

type[RW]

Each entry can have a type which indicates standard types of that entry. For example instant messengers 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 4229
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 4234
def update!(**args)
  @custom_protocol = args[:custom_protocol] if args.key?(:custom_protocol)
  @custom_type = args[:custom_type] if args.key?(:custom_type)
  @im = args[:im] if args.key?(:im)
  @primary = args[:primary] if args.key?(:primary)
  @protocol = args[:protocol] if args.key?(:protocol)
  @type = args[:type] if args.key?(:type)
end