Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceGroup
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyResourceGroup
- 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
-
#os_filter ⇒ Google::Apis::OsconfigV1alpha::OsPolicyOsFilter
The
OSFilteris used to specify the OS filtering criteria for the resource group. -
#resources ⇒ Array<Google::Apis::OsconfigV1alpha::OsPolicyResource>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceGroup
constructor
A new instance of OsPolicyResourceGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceGroup
Returns a new instance of OsPolicyResourceGroup.
1610 1611 1612 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#os_filter ⇒ Google::Apis::OsconfigV1alpha::OsPolicyOsFilter
The OSFilter is used to specify the OS filtering criteria for the resource
group.
Corresponds to the JSON property osFilter
1602 1603 1604 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1602 def os_filter @os_filter end |
#resources ⇒ Array<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
1608 1609 1610 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1608 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1615 1616 1617 1618 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1615 def update!(**args) @os_filter = args[:os_filter] if args.key?(:os_filter) @resources = args[:resources] if args.key?(:resources) end |