# reCAPTCHA Enterprise V1 API - Class Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings (v1.11.0)

1.11.0 (latest) 1.9.1 1.8.0 1.7.1 1.6.0 1.5.1 1.4.1 1.3.0 1.2.0 1.1.0 1.0.0 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.3 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.0 0.7.1 Reference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings.

Settings specific to keys that can be used by websites.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_all_domains

    def allow_all_domains() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to true, it means allowed_domains are not enforced.

### #allow_all_domains=

    def allow_all_domains=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set to true, it means allowed_domains are not enforced.
**Returns**

- (::Boolean) --- Optional. If set to true, it means allowed_domains are not enforced.

### #allow_amp_traffic

    def allow_amp_traffic() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.

### #allow_amp_traffic=

    def allow_amp_traffic=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
**Returns**

- (::Boolean) --- Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.

### #allowed_domains

    def allowed_domains() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. 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' Each key supports a maximum of 250 domains. To use a key on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains.

### #allowed_domains=

    def allowed_domains=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. 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' Each key supports a maximum of 250 domains. To use a key on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains.
**Returns**

- (::Array\<::String\>) --- Optional. 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' Each key supports a maximum of 250 domains. To use a key on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains.

### #challenge_security_preference

    def challenge_security_preference() -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSecurityPreference

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSecurityPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSecurityPreference)) --- Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.

### #challenge_security_preference=

    def challenge_security_preference=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSecurityPreference

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSecurityPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSecurityPreference)) --- Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSecurityPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSecurityPreference)) --- Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.

### #challenge_settings

    def challenge_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSettings)) --- Optional. Challenge settings.

### #challenge_settings=

    def challenge_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSettings)) --- Optional. Challenge settings.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::ChallengeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-ChallengeSettings)) --- Optional. Challenge settings.

### #integration_type

    def integration_type() -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::IntegrationType

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::IntegrationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-IntegrationType)) --- Required. Describes how this key is integrated with the website.

### #integration_type=

    def integration_type=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::IntegrationType

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::IntegrationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-IntegrationType)) --- Required. Describes how this key is integrated with the website.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings::IntegrationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings-IntegrationType)) --- Required. Describes how this key is integrated with the website.