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.
-
#reasons ⇒ Array<String>
Optional.
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.
69 70 71 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 69 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
61 62 63 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 61 def annotation @annotation end |
#reasons ⇒ Array<String>
Optional. Optional reasons for the annotation that will be assigned to the
Event.
Corresponds to the JSON property reasons
67 68 69 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 67 def reasons @reasons end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 77 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 74 def update!(**args) @annotation = args[:annotation] if args.key?(:annotation) @reasons = args[:reasons] if args.key?(:reasons) end |