Class: Google::Apis::ComputeV1::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Configuration options for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Returns a new instance of SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.



37962
37963
37964
# File 'lib/google/apis/compute_v1/classes.rb', line 37962

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

Instance Attribute Details

#enableBoolean Also known as: enable?

If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR. Corresponds to the JSON property enable

Returns:

  • (Boolean)


37946
37947
37948
# File 'lib/google/apis/compute_v1/classes.rb', line 37946

def enable
  @enable
end

#rule_visibilityString

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR. Corresponds to the JSON property ruleVisibility

Returns:

  • (String)


37954
37955
37956
# File 'lib/google/apis/compute_v1/classes.rb', line 37954

def rule_visibility
  @rule_visibility
end

#threshold_configsArray<Google::Apis::ComputeV1::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>

Configuration options for layer7 adaptive protection for various customizable thresholds. Corresponds to the JSON property thresholdConfigs



37960
37961
37962
# File 'lib/google/apis/compute_v1/classes.rb', line 37960

def threshold_configs
  @threshold_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37967
37968
37969
37970
37971
# File 'lib/google/apis/compute_v1/classes.rb', line 37967

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