Class InstanceFilter (1.12.1)

InstanceFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

NameDescription
all_ bool
Target all VMs in the project. If true, no other criteria is permitted.
inclusion_labels Sequence[google.cloud.osconfig_v1.types.OSPolicyAssignment.LabelSet]
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.
exclusion_labels Sequence[google.cloud.osconfig_v1.types.OSPolicyAssignment.LabelSet]
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.
inventories Sequence[google.cloud.osconfig_v1.types.OSPolicyAssignment.InstanceFilter.Inventory]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.

Inheritance

builtins.object > proto.message.Message > InstanceFilter

Classes

Inventory

Inventory(mapping=None, *, ignore_unknown_fields=False, **kwargs)

VM inventory details.