Class: Google::Apis::CloudsearchV1::OnClick

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnClick

Returns a new instance of OnClick.



12072
12073
12074
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12072

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

Instance Attribute Details

#actionGoogle::Apis::CloudsearchV1::FormAction

Corresponds to the JSON property action



12051
12052
12053
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12051

def action
  @action
end

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

Returns:

  • (String)


12057
12058
12059
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12057

def link
  @link
end

Corresponds to the JSON property openLink



12062
12063
12064
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12062

def open_link
  @open_link
end

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



12070
12071
12072
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12070

def open_link_action
  @open_link_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12077
12078
12079
12080
12081
12082
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12077

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