Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ControlRedirectAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Redirects a shopper to the provided URI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ControlRedirectAction

Returns a new instance of GoogleCloudDiscoveryengineV1ControlRedirectAction.



2534
2535
2536
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2534

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

Instance Attribute Details

#redirect_uriString

Required. The URI to which the shopper will be redirected. Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown. Corresponds to the JSON property redirectUri

Returns:

  • (String)


2532
2533
2534
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2532

def redirect_uri
  @redirect_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2539
2540
2541
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2539

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