class Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter
Filters to select target VMs for an assignment. If more than one filter criteria is specified below, a VM will be selected if and only if it satisfies all of them.
Attributes
Target all VMs in the project. If true, no other criteria is permitted. Corresponds to the JSON property `all` @return [Boolean]
Target all VMs in the project. If true, no other criteria is permitted. Corresponds to the JSON property `all` @return [Boolean]
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. Corresponds to the JSON property `exclusionLabels` @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
List of label sets used for VM inclusion. If the list has more than one ` LabelSet`, the VM is included if any of the label sets are applicable for the VM. Corresponds to the JSON property `inclusionLabels` @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories. Corresponds to the JSON property `inventories` @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory>]
Deprecated. Use the `inventories` field instead. A VM is selected if it's OS short name matches with any of the values provided in this list. Corresponds to the JSON property `osShortNames` @return [Array<String>]
Public Class Methods
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1168 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1173 def update!(**args) @all = args[:all] if args.key?(:all) @exclusion_labels = args[:exclusion_labels] if args.key?(:exclusion_labels) @inclusion_labels = args[:inclusion_labels] if args.key?(:inclusion_labels) @inventories = args[:inventories] if args.key?(:inventories) @os_short_names = args[:os_short_names] if args.key?(:os_short_names) end