Class: Google::Apis::SecuritycenterV1::AssetDiscoveryConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/securitycenter_v1/classes.rb,
generated/google/apis/securitycenter_v1/representations.rb,
generated/google/apis/securitycenter_v1/representations.rb

Overview

The configuration used for Asset Discovery runs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AssetDiscoveryConfig

Returns a new instance of AssetDiscoveryConfig.



111
112
113
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 111

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

Instance Attribute Details

#inclusion_modeString

The mode to use for filtering asset discovery. Corresponds to the JSON property inclusionMode

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 104

def inclusion_mode
  @inclusion_mode
end

#project_idsArray<String>

The project ids to use for filtering asset discovery. Corresponds to the JSON property projectIds

Returns:

  • (Array<String>)


109
110
111
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 109

def project_ids
  @project_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
119
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 116

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