Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DetectorReference
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DetectorReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/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) ⇒ GoogleCloudSecuritycenterV2DetectorReference
constructor
A new instance of GoogleCloudSecuritycenterV2DetectorReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2DetectorReference
Returns a new instance of GoogleCloudSecuritycenterV2DetectorReference.
6673 6674 6675 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6673 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detector_id ⇒ String
Corresponds to the JSON property detectorId
6651 6652 6653 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6651 def detector_id @detector_id end |
#display_name ⇒ String
Corresponds to the JSON property displayName
6656 6657 6658 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6656 def display_name @display_name end |
#explanation ⇒ String
Corresponds to the JSON property explanation
6661 6662 6663 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6661 def explanation @explanation end |
#recommendation ⇒ String
Corresponds to the JSON property recommendation
6666 6667 6668 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6666 def recommendation @recommendation end |
#severity ⇒ String
Corresponds to the JSON property severity
6671 6672 6673 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6671 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6678 6679 6680 6681 6682 6683 6684 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6678 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 |