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.
44061 44062 44063 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44061 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
44054 44055 44056 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44054 def target @target end |
#type ⇒ String
Type of the redirect action.
Corresponds to the JSON property type
44059 44060 44061 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44059 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44066 44067 44068 44069 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44066 def update!(**args) @target = args[:target] if args.key?(:target) @type = args[:type] if args.key?(:type) end |