Partilhar via


ArmContainerServiceFleetModelFactory.ContainerServiceFleetLabelSelector Method

Definition

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetLabelSelector ContainerServiceFleetLabelSelector(System.Collections.Generic.IDictionary<string,string> matchLabels = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetLabelSelectorRequirement> matchExpressions = default);
static member ContainerServiceFleetLabelSelector : System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetLabelSelectorRequirement> -> Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetLabelSelector
Public Shared Function ContainerServiceFleetLabelSelector (Optional matchLabels As IDictionary(Of String, String) = Nothing, Optional matchExpressions As IEnumerable(Of ContainerServiceFleetLabelSelectorRequirement) = Nothing) As ContainerServiceFleetLabelSelector

Parameters

matchLabels
IDictionary<String,String>

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

matchExpressions
IEnumerable<ContainerServiceFleetLabelSelectorRequirement>

matchExpressions is a list of label selector requirements. The requirements are ANDed.

Returns

A new ContainerServiceFleetLabelSelector instance for mocking.

Applies to