Class: Google::Apis::ChatV1::User
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::User
- 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
-
#display_name ⇒ String
Output only.
-
#domain_id ⇒ String
Unique identifier of the user's Google Workspace domain.
-
#is_anonymous ⇒ Boolean
(also: #is_anonymous?)
Output only.
-
#name ⇒ String
Resource name for a Google Chat user.
-
#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.
2958 2959 2960 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2958 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Output only. The user's display name.
Corresponds to the JSON property displayName
2932 2933 2934 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2932 def display_name @display_name end |
#domain_id ⇒ String
Unique identifier of the user's Google Workspace domain.
Corresponds to the JSON property domainId
2937 2938 2939 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2937 def domain_id @domain_id end |
#is_anonymous ⇒ Boolean Also known as: is_anonymous?
Output only. When true, the user is deleted or their profile is not visible.
Corresponds to the JSON property isAnonymous
2942 2943 2944 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2942 def is_anonymous @is_anonymous end |
#name ⇒ String
2951 2952 2953 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2951 def name @name end |
#type ⇒ String
User type.
Corresponds to the JSON property type
2956 2957 2958 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2956 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2963 2964 2965 2966 2967 2968 2969 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2963 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 |