Class: Google::Apis::SecuritycenterV1beta2::Config

Inherits:
Object
  • Object
show all
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

Overview

Configuration of a module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Config

Returns a new instance of Config.



124
125
126
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 124

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#module_enablement_stateString

The state of enablement for the module at its level of the resource hierarchy. Corresponds to the JSON property moduleEnablementState

Returns:

  • (String)


116
117
118
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 116

def module_enablement_state
  @module_enablement_state
end

#valueHash<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

Returns:

  • (Hash<String,Object>)


122
123
124
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 122

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



129
130
131
132
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 129

def update!(**args)
  @module_enablement_state = args[:module_enablement_state] if args.key?(:module_enablement_state)
  @value = args[:value] if args.key?(:value)
end