class Google::Apis::AdminDirectoryV1::UserPhone

JSON template for a phone entry.

Attributes

custom_type[RW]

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

primary[RW]

If this is user's primary phone or not. Corresponds to the JSON property `primary` @return [Boolean]

primary?[RW]

If this is user's primary phone or not. 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 phone could be of home_fax, work, mobile etc. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value. Corresponds to the JSON property `type` @return [String]

value[RW]

Phone number. Corresponds to the JSON property `value` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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