Class: Google::Apis::SecuritypostureV1::ResourceTypes

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

Set multiple resource types for one policy, for example: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only supports managed constraints. Method type is GOVERN_TAGS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceTypes

Returns a new instance of ResourceTypes.



1563
1564
1565
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1563

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

Instance Attribute Details

#includedArray<String>

Optional. The resource types we currently support. Corresponds to the JSON property included

Returns:

  • (Array<String>)


1561
1562
1563
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1561

def included
  @included
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1568
1569
1570
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1568

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