Class: Google::Apis::SecuritypostureV1::ResourceSelector

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

Instance Method Summary collapse

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_typesArray<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

Returns:

  • (Array<String>)


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