ArmContainerServiceFleetModelFactory.ContainerServiceFleetPropertySelectorRequirement Method

Definition

PropertySelectorRequirement is a specific property requirement when picking clusters for resource placement.

public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPropertySelectorRequirement ContainerServiceFleetPropertySelectorRequirement(string name = default, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPropertySelectorOperator operator = default, System.Collections.Generic.IEnumerable<string> values = default);
static member ContainerServiceFleetPropertySelectorRequirement : string * Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPropertySelectorOperator * seq<string> -> Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPropertySelectorRequirement
Public Shared Function ContainerServiceFleetPropertySelectorRequirement (Optional name As String = Nothing, Optional operator As ContainerServiceFleetPropertySelectorOperator = Nothing, Optional values As IEnumerable(Of String) = Nothing) As ContainerServiceFleetPropertySelectorRequirement

Parameters

name
String

Name is the name of the property; it should be a Kubernetes label name.

operator
ContainerServiceFleetPropertySelectorOperator

Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement.

values
IEnumerable<String>

Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list.

Returns

A new ContainerServiceFleetPropertySelectorRequirement instance for mocking.

Applies to