3 f÷ÔYùã@s8dZddlmZddlmZddlZGdd„deƒZdS)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@sveZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dS)ÚV1beta1NetworkPolicyPeerzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aN V1beta1NetworkPolicyPeer - 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. ÚV1LabelSelector)Únamespace_selectorÚ pod_selectorÚnamespaceSelectorÚ podSelectorN)Ú swagger_typesÚ attribute_mapÚ_namespace_selectorÚ _pod_selector)Úselfrr©rúe/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_network_policy_peer.pyÚ__init__s   z!V1beta1NetworkPolicyPeer.__init__cCs|jS)a® Gets the namespace_selector of this V1beta1NetworkPolicyPeer. Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces. :return: The namespace_selector of this V1beta1NetworkPolicyPeer. :rtype: V1LabelSelector )r )rrrrr.s z+V1beta1NetworkPolicyPeer.namespace_selectorcCs ||_dS)a¿ Sets the namespace_selector of this V1beta1NetworkPolicyPeer. Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces. :param namespace_selector: The namespace_selector of this V1beta1NetworkPolicyPeer. :type: V1LabelSelector N)r )rrrrrr9s cCs|jS)as Gets the pod_selector of this V1beta1NetworkPolicyPeer. This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace. :return: The pod_selector of this V1beta1NetworkPolicyPeer. :rtype: V1LabelSelector )r )rrrrrEs z%V1beta1NetworkPolicyPeer.pod_selectorcCs ||_dS)a~ Sets the pod_selector of this V1beta1NetworkPolicyPeer. This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace. :param pod_selector: The pod_selector of this V1beta1NetworkPolicyPeer. :type: V1LabelSelector N)r )rrrrrrPs cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)ÚxrrrÚfsz2V1beta1NetworkPolicyPeer.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrrms) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrr\s     z V1beta1NetworkPolicyPeer.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strvszV1beta1NetworkPolicyPeer.to_strcCs|jƒS)z* For `print` and `pprint` )r")rrrrÚ__repr__|sz!V1beta1NetworkPolicyPeer.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__‚s zV1beta1NetworkPolicyPeer.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr%rrrÚ__ne__‹szV1beta1NetworkPolicyPeer.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr"r#r&r'rrrrrs     r)r+ÚpprintrÚsixrÚreÚobjectrrrrrÚ s