Class: Google::Apis::SecuritycenterV1beta2::DiscoveredWorkload
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::DiscoveredWorkload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#confidence ⇒ String
Corresponds to the JSON property
confidence. -
#detected_relevant_hardware ⇒ Boolean
(also: #detected_relevant_hardware?)
Corresponds to the JSON property
detectedRelevantHardware. -
#detected_relevant_keywords ⇒ Boolean
(also: #detected_relevant_keywords?)
Corresponds to the JSON property
detectedRelevantKeywords. -
#detected_relevant_packages ⇒ Boolean
(also: #detected_relevant_packages?)
Corresponds to the JSON property
detectedRelevantPackages. -
#workload_type ⇒ String
Corresponds to the JSON property
workloadType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiscoveredWorkload
constructor
A new instance of DiscoveredWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiscoveredWorkload
Returns a new instance of DiscoveredWorkload.
1853 1854 1855 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1853 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ String
Corresponds to the JSON property confidence
1828 1829 1830 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1828 def confidence @confidence end |
#detected_relevant_hardware ⇒ Boolean Also known as: detected_relevant_hardware?
Corresponds to the JSON property detectedRelevantHardware
1833 1834 1835 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1833 def detected_relevant_hardware @detected_relevant_hardware end |
#detected_relevant_keywords ⇒ Boolean Also known as: detected_relevant_keywords?
Corresponds to the JSON property detectedRelevantKeywords
1839 1840 1841 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1839 def detected_relevant_keywords @detected_relevant_keywords end |
#detected_relevant_packages ⇒ Boolean Also known as: detected_relevant_packages?
Corresponds to the JSON property detectedRelevantPackages
1845 1846 1847 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1845 def detected_relevant_packages @detected_relevant_packages end |
#workload_type ⇒ String
Corresponds to the JSON property workloadType
1851 1852 1853 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1851 def workload_type @workload_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1858 1859 1860 1861 1862 1863 1864 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1858 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @detected_relevant_hardware = args[:detected_relevant_hardware] if args.key?(:detected_relevant_hardware) @detected_relevant_keywords = args[:detected_relevant_keywords] if args.key?(:detected_relevant_keywords) @detected_relevant_packages = args[:detected_relevant_packages] if args.key?(:detected_relevant_packages) @workload_type = args[:workload_type] if args.key?(:workload_type) end |