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.



4720
4721
4722
# File 'lib/google/apis/chat_v1/classes.rb', line 4720

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)


4717
4718
4719
# File 'lib/google/apis/chat_v1/classes.rb', line 4717

def default_to_current_space
  @default_to_current_space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4725
4726
4727
# File 'lib/google/apis/chat_v1/classes.rb', line 4725

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