Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageCardSection

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, for example, float.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageCardSection

Returns a new instance of AppsDynamiteStorageCardSection.



3065
3066
3067
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3065

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

Instance Attribute Details

#collapsibleBoolean Also known as: collapsible?

Indicates whether this section is collapsible. If a section is collapsible, the description must be given. Corresponds to the JSON property collapsible

Returns:

  • (Boolean)


3043
3044
3045
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3043

def collapsible
  @collapsible
end

#headerString

The header of the section. Formatted text is supported. Corresponds to the JSON property header

Returns:

  • (String)


3049
3050
3051
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3049

def header
  @header
end

#uncollapsible_widgets_countFixnum

The number of uncollapsible widgets. For example, when a section contains five widgets and the numUncollapsibleWidget is set to 2, the first two widgets are always shown and the last three are collapsed as default. The numUncollapsibleWidget is taken into account only when collapsible is set to true. Corresponds to the JSON property uncollapsibleWidgetsCount

Returns:

  • (Fixnum)


3058
3059
3060
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3058

def uncollapsible_widgets_count
  @uncollapsible_widgets_count
end

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

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



3063
3064
3065
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3063

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3070
3071
3072
3073
3074
3075
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3070

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