Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment

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

Account Defender risk assessment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment

Returns a new instance of GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.



39
40
41
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 39

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

Instance Attribute Details

#labels ⇒ Array<String>

Labels for this request. Corresponds to the JSON property labels

Returns:

  • (Array<String>)


32
33
34
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 32

def labels
  @labels
end

Recommended action after this request. Corresponds to the JSON property recommendedAction

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 37

def recommended_action
  @recommended_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
47
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 44

def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @recommended_action = args[:recommended_action] if args.key?(:recommended_action)
end