class Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings

Settings specific to keys that can be used by websites.

Attributes

allow_all_domains[RW]

If set to true, it means allowed_domains will not be enforced. Corresponds to the JSON property `allowAllDomains` @return [Boolean]

allow_all_domains?[RW]

If set to true, it means allowed_domains will not be enforced. Corresponds to the JSON property `allowAllDomains` @return [Boolean]

allow_amp_traffic[RW]

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` @return [Boolean]

allow_amp_traffic?[RW]

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` @return [Boolean]

allowed_domains[RW]

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` @return [Array<String>]

challenge_security_preference[RW]

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` @return [String]

integration_type[RW]

Required. Describes how this key is integrated with the website. Corresponds to the JSON property `integrationType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recaptchaenterprise_v1/classes.rb, line 575
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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