Class: Google::Apis::SecuritycenterV1beta2::Config
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Config
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1beta2/classes.rb,
generated/google/apis/securitycenter_v1beta2/representations.rb,
generated/google/apis/securitycenter_v1beta2/representations.rb
Overview
Configuration of a module.
Instance Attribute Summary collapse
-
#module_enablement_state ⇒ String
The state of enablement for the module at its level of the resource hierarchy.
-
#value ⇒ Hash<String,Object>
The configuration value for the module.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Config
constructor
A new instance of Config.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Config
Returns a new instance of Config.
40 41 42 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#module_enablement_state ⇒ String
The state of enablement for the module at its level of the resource hierarchy.
Corresponds to the JSON property moduleEnablementState
32 33 34 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 32 def module_enablement_state @module_enablement_state end |
#value ⇒ Hash<String,Object>
The configuration value for the module. The absence of this field implies its
inheritance from the parent.
Corresponds to the JSON property value
38 39 40 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 38 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 48 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 45 def update!(**args) @module_enablement_state = args[:module_enablement_state] if args.key?(:module_enablement_state) @value = args[:value] if args.key?(:value) end |