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.



1867
1868
1869
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1867

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)


1840
1841
1842
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1840

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)


1845
1846
1847
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1845

def exploit_name
  @exploit_name
end

#exploit_reliabilityString

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

Returns:

  • (String)


1850
1851
1852
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1850

def exploit_reliability
  @exploit_reliability
end

#release_timeString

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

Returns:

  • (String)


1855
1856
1857
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1855

def release_time
  @release_time
end

#size_bytesFixnum

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

Returns:

  • (Fixnum)


1860
1861
1862
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1860

def size_bytes
  @size_bytes
end

#uriString

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

Returns:

  • (String)


1865
1866
1867
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1865

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1872
1873
1874
1875
1876
1877
1878
1879
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1872

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