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.
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_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
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 |