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
Instance Attribute Summary collapse
-
#expected_action ⇒ String
Optional.
-
#site_key ⇒ String
Optional.
-
#token ⇒ String
Optional.
-
#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.
206 207 208 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 206 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
180 181 182 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 180 def expected_action @expected_action end |
#site_key ⇒ String
Optional. The site key that was used to invoke reCAPTCHA on your site and
generate the token.
Corresponds to the JSON property siteKey
186 187 188 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 186 def site_key @site_key end |
#token ⇒ String
Optional. The user response token provided by the reCAPTCHA client-side
integration on your site.
Corresponds to the JSON property token
192 193 194 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 192 def token @token 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
198 199 200 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 198 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
204 205 206 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 204 def user_ip_address @user_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
211 212 213 214 215 216 217 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 211 def update!(**args) @expected_action = args[:expected_action] if args.key?(:expected_action) @site_key = args[:site_key] if args.key?(:site_key) @token = args[:token] if args.key?(:token) @user_agent = args[:user_agent] if args.key?(:user_agent) @user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address) end |