Class: Google::Apis::ContentV2_1::ExternalAction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExternalAction

Returns a new instance of ExternalAction.



4822
4823
4824
# File 'lib/google/apis/content_v2_1/classes.rb', line 4822

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

Instance Attribute Details

#typeString

The type of external action. Corresponds to the JSON property type

Returns:

  • (String)


4814
4815
4816
# File 'lib/google/apis/content_v2_1/classes.rb', line 4814

def type
  @type
end

#uriString

URL to external system, for example Merchant Center, where the merchant can perform the action. Corresponds to the JSON property uri

Returns:

  • (String)


4820
4821
4822
# File 'lib/google/apis/content_v2_1/classes.rb', line 4820

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4827
4828
4829
4830
# File 'lib/google/apis/content_v2_1/classes.rb', line 4827

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @uri = args[:uri] if args.key?(:uri)
end