Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource
- 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
A single resource related to a threat hit.
Instance Attribute Summary collapse
-
#referrer ⇒ String
Referrer of the resource.
-
#remote_ip ⇒ String
The remote IP of the resource in ASCII format.
-
#type ⇒ String
The type of source reported.
-
#url ⇒ String
The URL of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHitThreatSource
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatHitThreatSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHitThreatSource
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatHitThreatSource.
746 747 748 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 746 def initialize(**args) update!(**args) end |
Instance Attribute Details
#referrer ⇒ String
Referrer of the resource. Only set if the referrer is available.
Corresponds to the JSON property referrer
729 730 731 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 729 def referrer @referrer end |
#remote_ip ⇒ String
The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
Corresponds to the JSON property remoteIp
734 735 736 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 734 def remote_ip @remote_ip end |
#type ⇒ String
The type of source reported.
Corresponds to the JSON property type
739 740 741 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 739 def type @type end |
#url ⇒ String
The URL of the resource.
Corresponds to the JSON property url
744 745 746 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 744 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
751 752 753 754 755 756 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 751 def update!(**args) @referrer = args[:referrer] if args.key?(:referrer) @remote_ip = args[:remote_ip] if args.key?(:remote_ip) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end |