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.



3316
3317
3318
# File 'lib/google/apis/chat_v1/classes.rb', line 3316

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


3292
3293
3294
# File 'lib/google/apis/chat_v1/classes.rb', line 3292

def display_name
  @display_name
end

#domain_idString

Unique identifier of the user's Google Workspace domain. Corresponds to the JSON property domainId

Returns:

  • (String)


3297
3298
3299
# File 'lib/google/apis/chat_v1/classes.rb', line 3297

def domain_id
  @domain_id
end

#is_anonymousBoolean 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

Returns:

  • (Boolean)


3302
3303
3304
# File 'lib/google/apis/chat_v1/classes.rb', line 3302

def is_anonymous
  @is_anonymous
end

#nameString

Resource name for a Google Chat user. For human users, represents a person in the People API or a user in the Admin SDK Directory API. Format: users/user` Corresponds to the JSON propertyname`

Returns:

  • (String)


3309
3310
3311
# File 'lib/google/apis/chat_v1/classes.rb', line 3309

def name
  @name
end

#typeString

User type. Corresponds to the JSON property type

Returns:

  • (String)


3314
3315
3316
# File 'lib/google/apis/chat_v1/classes.rb', line 3314

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3321
3322
3323
3324
3325
3326
3327
# File 'lib/google/apis/chat_v1/classes.rb', line 3321

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