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.
3051 3052 3053 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3051 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_output ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec
Corresponds to the JSON property customOutput
3024 3025 3026 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3024 def custom_output @custom_output end |
#description ⇒ String
Corresponds to the JSON property description
3029 3030 3031 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3029 def description @description end |
#predicate ⇒ Google::Apis::SecuritycenterV1beta2::Expr
Corresponds to the JSON property predicate
3034 3035 3036 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3034 def predicate @predicate end |
#recommendation ⇒ String
Corresponds to the JSON property recommendation
3039 3040 3041 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3039 def recommendation @recommendation end |
#resource_selector ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector
Corresponds to the JSON property resourceSelector
3044 3045 3046 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3044 def resource_selector @resource_selector end |
#severity ⇒ String
Corresponds to the JSON property severity
3049 3050 3051 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3049 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3056 3057 3058 3059 3060 3061 3062 3063 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3056 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 |