Class: Google::Apis::ChatV1::SpaceDataSource
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SpaceDataSource
- 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
-
#default_to_current_space ⇒ Boolean
(also: #default_to_current_space?)
If set to
true
, the multiselect menu selects the current Google Chat space as an item by default.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpaceDataSource
constructor
A new instance of SpaceDataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpaceDataSource
Returns a new instance of SpaceDataSource.
5218 5219 5220 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_to_current_space ⇒ Boolean 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
5215 5216 5217 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5215 def default_to_current_space @default_to_current_space end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5223 5224 5225 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5223 def update!(**args) @default_to_current_space = args[:default_to_current_space] if args.key?(:default_to_current_space) end |