Class MetadataLabelMatcher (0.5.10)

MetadataLabelMatcher(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The matcher that is based on node metadata presented by xDS clients.

Attributes

NameDescription
metadata_label_match_criteria google.cloud.network_services_v1.types.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria
Specifies how matching should be done. Supported values are: MATCH_ANY: At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL: The metadata presented by the xDS client should contain all of the labels specified here. The selection is determined based on the best match. For example, suppose there are three EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY
metadata_labels MutableSequence[google.cloud.network_services_v1.types.EndpointMatcher.MetadataLabelMatcher.MetadataLabels]
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list can have at most 64 entries. The list can be empty if the match criteria is MATCH_ANY, to specify a wildcard match (i.e this matches any client).

Classes

MetadataLabelMatchCriteria

MetadataLabelMatchCriteria(value)

Possible criteria values that define logic of how matching is made.

Values: METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED (0): Default value. Should not be used. MATCH_ANY (1): At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL (2): The metadata presented by the xDS client should contain all of the labels specified here.

MetadataLabels

MetadataLabels(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines a name-pair value for a single label.