Class: Google::Apis::ChatV1::Thread

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 thread in Google Chat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thread

Returns a new instance of Thread.



3221
3222
3223
# File 'lib/google/apis/chat_v1/classes.rb', line 3221

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

Instance Attribute Details

#nameString

Resource name of the thread. Example: spaces/space/threads/thread Corresponds to the JSON property name

Returns:

  • (String)


3210
3211
3212
# File 'lib/google/apis/chat_v1/classes.rb', line 3210

def name
  @name
end

#thread_keyString

Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a threadKey or the thread.name. For example usage, see Start or reply to a message thread. For other requests, this is an output only field. Corresponds to the JSON property threadKey

Returns:

  • (String)


3219
3220
3221
# File 'lib/google/apis/chat_v1/classes.rb', line 3219

def thread_key
  @thread_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3226
3227
3228
3229
# File 'lib/google/apis/chat_v1/classes.rb', line 3226

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