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.



4774
4775
4776
# File 'lib/google/apis/content_v2_1/classes.rb', line 4774

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


4766
4767
4768
# File 'lib/google/apis/content_v2_1/classes.rb', line 4766

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)


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