Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor

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

Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatListDescriptor

Returns a new instance of GoogleSecuritySafebrowsingV4ThreatListDescriptor.



847
848
849
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 847

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

Instance Attribute Details

#platform_typeString

The platform type targeted by the list's entries. Corresponds to the JSON property platformType

Returns:

  • (String)


835
836
837
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 835

def platform_type
  @platform_type
end

#threat_entry_typeString

The entry types contained in the list. Corresponds to the JSON property threatEntryType

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 840

def threat_entry_type
  @threat_entry_type
end

#threat_typeString

The threat type posed by the list's entries. Corresponds to the JSON property threatType

Returns:

  • (String)


845
846
847
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 845

def threat_type
  @threat_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



852
853
854
855
856
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 852

def update!(**args)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
  @threat_type = args[:threat_type] if args.key?(:threat_type)
end