kubernetes.aio.client.models.v1_field_selector_requirement 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_field_selector_requirement.V1FieldSelectorRequirement(key=None, operator=None, values=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 = {'key': 'key', 'operator': 'operator', 'values': 'values'}¶
- property key¶
Gets the key of this V1FieldSelectorRequirement. # noqa: E501
key is the field selector key that the requirement applies to. # noqa: E501
- Returns:
The key of this V1FieldSelectorRequirement. # noqa: E501
- Return type:
str
- openapi_types = {'key': 'str', 'operator': 'str', 'values': 'list[str]'}¶
- property operator¶
Gets the operator of this V1FieldSelectorRequirement. # noqa: E501
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future. # noqa: E501
- Returns:
The operator of this V1FieldSelectorRequirement. # noqa: E501
- Return type:
str
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model
- property values¶
Gets the values of this V1FieldSelectorRequirement. # noqa: E501
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. # noqa: E501
- Returns:
The values of this V1FieldSelectorRequirement. # noqa: E501
- Return type:
list[str]