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.
Implements
IMessageOSPolicyAssignmentTypesInstanceFilter, IEquatableOSPolicyAssignmentTypesInstanceFilter, IDeepCloneableOSPolicyAssignmentTypesInstanceFilter, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1Assembly
Google.Cloud.OsConfig.V1.dll
Constructors
InstanceFilter()
public InstanceFilter()
InstanceFilter(InstanceFilter)
public InstanceFilter(OSPolicyAssignment.Types.InstanceFilter other)
Parameter | |
---|---|
Name | Description |
other |
OSPolicyAssignmentTypesInstanceFilter |
Properties
All
public bool All { get; set; }
Target all VMs in the project. If true, no other criteria is permitted.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedFieldOSPolicyAssignmentTypesInstanceFilterTypesInventory |