Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRedirectOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleRedirectOptions

Returns a new instance of SecurityPolicyRuleRedirectOptions.



42004
42005
42006
# File 'lib/google/apis/compute_alpha/classes.rb', line 42004

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

Instance Attribute Details

#targetString

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. Corresponds to the JSON property target

Returns:

  • (String)


41997
41998
41999
# File 'lib/google/apis/compute_alpha/classes.rb', line 41997

def target
  @target
end

#typeString

Type of the redirect action. Corresponds to the JSON property type

Returns:

  • (String)


42002
42003
42004
# File 'lib/google/apis/compute_alpha/classes.rb', line 42002

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42009
42010
42011
42012
# File 'lib/google/apis/compute_alpha/classes.rb', line 42009

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