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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.


1027
1028
1029
# File 'generated/google/apis/chat_v1/classes.rb', line 1027

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)

1010
1011
1012
# File 'generated/google/apis/chat_v1/classes.rb', line 1010

def display_name
  @display_name
end

#domain_idString

Obfuscated domain information. Corresponds to the JSON property domainId

Returns:

  • (String)

1015
1016
1017
# File 'generated/google/apis/chat_v1/classes.rb', line 1015

def domain_id
  @domain_id
end

#nameString

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

Returns:

  • (String)

1020
1021
1022
# File 'generated/google/apis/chat_v1/classes.rb', line 1020

def name
  @name
end

#typeString

User type. Corresponds to the JSON property type

Returns:

  • (String)

1025
1026
1027
# File 'generated/google/apis/chat_v1/classes.rb', line 1025

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1032
1033
1034
1035
1036
1037
# File 'generated/google/apis/chat_v1/classes.rb', line 1032

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