Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
- 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 request message to annotate an Assessment.
Instance Attribute Summary collapse
-
#annotation ⇒ String
Optional.
-
#hashed_account_id ⇒ String
Optional.
-
#reasons ⇒ Array<String>
Optional.
-
#transaction_event ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent
Describes an event in the lifecycle of a payment transaction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
Returns a new instance of GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.
150 151 152 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation ⇒ String
Optional. The annotation that will be assigned to the Event. This field can be
left empty to provide reasons that apply to an event without concluding
whether the event is legitimate or fraudulent.
Corresponds to the JSON property annotation
127 128 129 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 127 def annotation @annotation end |
#hashed_account_id ⇒ String
Optional. Unique stable hashed user identifier to apply to the assessment.
This is an alternative to setting the hashed_account_id in CreateAssessment,
for example when the account identifier is not yet known in the initial
request. It is recommended that the identifier is hashed using hmac-sha256
with stable secret.
Corresponds to the JSON property hashedAccountId
NOTE: Values are automatically base64 encoded/decoded in the client library.
137 138 139 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 137 def hashed_account_id @hashed_account_id end |
#reasons ⇒ Array<String>
Optional. Optional reasons for the annotation that will be assigned to the
Event.
Corresponds to the JSON property reasons
143 144 145 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 143 def reasons @reasons end |
#transaction_event ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent
Describes an event in the lifecycle of a payment transaction.
Corresponds to the JSON property transactionEvent
148 149 150 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 148 def transaction_event @transaction_event end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
155 156 157 158 159 160 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 155 def update!(**args) @annotation = args[:annotation] if args.key?(:annotation) @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id) @reasons = args[:reasons] if args.key?(:reasons) @transaction_event = args[:transaction_event] if args.key?(:transaction_event) end |