3 fY@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS)V1LabelSelectorRequirementzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aP V1LabelSelectorRequirement - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. strz list[str])keyoperatorvaluesrrrN) swagger_types attribute_map_key _operator_values)selfrrrrg/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_label_selector_requirement.py__init__s   z#V1LabelSelectorRequirement.__init__cCs|jS)z Gets the key of this V1LabelSelectorRequirement. key is the label key that the selector applies to. :return: The key of this V1LabelSelectorRequirement. :rtype: str )r )rrrrr1s zV1LabelSelectorRequirement.keycCs|dkrtd||_dS)z Sets the key of this V1LabelSelectorRequirement. key is the label key that the selector applies to. :param key: The key of this V1LabelSelectorRequirement. :type: str Nz+Invalid value for `key`, must not be `None`) ValueErrorr )rrrrrr<s cCs|jS)a Gets the operator of this V1LabelSelectorRequirement. operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. :return: The operator of this V1LabelSelectorRequirement. :rtype: str )r )rrrrrJs z#V1LabelSelectorRequirement.operatorcCs|dkrtd||_dS)a" Sets the operator of this V1LabelSelectorRequirement. operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. :param operator: The operator of this V1LabelSelectorRequirement. :type: str Nz0Invalid value for `operator`, must not be `None`)rr )rrrrrrUs cCs|jS)a Gets the values of this V1LabelSelectorRequirement. 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. :return: The values of this V1LabelSelectorRequirement. :rtype: list[str] )r )rrrrrcs z!V1LabelSelectorRequirement.valuescCs ||_dS)a Sets the values of this V1LabelSelectorRequirement. 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. :param values: The values of this V1LabelSelectorRequirement. :type: list[str] N)r )rrrrrrns cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz4V1LabelSelectorRequirement.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrzs     z"V1LabelSelectorRequirement.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz!V1LabelSelectorRequirement.to_strcCs|jS)z* For `print` and `pprint` )r#)rrrr__repr__sz#V1LabelSelectorRequirement.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z!V1LabelSelectorRequirement.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr&rrr__ne__sz!V1LabelSelectorRequirement.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrrr#r$r'r(rrrrrs      r)r,pprintrsixrreobjectrrrrr s