Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource

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

Overview

A single resource related to a threat hit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatHitThreatSource

Returns a new instance of GoogleSecuritySafebrowsingV4ThreatHitThreatSource.



749
750
751
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 749

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

Instance Attribute Details

#referrerString

Referrer of the resource. Only set if the referrer is available. Corresponds to the JSON property referrer

Returns:

  • (String)


732
733
734
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 732

def referrer
  @referrer
end

#remote_ipString

The remote IP of the resource in ASCII format. Either IPv4 or IPv6. Corresponds to the JSON property remoteIp

Returns:

  • (String)


737
738
739
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 737

def remote_ip
  @remote_ip
end

#typeString

The type of source reported. Corresponds to the JSON property type

Returns:

  • (String)


742
743
744
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 742

def type
  @type
end

#urlString

The URL of the resource. Corresponds to the JSON property url

Returns:

  • (String)


747
748
749
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 747

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



754
755
756
757
758
759
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 754

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