Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
Settings specific to keys that can be used for WAF (Web Application Firewall).
Instance Attribute Summary collapse
-
#waf_feature ⇒ String
Required.
-
#waf_service ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WafSettings
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1WafSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WafSettings
Returns a new instance of GoogleCloudRecaptchaenterpriseV1WafSettings.
2218 2219 2220 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#waf_feature ⇒ String
Required. The WAF feature for which this key is enabled.
Corresponds to the JSON property wafFeature
2211 2212 2213 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2211 def waf_feature @waf_feature end |
#waf_service ⇒ String
Required. The WAF service that uses this key.
Corresponds to the JSON property wafService
2216 2217 2218 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2216 def waf_service @waf_service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2223 2224 2225 2226 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2223 def update!(**args) @waf_feature = args[:waf_feature] if args.key?(:waf_feature) @waf_service = args[:waf_service] if args.key?(:waf_service) end |