Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event
- 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
The event being assessed.
Instance Attribute Summary collapse
-
#expected_action ⇒ String
Optional.
-
#express ⇒ Boolean
(also: #express?)
Optional.
-
#hashed_account_id ⇒ String
Optional.
-
#headers ⇒ Array<String>
Optional.
-
#ja3 ⇒ String
Optional.
-
#requested_uri ⇒ String
Optional.
-
#site_key ⇒ String
Optional.
-
#token ⇒ String
Optional.
-
#transaction_data ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData
Transaction data associated with a payment protected by reCAPTCHA Enterprise.
-
#user_agent ⇒ String
Optional.
-
#user_ip_address ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Event
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1Event.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Event
Returns a new instance of GoogleCloudRecaptchaenterpriseV1Event.
381 382 383 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expected_action ⇒ String
Optional. The expected action for this type of event. This should be the same
action provided at token generation time on client-side platforms already
integrated with recaptcha enterprise.
Corresponds to the JSON property expectedAction
319 320 321 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 319 def expected_action @expected_action end |
#express ⇒ Boolean Also known as: express?
Optional. Optional flag for a reCAPTCHA express request for an assessment
without a token. If enabled, site_key must reference a SCORE key with WAF
feature set to EXPRESS.
Corresponds to the JSON property express
326 327 328 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 326 def express @express end |
#hashed_account_id ⇒ String
Optional. Unique stable hashed user identifier for the request. The identifier
must be hashed using hmac-sha256 with stable secret.
Corresponds to the JSON property hashedAccountId
NOTE: Values are automatically base64 encoded/decoded in the client library.
334 335 336 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 334 def hashed_account_id @hashed_account_id end |
#headers ⇒ Array<String>
Optional. Optional HTTP header information about the request.
Corresponds to the JSON property headers
339 340 341 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 339 def headers @headers end |
#ja3 ⇒ String
Optional. Optional JA3 fingerprint for SSL clients.
Corresponds to the JSON property ja3
344 345 346 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 344 def ja3 @ja3 end |
#requested_uri ⇒ String
Optional. The URI resource the user requested that triggered an assessment.
Corresponds to the JSON property requestedUri
349 350 351 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 349 def requested_uri @requested_uri end |
#site_key ⇒ String
Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
site and generate the token.
Corresponds to the JSON property siteKey
355 356 357 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 355 def site_key @site_key end |
#token ⇒ String
Optional. The user response token provided by the reCAPTCHA Enterprise client-
side integration on your site.
Corresponds to the JSON property token
361 362 363 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 361 def token @token end |
#transaction_data ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData
Transaction data associated with a payment protected by reCAPTCHA Enterprise.
All fields are optional.
Corresponds to the JSON property transactionData
367 368 369 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 367 def transaction_data @transaction_data end |
#user_agent ⇒ String
Optional. The user agent present in the request from the user's device related
to this event.
Corresponds to the JSON property userAgent
373 374 375 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 373 def user_agent @user_agent end |
#user_ip_address ⇒ String
Optional. The IP address in the request from the user's device related to this
event.
Corresponds to the JSON property userIpAddress
379 380 381 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 379 def user_ip_address @user_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 386 def update!(**args) @expected_action = args[:expected_action] if args.key?(:expected_action) @express = args[:express] if args.key?(:express) @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id) @headers = args[:headers] if args.key?(:headers) @ja3 = args[:ja3] if args.key?(:ja3) @requested_uri = args[:requested_uri] if args.key?(:requested_uri) @site_key = args[:site_key] if args.key?(:site_key) @token = args[:token] if args.key?(:token) @transaction_data = args[:transaction_data] if args.key?(:transaction_data) @user_agent = args[:user_agent] if args.key?(:user_agent) @user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address) end |