Class: Google::Apis::CloudsearchV1::OnClick
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::OnClick
- 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
-
#action ⇒ Google::Apis::CloudsearchV1::FormAction
Corresponds to the JSON property
action
. -
#link ⇒ String
This can be used as a short form for OpenLink with the default OpenAs and OnClose.
-
#open_link ⇒ Google::Apis::CloudsearchV1::OpenLink
Corresponds to the JSON property
openLink
. -
#open_link_action ⇒ Google::Apis::CloudsearchV1::FormAction
An add-on triggers this action when the form action needs to open a link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OnClick
constructor
A new instance of OnClick.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OnClick
Returns a new instance of OnClick.
14823 14824 14825 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ Google::Apis::CloudsearchV1::FormAction
Corresponds to the JSON property action
14802 14803 14804 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14802 def action @action end |
#link ⇒ String
This can be used as a short form for OpenLink with the default OpenAs and
OnClose. It may be undeprecated if this proves to be handy for developers.
Corresponds to the JSON property link
14808 14809 14810 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14808 def link @link end |
#open_link ⇒ Google::Apis::CloudsearchV1::OpenLink
Corresponds to the JSON property openLink
14813 14814 14815 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14813 def open_link @open_link end |
#open_link_action ⇒ Google::Apis::CloudsearchV1::FormAction
An add-on triggers this action when the form action needs to open a link. This
differs from the open_link above in that this needs to talk to server to get
the link. Thus some preparation work is required for web client to do before
the open link action response comes back.
Corresponds to the JSON property openLinkAction
14821 14822 14823 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14821 def open_link_action @open_link_action end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14828 14829 14830 14831 14832 14833 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14828 def update!(**args) @action = args[:action] if args.key?(:action) @link = args[:link] if args.key?(:link) @open_link = args[:open_link] if args.key?(:open_link) @open_link_action = args[:open_link_action] if args.key?(:open_link_action) end |