kubernetes_asyncio.client.models.v1_label_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: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement(key=None, operator=None, values=None, local_vars_configuration=None)

Bases: object

NOTE: 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 V1LabelSelectorRequirement. # noqa: E501

key is the label key that the selector applies to. # noqa: E501

Returns:

The key of this V1LabelSelectorRequirement. # noqa: E501

Return type:

str

openapi_types = {'key': 'str', 'operator': 'str', 'values': 'list[str]'}
property operator

Gets the operator of this V1LabelSelectorRequirement. # noqa: E501

operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. # noqa: E501

Returns:

The operator of this V1LabelSelectorRequirement. # 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 V1LabelSelectorRequirement. # 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. This array is replaced during a strategic merge patch. # noqa: E501

Returns:

The values of this V1LabelSelectorRequirement. # noqa: E501

Return type:

list[str]