Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb
Overview
Details about the user that encountered the threat.
Instance Attribute Summary collapse
-
#region_code ⇒ String
The UN M.49 region code associated with the user's location.
-
#user_id ⇒ String
Unique user identifier defined by the client.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHitUserInfo
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatHitUserInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHitUserInfo
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatHitUserInfo.
774 775 776 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 774 def initialize(**args) update!(**args) end |
Instance Attribute Details
#region_code ⇒ String
The UN M.49 region code associated with the user's location.
Corresponds to the JSON property regionCode
766 767 768 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 766 def region_code @region_code end |
#user_id ⇒ String
Unique user identifier defined by the client.
Corresponds to the JSON property userId
NOTE: Values are automatically base64 encoded/decoded in the client library.
772 773 774 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 772 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
779 780 781 782 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 779 def update!(**args) @region_code = args[:region_code] if args.key?(:region_code) @user_id = args[:user_id] if args.key?(:user_id) end |