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.



38147
38148
38149
# File 'lib/google/apis/compute_alpha/classes.rb', line 38147

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)


38140
38141
38142
# File 'lib/google/apis/compute_alpha/classes.rb', line 38140

def target
  @target
end

#typeString

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

Returns:

  • (String)


38145
38146
38147
# File 'lib/google/apis/compute_alpha/classes.rb', line 38145

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38152
38153
38154
38155
# File 'lib/google/apis/compute_alpha/classes.rb', line 38152

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