Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig
- 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
-
#custom_output ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec
Corresponds to the JSON property
customOutput. -
#description ⇒ String
Corresponds to the JSON property
description. -
#predicate ⇒ Google::Apis::SecuritycenterV1beta2::Expr
Corresponds to the JSON property
predicate. -
#recommendation ⇒ String
Corresponds to the JSON property
recommendation. -
#resource_selector ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector
Corresponds to the JSON property
resourceSelector. -
#severity ⇒ String
Corresponds to the JSON property
severity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1CustomConfig
constructor
A new instance of GoogleCloudSecuritycenterV1CustomConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1CustomConfig
Returns a new instance of GoogleCloudSecuritycenterV1CustomConfig.
3199 3200 3201 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_output ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec
Corresponds to the JSON property customOutput
3172 3173 3174 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3172 def custom_output @custom_output end |
#description ⇒ String
Corresponds to the JSON property description
3177 3178 3179 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3177 def description @description end |
#predicate ⇒ Google::Apis::SecuritycenterV1beta2::Expr
Corresponds to the JSON property predicate
3182 3183 3184 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3182 def predicate @predicate end |
#recommendation ⇒ String
Corresponds to the JSON property recommendation
3187 3188 3189 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3187 def recommendation @recommendation end |
#resource_selector ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector
Corresponds to the JSON property resourceSelector
3192 3193 3194 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3192 def resource_selector @resource_selector end |
#severity ⇒ String
Corresponds to the JSON property severity
3197 3198 3199 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3197 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3204 3205 3206 3207 3208 3209 3210 3211 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3204 def update!(**args) @custom_output = args[:custom_output] if args.key?(:custom_output) @description = args[:description] if args.key?(:description) @predicate = args[:predicate] if args.key?(:predicate) @recommendation = args[:recommendation] if args.key?(:recommendation) @resource_selector = args[:resource_selector] if args.key?(:resource_selector) @severity = args[:severity] if args.key?(:severity) end |