Class: Google::Apis::SecuritycenterV1beta2::DetectorReference
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::DetectorReference
- 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
-
#detector_id ⇒ String
Corresponds to the JSON property
detectorId. -
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#explanation ⇒ String
Corresponds to the JSON property
explanation. -
#recommendation ⇒ String
Corresponds to the JSON property
recommendation. -
#severity ⇒ String
Corresponds to the JSON property
severity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DetectorReference
constructor
A new instance of DetectorReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DetectorReference
Returns a new instance of DetectorReference.
1925 1926 1927 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1925 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detector_id ⇒ String
Corresponds to the JSON property detectorId
1903 1904 1905 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1903 def detector_id @detector_id end |
#display_name ⇒ String
Corresponds to the JSON property displayName
1908 1909 1910 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1908 def display_name @display_name end |
#explanation ⇒ String
Corresponds to the JSON property explanation
1913 1914 1915 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1913 def explanation @explanation end |
#recommendation ⇒ String
Corresponds to the JSON property recommendation
1918 1919 1920 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1918 def recommendation @recommendation end |
#severity ⇒ String
Corresponds to the JSON property severity
1923 1924 1925 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1923 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1930 1931 1932 1933 1934 1935 1936 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1930 def update!(**args) @detector_id = args[:detector_id] if args.key?(:detector_id) @display_name = args[:display_name] if args.key?(:display_name) @explanation = args[:explanation] if args.key?(:explanation) @recommendation = args[:recommendation] if args.key?(:recommendation) @severity = args[:severity] if args.key?(:severity) end |