Class: Google::Apis::ThreatintelligenceV1beta::PublicExploit
- Inherits:
-
Object
- Object
- Google::Apis::ThreatintelligenceV1beta::PublicExploit
- 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
-
#exploit_grade ⇒ String
Optional.
-
#exploit_name ⇒ String
Required.
-
#exploit_reliability ⇒ String
Optional.
-
#release_time ⇒ String
Optional.
-
#size_bytes ⇒ Fixnum
Optional.
-
#uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublicExploit
constructor
A new instance of PublicExploit.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_grade ⇒ String
Optional. The grade of the exploit. Ex: "non-weaponized".
Corresponds to the JSON property exploitGrade
1840 1841 1842 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1840 def exploit_grade @exploit_grade end |
#exploit_name ⇒ String
Required. The name of the exploit. Ex: "Magentounauth.php.txt".
Corresponds to the JSON property exploitName
1845 1846 1847 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1845 def exploit_name @exploit_name end |
#exploit_reliability ⇒ String
Optional. The reliability of the exploit. Ex: "Unreviewed".
Corresponds to the JSON property exploitReliability
1850 1851 1852 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1850 def exploit_reliability @exploit_reliability end |
#release_time ⇒ String
Optional. The release time of the exploit.
Corresponds to the JSON property releaseTime
1855 1856 1857 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1855 def release_time @release_time end |
#size_bytes ⇒ Fixnum
Optional. The size of the exploit.
Corresponds to the JSON property sizeBytes
1860 1861 1862 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1860 def size_bytes @size_bytes end |
#uri ⇒ String
Optional. The URI of the exploit.
Corresponds to the JSON property uri
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 |