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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#os_filter
def os_filter() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter) — Used to specify the OS filter for a resource group
#os_filter=
def os_filter=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter
Parameter
- value (::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter) — Used to specify the OS filter for a resource group
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter) — Used to specify the OS filter for a resource group
#resources
def resources() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource>
Returns
- (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource>) — Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
#resources=
def resources=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource>
Parameter
- value (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource>) — Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
Returns
- (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource>) — Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.