Class: Google::Apis::ChatV1::SpaceDataSource

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 data source that populates Google Chat spaces as selection items for a multiselect menu. Only populates spaces that the user is a member of. Google Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpaceDataSource

Returns a new instance of SpaceDataSource.



4838
4839
4840
# File 'lib/google/apis/chat_v1/classes.rb', line 4838

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

Instance Attribute Details

#default_to_current_spaceBoolean Also known as: default_to_current_space?

If set to true, the multiselect menu selects the current Google Chat space as an item by default. Corresponds to the JSON property defaultToCurrentSpace

Returns:

  • (Boolean)


4835
4836
4837
# File 'lib/google/apis/chat_v1/classes.rb', line 4835

def default_to_current_space
  @default_to_current_space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4843
4844
4845
# File 'lib/google/apis/chat_v1/classes.rb', line 4843

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