Class: Google::Apis::ChatV1::Thread
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Thread
- 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
-
#name ⇒ String
Resource name of the thread.
-
#thread_key ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thread
constructor
A new instance of Thread.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Thread
Returns a new instance of Thread.
3756 3757 3758 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3756 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Resource name of the thread. Example: spaces/space/threads/thread`
Corresponds to the JSON propertyname`
3745 3746 3747 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3745 def name @name end |
#thread_key ⇒ String
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
3754 3755 3756 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3754 def thread_key @thread_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3761 3762 3763 3764 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3761 def update!(**args) @name = args[:name] if args.key?(:name) @thread_key = args[:thread_key] if args.key?(:thread_key) end |