Class: Google::Apis::ChatV1::User

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

A user in Google Chat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



1106
1107
1108
# File 'lib/google/apis/chat_v1/classes.rb', line 1106

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

Instance Attribute Details

#display_nameString

The user's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/chat_v1/classes.rb', line 1083

def display_name
  @display_name
end

#domain_idString

Obfuscated domain information. Corresponds to the JSON property domainId

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/chat_v1/classes.rb', line 1088

def domain_id
  @domain_id
end

#is_anonymousBoolean Also known as: is_anonymous?

True when the user is deleted or the user's profile is not visible. Corresponds to the JSON property isAnonymous

Returns:

  • (Boolean)


1093
1094
1095
# File 'lib/google/apis/chat_v1/classes.rb', line 1093

def is_anonymous
  @is_anonymous
end

#nameString

Resource name, in the format "users/*". Corresponds to the JSON property name

Returns:

  • (String)


1099
1100
1101
# File 'lib/google/apis/chat_v1/classes.rb', line 1099

def name
  @name
end

#typeString

User type. Corresponds to the JSON property type

Returns:

  • (String)


1104
1105
1106
# File 'lib/google/apis/chat_v1/classes.rb', line 1104

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1111
1112
1113
1114
1115
1116
1117
# File 'lib/google/apis/chat_v1/classes.rb', line 1111

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @domain_id = args[:domain_id] if args.key?(:domain_id)
  @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end