Class: Google::Apis::PlayintegrityV1::AccountRiskVerdict

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/playintegrity_v1/classes.rb,
lib/google/apis/playintegrity_v1/representations.rb,
lib/google/apis/playintegrity_v1/representations.rb

Overview

Contains information about account risk that indicates if the current user session seems low risk, unknown, or risky before you allow important actions to proceed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountRiskVerdict

Returns a new instance of AccountRiskVerdict.



70
71
72
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 70

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

Instance Attribute Details

#riskString

Required. Indicates the account risk level of the current user session. Corresponds to the JSON property risk

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 63

def risk
  @risk
end

#risk_levelString

Required. Indicates the account risk level of the current user session. Corresponds to the JSON property riskLevel

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 68

def risk_level
  @risk_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 75

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