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 a Google Chat space. For example usage, see Start or reply to a message thread.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thread

Returns a new instance of Thread.



4014
4015
4016
# File 'lib/google/apis/chat_v1/classes.rb', line 4014

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


4006
4007
4008
# File 'lib/google/apis/chat_v1/classes.rb', line 4006

def name
  @name
end

#thread_keyString

Optional. ID for the thread. Supports up to 4000 characters. Input for creating or updating a thread. Otherwise, output only. Corresponds to the JSON property threadKey

Returns:

  • (String)


4012
4013
4014
# File 'lib/google/apis/chat_v1/classes.rb', line 4012

def thread_key
  @thread_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4019
4020
4021
4022
# File 'lib/google/apis/chat_v1/classes.rb', line 4019

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