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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpaceDataSource

Returns a new instance of SpaceDataSource.



3865
3866
3867
# File 'lib/google/apis/chat_v1/classes.rb', line 3865

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)


3862
3863
3864
# File 'lib/google/apis/chat_v1/classes.rb', line 3862

def default_to_current_space
  @default_to_current_space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3870
3871
3872
# File 'lib/google/apis/chat_v1/classes.rb', line 3870

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