Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings

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 by websites.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettings

Returns a new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettings.



1974
1975
1976
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1974

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

Instance Attribute Details

#allow_all_domainsBoolean Also known as: allow_all_domains?

Optional. If set to true, it means allowed_domains will not be enforced. Corresponds to the JSON property allowAllDomains

Returns:

  • (Boolean)


1944
1945
1946
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1944

def allow_all_domains
  @allow_all_domains
end

#allow_amp_trafficBoolean Also known as: allow_amp_traffic?

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. Corresponds to the JSON property allowAmpTraffic

Returns:

  • (Boolean)


1951
1952
1953
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1951

def allow_amp_traffic
  @allow_amp_traffic
end

#allowed_domainsArray<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' Corresponds to the JSON property allowedDomains

Returns:

  • (Array<String>)


1960
1961
1962
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1960

def allowed_domains
  @allowed_domains
end

#challenge_security_preferenceString

Optional. 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

Returns:

  • (String)


1967
1968
1969
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1967

def challenge_security_preference
  @challenge_security_preference
end

#integration_typeString

Required. Describes how this key is integrated with the website. Corresponds to the JSON property integrationType

Returns:

  • (String)


1972
1973
1974
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1972

def integration_type
  @integration_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1979
1980
1981
1982
1983
1984
1985
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1979

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