Class: Google::Apis::SecuritycenterV1beta1::DetectorReference
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::DetectorReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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.
1994 1995 1996 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1994 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detector_id ⇒ String
Corresponds to the JSON property detectorId
1972 1973 1974 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1972 def detector_id @detector_id end |
#display_name ⇒ String
Corresponds to the JSON property displayName
1977 1978 1979 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1977 def display_name @display_name end |
#explanation ⇒ String
Corresponds to the JSON property explanation
1982 1983 1984 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1982 def explanation @explanation end |
#recommendation ⇒ String
Corresponds to the JSON property recommendation
1987 1988 1989 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1987 def recommendation @recommendation end |
#severity ⇒ String
Corresponds to the JSON property severity
1992 1993 1994 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1992 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1999 2000 2001 2002 2003 2004 2005 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1999 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 |