Class: Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

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

Overview

Configuration options for L7 DDoS detection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Returns a new instance of SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.



36060
36061
36062
# File 'lib/google/apis/compute_alpha/classes.rb', line 36060

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enableBoolean Also known as: enable?

If set to true, enables CAAP for L7 DDoS detection. Corresponds to the JSON property enable

Returns:

  • (Boolean)


36051
36052
36053
# File 'lib/google/apis/compute_alpha/classes.rb', line 36051

def enable
  @enable
end

#rule_visibilityString

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. Corresponds to the JSON property ruleVisibility

Returns:

  • (String)


36058
36059
36060
# File 'lib/google/apis/compute_alpha/classes.rb', line 36058

def rule_visibility
  @rule_visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36065
36066
36067
36068
# File 'lib/google/apis/compute_alpha/classes.rb', line 36065

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