ArmNetworkModelFactory.FirewallPolicyLabelSelectorExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
public static Azure.ResourceManager.Network.Models.FirewallPolicyLabelSelectorExpression FirewallPolicyLabelSelectorExpression(string key = default, Azure.ResourceManager.Network.Models.FirewallPolicyLabelSelectorOperator? operator = default, System.Collections.Generic.IEnumerable<string> values = default);
static member FirewallPolicyLabelSelectorExpression : string * Nullable<Azure.ResourceManager.Network.Models.FirewallPolicyLabelSelectorOperator> * seq<string> -> Azure.ResourceManager.Network.Models.FirewallPolicyLabelSelectorExpression
Public Shared Function FirewallPolicyLabelSelectorExpression (Optional key As String = Nothing, Optional operator As Nullable(Of FirewallPolicyLabelSelectorOperator) = Nothing, Optional values As IEnumerable(Of String) = Nothing) As FirewallPolicyLabelSelectorExpression
Parameters
- key
- String
key is a string of 63 characters or less, and must consist of alphanumeric characters, '-', '_' or '.'.
- operator
- Nullable<FirewallPolicyLabelSelectorOperator>
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
- values
- IEnumerable<String>
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.
Returns
A new FirewallPolicyLabelSelectorExpression instance for mocking.