Class: Google::Apis::ContentV2_1::ExternalAction
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ExternalAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Action that is implemented and performed outside of the third-party application. It should redirect the merchant to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center.
Instance Attribute Summary collapse
-
#type ⇒ String
The type of external action.
-
#uri ⇒ String
URL to external system, for example Merchant Center, where the merchant can perform the action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExternalAction
constructor
A new instance of ExternalAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExternalAction
Returns a new instance of ExternalAction.
4774 4775 4776 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4774 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The type of external action.
Corresponds to the JSON property type
4766 4767 4768 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4766 def type @type end |
#uri ⇒ String
URL to external system, for example Merchant Center, where the merchant can
perform the action.
Corresponds to the JSON property uri
4772 4773 4774 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4772 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4779 4780 4781 4782 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4779 def update!(**args) @type = args[:type] if args.key?(:type) @uri = args[:uri] if args.key?(:uri) end |