Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo

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

The information regarding one or more threats that a client submits when checking for matches in threat lists.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatInfo

Returns a new instance of GoogleSecuritySafebrowsingV4ThreatInfo.



813
814
815
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 813

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

Instance Attribute Details

#platform_typesArray<String>

The platform types to be checked. Corresponds to the JSON property platformTypes

Returns:

  • (Array<String>)


796
797
798
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 796

def platform_types
  @platform_types
end

#threat_entriesArray<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry>

The threat entries to be checked. Corresponds to the JSON property threatEntries



801
802
803
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 801

def threat_entries
  @threat_entries
end

#threat_entry_typesArray<String>

The entry types to be checked. Corresponds to the JSON property threatEntryTypes

Returns:

  • (Array<String>)


806
807
808
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 806

def threat_entry_types
  @threat_entry_types
end

#threat_typesArray<String>

The threat types to be checked. Corresponds to the JSON property threatTypes

Returns:

  • (Array<String>)


811
812
813
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 811

def threat_types
  @threat_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



818
819
820
821
822
823
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 818

def update!(**args)
  @platform_types = args[:platform_types] if args.key?(:platform_types)
  @threat_entries = args[:threat_entries] if args.key?(:threat_entries)
  @threat_entry_types = args[:threat_entry_types] if args.key?(:threat_entry_types)
  @threat_types = args[:threat_types] if args.key?(:threat_types)
end