Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event

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

The event being assessed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Event

Returns a new instance of GoogleCloudRecaptchaenterpriseV1Event.



542
543
544
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 542

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

Instance Attribute Details

#expected_actionString

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

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 455

def expected_action
  @expected_action
end

#expressBoolean Also known as: express?

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

Returns:

  • (Boolean)


462
463
464
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 462

def express
  @express
end

#firewall_policy_evaluationBoolean Also known as: firewall_policy_evaluation?

Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy will be evaluated and a suggested firewall action will be returned in the response. Corresponds to the JSON property firewallPolicyEvaluation

Returns:

  • (Boolean)


470
471
472
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 470

def firewall_policy_evaluation
  @firewall_policy_evaluation
end

#fraud_preventionString

Optional. The Fraud Prevention setting for this assessment. Corresponds to the JSON property fraudPrevention

Returns:

  • (String)


476
477
478
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 476

def fraud_prevention
  @fraud_prevention
end

#hashed_account_idString

Optional. Deprecated: use user_info.account_id instead. 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.

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 484

def 
  @hashed_account_id
end

#headersArray<String>

Optional. HTTP header information about the request. Corresponds to the JSON property headers

Returns:

  • (Array<String>)


489
490
491
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 489

def headers
  @headers
end

#ja3String

Optional. JA3 fingerprint for SSL clients. Corresponds to the JSON property ja3

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 494

def ja3
  @ja3
end

#requested_uriString

Optional. The URI resource the user requested that triggered an assessment. Corresponds to the JSON property requestedUri

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 499

def requested_uri
  @requested_uri
end

#site_keyString

Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token. Corresponds to the JSON property siteKey

Returns:

  • (String)


505
506
507
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 505

def site_key
  @site_key
end

#tokenString

Optional. The user response token provided by the reCAPTCHA Enterprise client- side integration on your site. Corresponds to the JSON property token

Returns:

  • (String)


511
512
513
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 511

def token
  @token
end

#transaction_dataGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData

Transaction data associated with a payment protected by reCAPTCHA Enterprise. Corresponds to the JSON property transactionData



516
517
518
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 516

def transaction_data
  @transaction_data
end

#user_agentString

Optional. The user agent present in the request from the user's device related to this event. Corresponds to the JSON property userAgent

Returns:

  • (String)


522
523
524
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 522

def user_agent
  @user_agent
end

#user_infoGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserInfo

User information associated with a request protected by reCAPTCHA Enterprise. Corresponds to the JSON property userInfo



527
528
529
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 527

def 
  @user_info
end

#user_ip_addressString

Optional. The IP address in the request from the user's device related to this event. Corresponds to the JSON property userIpAddress

Returns:

  • (String)


533
534
535
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 533

def user_ip_address
  @user_ip_address
end

#waf_token_assessmentBoolean Also known as: waf_token_assessment?

Optional. Flag for running WAF token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key. Corresponds to the JSON property wafTokenAssessment

Returns:

  • (Boolean)


539
540
541
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 539

def waf_token_assessment
  @waf_token_assessment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 547

def update!(**args)
  @expected_action = args[:expected_action] if args.key?(:expected_action)
  @express = args[:express] if args.key?(:express)
  @firewall_policy_evaluation = args[:firewall_policy_evaluation] if args.key?(:firewall_policy_evaluation)
  @fraud_prevention = args[:fraud_prevention] if args.key?(:fraud_prevention)
  @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_info = args[:user_info] if args.key?(:user_info)
  @user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address)
  @waf_token_assessment = args[:waf_token_assessment] if args.key?(:waf_token_assessment)
end