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.
37924 37925 37926 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37924 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
37917 37918 37919 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37917 def target @target end |
#type ⇒ String
Type of the redirect action.
Corresponds to the JSON property type
37922 37923 37924 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37922 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37929 37930 37931 37932 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37929 def update!(**args) @target = args[:target] if args.key?(:target) @type = args[:type] if args.key?(:type) end |