Google Cloud OS Config v1alpha API - Class OSPolicyAssignment.Types.InstanceFilter (2.0.0-alpha04)

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 v1alpha 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.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.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

OsShortNames

[Obsolete]
public RepeatedField<string> OsShortNames { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring