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@sªeZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Z dd„Zdd„ZdS)Ú V1Endpointszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<dddddœ|_dddddœ|_||_||_||_||_d S) aA V1Endpoints - 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. ÚstrÚ V1ObjectMetazlist[V1EndpointSubset])Ú api_versionÚkindÚmetadataÚsubsetsÚ apiVersionrr r N)Ú swagger_typesÚ attribute_mapÚ _api_versionÚ_kindÚ _metadataÚ_subsets)Úselfrrr r ©rúV/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_endpoints.pyÚ__init__s   zV1Endpoints.__init__cCs|jS)aŸ Gets the api_version of this V1Endpoints. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources :return: The api_version of this V1Endpoints. :rtype: str )r)rrrrr4s zV1Endpoints.api_versioncCs ||_dS)a© Sets the api_version of this V1Endpoints. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources :param api_version: The api_version of this V1Endpoints. :type: str N)r)rrrrrr?s cCs|jS)a’ Gets the kind of this V1Endpoints. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds :return: The kind of this V1Endpoints. :rtype: str )r)rrrrrKs zV1Endpoints.kindcCs ||_dS)a• Sets the kind of this V1Endpoints. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds :param kind: The kind of this V1Endpoints. :type: str N)r)rrrrrrVs cCs|jS)a Gets the metadata of this V1Endpoints. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata :return: The metadata of this V1Endpoints. :rtype: V1ObjectMeta )r)rrrrr bs zV1Endpoints.metadatacCs ||_dS)a  Sets the metadata of this V1Endpoints. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata :param metadata: The metadata of this V1Endpoints. :type: V1ObjectMeta N)r)rr rrrr ms cCs|jS)ay Gets the subsets of this V1Endpoints. The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :return: The subsets of this V1Endpoints. :rtype: list[V1EndpointSubset] )r)rrrrr ys zV1Endpoints.subsetscCs|dkrtdƒ‚||_dS)a Sets the subsets of this V1Endpoints. The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. :param subsets: The subsets of this V1Endpoints. :type: list[V1EndpointSubset] Nz/Invalid value for `subsets`, must not be `None`)Ú ValueErrorr)rr rrrr „s 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Úœsz%V1Endpoints.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr£s) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrr’s     zV1Endpoints.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str¬szV1Endpoints.to_strcCs|jƒS)z* For `print` and `pprint` )r')rrrrÚ__repr__²szV1Endpoints.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__¸s zV1Endpoints.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr*rrrÚ__ne__ÁszV1Endpoints.__ne__)NNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr r rr'r(r+r,rrrrrs      r)r0ÚpprintrÚsixrÚreÚobjectrrrrrÚ s