Class: Google::Apis::CloudsearchV1::WidgetMarkup
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::WidgetMarkup
- 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
Instance Attribute Summary collapse
-
#buttons ⇒ Array<Google::Apis::CloudsearchV1::Button>
buttons is also oneof data and only one of these fields should be set.
-
#date_time_picker ⇒ Google::Apis::CloudsearchV1::DateTimePicker
Corresponds to the JSON property
dateTimePicker
. -
#divider ⇒ Google::Apis::CloudsearchV1::Divider
Corresponds to the JSON property
divider
. -
#grid ⇒ Google::Apis::CloudsearchV1::Grid
Corresponds to the JSON property
grid
. -
#horizontal_alignment ⇒ String
The horizontal alignment of this widget.
-
#image ⇒ Google::Apis::CloudsearchV1::Image
Corresponds to the JSON property
image
. -
#image_key_value ⇒ Google::Apis::CloudsearchV1::ImageKeyValue
This is deprecated and please use KeyValue.
-
#key_value ⇒ Google::Apis::CloudsearchV1::KeyValue
Corresponds to the JSON property
keyValue
. -
#menu ⇒ Google::Apis::CloudsearchV1::Menu
This is deprecated and please use SelectionControl by setting type to DROPDOWN.
-
#selection_control ⇒ Google::Apis::CloudsearchV1::SelectionControl
Corresponds to the JSON property
selectionControl
. -
#text_field ⇒ Google::Apis::CloudsearchV1::TextField
Corresponds to the JSON property
textField
. -
#text_key_value ⇒ Google::Apis::CloudsearchV1::TextKeyValue
This is deprecated and please use KeyValue.
-
#text_paragraph ⇒ Google::Apis::CloudsearchV1::TextParagraph
Read-only Widgets Corresponds to the JSON property
textParagraph
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WidgetMarkup
constructor
A new instance of WidgetMarkup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WidgetMarkup
Returns a new instance of WidgetMarkup.
22027 22028 22029 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22027 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buttons ⇒ Array<Google::Apis::CloudsearchV1::Button>
buttons is also oneof data and only one of these fields should be set.
Corresponds to the JSON property buttons
21965 21966 21967 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21965 def @buttons end |
#date_time_picker ⇒ Google::Apis::CloudsearchV1::DateTimePicker
Corresponds to the JSON property dateTimePicker
21970 21971 21972 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21970 def date_time_picker @date_time_picker end |
#divider ⇒ Google::Apis::CloudsearchV1::Divider
Corresponds to the JSON property divider
21975 21976 21977 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21975 def divider @divider end |
#grid ⇒ Google::Apis::CloudsearchV1::Grid
Corresponds to the JSON property grid
21980 21981 21982 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21980 def grid @grid end |
#horizontal_alignment ⇒ String
The horizontal alignment of this widget.
Corresponds to the JSON property horizontalAlignment
21985 21986 21987 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21985 def horizontal_alignment @horizontal_alignment end |
#image ⇒ Google::Apis::CloudsearchV1::Image
Corresponds to the JSON property image
21990 21991 21992 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21990 def image @image end |
#image_key_value ⇒ Google::Apis::CloudsearchV1::ImageKeyValue
This is deprecated and please use KeyValue.
Corresponds to the JSON property imageKeyValue
21995 21996 21997 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21995 def image_key_value @image_key_value end |
#key_value ⇒ Google::Apis::CloudsearchV1::KeyValue
Corresponds to the JSON property keyValue
22000 22001 22002 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22000 def key_value @key_value end |
#menu ⇒ Google::Apis::CloudsearchV1::Menu
This is deprecated and please use SelectionControl by setting type to DROPDOWN.
Corresponds to the JSON property menu
22005 22006 22007 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22005 def @menu end |
#selection_control ⇒ Google::Apis::CloudsearchV1::SelectionControl
Corresponds to the JSON property selectionControl
22010 22011 22012 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22010 def selection_control @selection_control end |
#text_field ⇒ Google::Apis::CloudsearchV1::TextField
Corresponds to the JSON property textField
22015 22016 22017 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22015 def text_field @text_field end |
#text_key_value ⇒ Google::Apis::CloudsearchV1::TextKeyValue
This is deprecated and please use KeyValue.
Corresponds to the JSON property textKeyValue
22020 22021 22022 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22020 def text_key_value @text_key_value end |
#text_paragraph ⇒ Google::Apis::CloudsearchV1::TextParagraph
Read-only Widgets
Corresponds to the JSON property textParagraph
22025 22026 22027 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22025 def text_paragraph @text_paragraph end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22032 def update!(**args) @buttons = args[:buttons] if args.key?(:buttons) @date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker) @divider = args[:divider] if args.key?(:divider) @grid = args[:grid] if args.key?(:grid) @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) @image = args[:image] if args.key?(:image) @image_key_value = args[:image_key_value] if args.key?(:image_key_value) @key_value = args[:key_value] if args.key?(:key_value) @menu = args[:menu] if args.key?(:menu) @selection_control = args[:selection_control] if args.key?(:selection_control) @text_field = args[:text_field] if args.key?(:text_field) @text_key_value = args[:text_key_value] if args.key?(:text_key_value) @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph) end |