Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WafSettings

Returns a new instance of GoogleCloudRecaptchaenterpriseV1WafSettings.



2351
2352
2353
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2351

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

Instance Attribute Details

#waf_featureString

Required. The Web Application Firewall (WAF) feature for which this key is enabled. Corresponds to the JSON property wafFeature

Returns:

  • (String)


2344
2345
2346
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2344

def waf_feature
  @waf_feature
end

#waf_serviceString

Required. The Web Application Firewall (WAF) service that uses this key. Corresponds to the JSON property wafService

Returns:

  • (String)


2349
2350
2351
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2349

def waf_service
  @waf_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2356
2357
2358
2359
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2356

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