Google Cloud OS Config v1 API - Class OSPolicyAssignment.Types.InstanceFilter (2.3.0)

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

Reference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicyAssignment.Types.InstanceFilter.

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(InstanceFilter)

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

Properties

All

public bool All { get; set; }

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

Property Value
TypeDescription
bool

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
RepeatedFieldOSPolicyAssignmentTypesLabelSet

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
RepeatedFieldOSPolicyAssignmentTypesLabelSet

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
RepeatedFieldOSPolicyAssignmentTypesInstanceFilterTypesInventory