Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRedirectOptions
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::SecurityPolicyRuleRedirectOptions
- 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
-
#target ⇒ String
Target for the redirect action.
-
#type ⇒ String
Type of the redirect action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicyRuleRedirectOptions
constructor
A new instance of SecurityPolicyRuleRedirectOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicyRuleRedirectOptions
Returns a new instance of SecurityPolicyRuleRedirectOptions.
38221 38222 38223 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target ⇒ String
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
38214 38215 38216 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38214 def target @target end |
#type ⇒ String
Type of the redirect action.
Corresponds to the JSON property type
38219 38220 38221 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38219 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38226 38227 38228 38229 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38226 def update!(**args) @target = args[:target] if args.key?(:target) @type = args[:type] if args.key?(:type) end |