Class: Google::Apis::SecuritypostureV1::ResourceSelector
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::ResourceSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securityposture_v1/classes.rb,
lib/google/apis/securityposture_v1/representations.rb,
lib/google/apis/securityposture_v1/representations.rb
Overview
A selector for the resource types to run the detector on.
Instance Attribute Summary collapse
-
#resource_types ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceSelector
constructor
A new instance of ResourceSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceSelector
Returns a new instance of ResourceSelector.
1540 1541 1542 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1540 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_types ⇒ Array<String>
Required. The resource types to run the detector on. Each custom module can
specify up to 5 resource types.
Corresponds to the JSON property resourceTypes
1538 1539 1540 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1538 def resource_types @resource_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1545 1546 1547 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1545 def update!(**args) @resource_types = args[:resource_types] if args.key?(:resource_types) end |