Class: Google::Apis::ChatV1::User
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::User
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb
Overview
A user in Hangouts Chat.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user's display name.
-
#domain_id ⇒ String
Obfuscated domain information.
-
#is_anonymous ⇒ Boolean
(also: #is_anonymous?)
True when the user is deleted or the user's proifle is not visible.
-
#name ⇒ String
Resource name, in the format "users/*".
-
#type ⇒ String
User type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
1107 1108 1109 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1107 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user's display name.
Corresponds to the JSON property displayName
1084 1085 1086 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1084 def display_name @display_name end |
#domain_id ⇒ String
Obfuscated domain information.
Corresponds to the JSON property domainId
1089 1090 1091 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1089 def domain_id @domain_id end |
#is_anonymous ⇒ Boolean Also known as: is_anonymous?
True when the user is deleted or the user's proifle is not visible.
Corresponds to the JSON property isAnonymous
1094 1095 1096 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1094 def is_anonymous @is_anonymous end |
#name ⇒ String
Resource name, in the format "users/*".
Corresponds to the JSON property name
1100 1101 1102 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1100 def name @name end |
#type ⇒ String
User type.
Corresponds to the JSON property type
1105 1106 1107 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1105 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1112 1113 1114 1115 1116 1117 1118 |
# File 'generated/google/apis/chat_v1/classes.rb', line 1112 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 |