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.



43274
43275
43276
# File 'lib/google/apis/compute_alpha/classes.rb', line 43274

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)


43267
43268
43269
# File 'lib/google/apis/compute_alpha/classes.rb', line 43267

def target
  @target
end

#typeString

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

Returns:

  • (String)


43272
43273
43274
# File 'lib/google/apis/compute_alpha/classes.rb', line 43272

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



43279
43280
43281
43282
# File 'lib/google/apis/compute_alpha/classes.rb', line 43279

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