kubernetes.aio.client.models.v1_label_selector module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_label_selector.V1LabelSelector(match_expressions=None, match_labels=None, local_vars_configuration=None)¶
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'match_expressions': 'matchExpressions', 'match_labels': 'matchLabels'}¶
- property match_expressions¶
Gets the match_expressions of this V1LabelSelector. # noqa: E501
matchExpressions is a list of label selector requirements. The requirements are ANDed. # noqa: E501
- Returns:
The match_expressions of this V1LabelSelector. # noqa: E501
- Return type:
- property match_labels¶
Gets the match_labels of this V1LabelSelector. # noqa: E501
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. # noqa: E501
- Returns:
The match_labels of this V1LabelSelector. # noqa: E501
- Return type:
dict[str, str]
- openapi_types = {'match_expressions': 'list[V1LabelSelectorRequirement]', 'match_labels': 'dict[str, str]'}¶
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model