Class: Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule

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

Overview

An EffectiveEventThreatDetectionCustomModule is the representation of an Event Threat Detection custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the enablement_state property in EffectiveEventThreatDetectionCustomModule is set to the value that is effective in the parent, instead of INHERITED. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also enabled. EffectiveEventThreatDetectionCustomModule is read-only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EffectiveEventThreatDetectionCustomModule

Returns a new instance of EffectiveEventThreatDetectionCustomModule.



2099
2100
2101
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2099

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

Instance Attribute Details

#configHash<String,Object>

Output only. Config for the effective module. Corresponds to the JSON property config

Returns:



2067
2068
2069
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2067

def config
  @config
end

#descriptionString

Output only. The description for the module. Corresponds to the JSON property description

Returns:

  • (String)


2072
2073
2074
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2072

def description
  @description
end

#display_nameString

Output only. The human readable name to be displayed for the module. Corresponds to the JSON property displayName

Returns:

  • (String)


2077
2078
2079
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2077

def display_name
  @display_name
end

#enablement_stateString

Output only. The effective state of enablement for the module at the given level of the hierarchy. Corresponds to the JSON property enablementState

Returns:

  • (String)


2083
2084
2085
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2083

def enablement_state
  @enablement_state
end

#nameString

Output only. The resource name of the effective ETD custom module. Its format is: * organizations/organization/eventThreatDetectionSettings/ effectiveCustomModules/module. * `folders/`folder`/ eventThreatDetectionSettings/effectiveCustomModules/`module. * projects/ project/eventThreatDetectionSettings/effectiveCustomModules/module`. Corresponds to the JSON propertyname`

Returns:

  • (String)


2092
2093
2094
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2092

def name
  @name
end

#typeString

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP. Corresponds to the JSON property type

Returns:

  • (String)


2097
2098
2099
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2097

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2104
2105
2106
2107
2108
2109
2110
2111
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2104

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enablement_state = args[:enablement_state] if args.key?(:enablement_state)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end