Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings
- 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 by websites.
Instance Attribute Summary collapse
-
#allow_all_domains ⇒ Boolean
(also: #allow_all_domains?)
If set to true, it means allowed_domains will not be enforced.
-
#allow_amp_traffic ⇒ Boolean
(also: #allow_amp_traffic?)
Required.
-
#allowed_domains ⇒ Array<String>
Domains or subdomains of websites allowed to use the key.
-
#challenge_security_preference ⇒ String
Settings for the frequency and difficulty at which this key triggers captcha challenges.
-
#integration_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettings
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettings
Returns a new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettings.
575 576 577 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 575 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_all_domains ⇒ Boolean Also known as: allow_all_domains?
If set to true, it means allowed_domains will not be enforced.
Corresponds to the JSON property allowAllDomains
545 546 547 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 545 def allow_all_domains @allow_all_domains end |
#allow_amp_traffic ⇒ Boolean Also known as: allow_amp_traffic?
Required. Whether this key can be used on AMP (Accelerated Mobile Pages)
websites. This can only be set for the SCORE integration type.
Corresponds to the JSON property allowAmpTraffic
552 553 554 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 552 def allow_amp_traffic @allow_amp_traffic end |
#allowed_domains ⇒ Array<String>
Domains or subdomains of websites allowed to use the key. All subdomains of an
allowed domain are automatically allowed. A valid domain requires a host and
must not include any path, port, query or fragment. Examples: 'example.com' or
'subdomain.example.com'
Corresponds to the JSON property allowedDomains
561 562 563 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 561 def allowed_domains @allowed_domains end |
#challenge_security_preference ⇒ String
Settings for the frequency and difficulty at which this key triggers captcha
challenges. This should only be specified for IntegrationTypes CHECKBOX and
INVISIBLE.
Corresponds to the JSON property challengeSecurityPreference
568 569 570 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 568 def challenge_security_preference @challenge_security_preference end |
#integration_type ⇒ String
Required. Describes how this key is integrated with the website.
Corresponds to the JSON property integrationType
573 574 575 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 573 def integration_type @integration_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
580 581 582 583 584 585 586 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 580 def update!(**args) @allow_all_domains = args[:allow_all_domains] if args.key?(:allow_all_domains) @allow_amp_traffic = args[:allow_amp_traffic] if args.key?(:allow_amp_traffic) @allowed_domains = args[:allowed_domains] if args.key?(:allowed_domains) @challenge_security_preference = args[:challenge_security_preference] if args.key?(:challenge_security_preference) @integration_type = args[:integration_type] if args.key?(:integration_type) end |