Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardSection

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardSection

Returns a new instance of GoogleChatV1ContextualAddOnMarkupCardSection.



10142
10143
10144
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10142

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

Instance Attribute Details

#headerString

The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons. Corresponds to the JSON property header

Returns:

  • (String)


10135
10136
10137
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10135

def header
  @header
end

#widgetsArray<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkup>

A section must contain at least 1 widget. Corresponds to the JSON property widgets



10140
10141
10142
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10140

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10147
10148
10149
10150
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10147

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