Class OSPolicyAssignment.Types.InstanceFilter

public sealed class InstanceFilter : IMessage<OSPolicyAssignment.Types.InstanceFilter>, IEquatable<OSPolicyAssignment.Types.InstanceFilter>, IDeepCloneable<OSPolicyAssignment.Types.InstanceFilter>, IBufferMessage, IMessage

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.

Inheritance

Object > OSPolicyAssignment.Types.InstanceFilter

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

InstanceFilter()

public InstanceFilter()

InstanceFilter(OSPolicyAssignment.Types.InstanceFilter)

public InstanceFilter(OSPolicyAssignment.Types.InstanceFilter other)
Parameter
NameDescription
otherOSPolicyAssignment.Types.InstanceFilter

Properties

All

public bool All { get; set; }

Target all VMs in the project. If true, no other criteria is permitted.

Property Value
TypeDescription
Boolean

ExclusionLabels

public RepeatedField<OSPolicyAssignment.Types.LabelSet> ExclusionLabels { get; }

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.

Property Value
TypeDescription
RepeatedField<OSPolicyAssignment.Types.LabelSet>

InclusionLabels

public RepeatedField<OSPolicyAssignment.Types.LabelSet> InclusionLabels { get; }

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.

Property Value
TypeDescription
RepeatedField<OSPolicyAssignment.Types.LabelSet>

Inventories

public RepeatedField<OSPolicyAssignment.Types.InstanceFilter.Types.Inventory> Inventories { get; }

List of inventories to select VMs.

A VM is selected if its inventory data matches at least one of the following inventories.

Property Value
TypeDescription
RepeatedField<OSPolicyAssignment.Types.InstanceFilter.Types.Inventory>