class Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig
An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned App Check token, such as its ttl.
Attributes
Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: “` projects/`project_number`/apps/`app_id`/recaptchaConfig “` Corresponds to the JSON property `name` @return [String]
Required. Input only. The site secret used to identify your service for reCAPTCHA v3 verification. For security reasons, this field will never be populated in any response. Corresponds to the JSON property `siteSecret` @return [String]
Output only. Whether the `site_secret` field was previously set. Since we will never return the `site_secret` field, this field is the only way to find out whether it was previously set. Corresponds to the JSON property `siteSecretSet` @return [Boolean]
Output only. Whether the `site_secret` field was previously set. Since we will never return the `site_secret` field, this field is the only way to find out whether it was previously set. Corresponds to the JSON property `siteSecretSet` @return [Boolean]
Specifies the duration for which App Check tokens exchanged from reCAPTCHA tokens will be valid. If unset, a default value of 1 day is assumed. Must be between 30 minutes and 7 days, inclusive. Corresponds to the JSON property `tokenTtl` @return [String]
Public Class Methods
# File lib/google/apis/firebaseappcheck_v1beta/classes.rb, line 722 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/firebaseappcheck_v1beta/classes.rb, line 727 def update!(**args) @name = args[:name] if args.key?(:name) @site_secret = args[:site_secret] if args.key?(:site_secret) @site_secret_set = args[:site_secret_set] if args.key?(:site_secret_set) @token_ttl = args[:token_ttl] if args.key?(:token_ttl) end