Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.58 KB

File metadata and controls

29 lines (22 loc) · 1.58 KB

V1LabelSelector

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.

Properties

Name Type Description Notes
match_expressions List[V1LabelSelectorRequirement] matchExpressions is a list of label selector requirements. The requirements are ANDed. [optional]
match_labels Dict[str, str] 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. [optional]

Example

from kubernetes.client.models.v1_label_selector import V1LabelSelector

# TODO update the JSON string below
json = "{}"
# create an instance of V1LabelSelector from a JSON string
v1_label_selector_instance = V1LabelSelector.from_json(json)
# print the JSON string representation of the object
print(V1LabelSelector.to_json())

# convert the object into a dict
v1_label_selector_dict = v1_label_selector_instance.to_dict()
# create an instance of V1LabelSelector from a dict
v1_label_selector_from_dict = V1LabelSelector.from_dict(v1_label_selector_dict)

[Back to Model list] [Back to API list] [Back to README]