Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceGroup

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

Overview

Resource groups provide a mechanism to group OS policy resources. Resource groups enable OS policy authors to create a single OS policy to be applied to VMs running different operating Systems. When the OS policy is applied to a target VM, the appropriate resource group within the OS policy is selected based on the OSFilter specified within the resource group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceGroup

Returns a new instance of OsPolicyResourceGroup.



1713
1714
1715
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1713

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

Instance Attribute Details

#os_filterGoogle::Apis::OsconfigV1alpha::OsPolicyOsFilter

The OSFilter is used to specify the OS filtering criteria for the resource group. Corresponds to the JSON property osFilter



1705
1706
1707
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1705

def os_filter
  @os_filter
end

#resourcesArray<Google::Apis::OsconfigV1alpha::OsPolicyResource>

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here. Corresponds to the JSON property resources



1711
1712
1713
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1711

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1718
1719
1720
1721
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1718

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