Class: Google::Apis::ThreatintelligenceV1beta::PublicExploit

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

Overview

Contains details about a public exploit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublicExploit

Returns a new instance of PublicExploit.



2038
2039
2040
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2038

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

Instance Attribute Details

#exploit_gradeString

Optional. The grade of the exploit. Ex: "non-weaponized". Corresponds to the JSON property exploitGrade

Returns:

  • (String)


2011
2012
2013
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2011

def exploit_grade
  @exploit_grade
end

#exploit_nameString

Required. The name of the exploit. Ex: "Magentounauth.php.txt". Corresponds to the JSON property exploitName

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2016

def exploit_name
  @exploit_name
end

#exploit_reliabilityString

Optional. The reliability of the exploit. Ex: "Unreviewed". Corresponds to the JSON property exploitReliability

Returns:

  • (String)


2021
2022
2023
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2021

def exploit_reliability
  @exploit_reliability
end

#release_timeString

Optional. The release time of the exploit. Corresponds to the JSON property releaseTime

Returns:

  • (String)


2026
2027
2028
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2026

def release_time
  @release_time
end

#size_bytesFixnum

Optional. The size of the exploit. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


2031
2032
2033
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2031

def size_bytes
  @size_bytes
end

#uriString

Optional. The URI of the exploit. Corresponds to the JSON property uri

Returns:

  • (String)


2036
2037
2038
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2036

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2043
2044
2045
2046
2047
2048
2049
2050
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 2043

def update!(**args)
  @exploit_grade = args[:exploit_grade] if args.key?(:exploit_grade)
  @exploit_name = args[:exploit_name] if args.key?(:exploit_name)
  @exploit_reliability = args[:exploit_reliability] if args.key?(:exploit_reliability)
  @release_time = args[:release_time] if args.key?(:release_time)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @uri = args[:uri] if args.key?(:uri)
end