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 edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Zdd„Zdd„ZdS)Ú V1ServicePortzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsFddddddœ|_ddddddœ|_||_||_||_||_||_d S) aC V1ServicePort - 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Úint)ÚnameÚ node_portÚportÚprotocolÚ target_portrZnodePortr r Z targetPortN)Ú swagger_typesÚ attribute_mapÚ_nameÚ _node_portÚ_portÚ _protocolÚ _target_port)Úselfrrr r r ©rúY/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_service_port.pyÚ__init__s   zV1ServicePort.__init__cCs|jS)as Gets the name of this V1ServicePort. The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :return: The name of this V1ServicePort. :rtype: str )r)rrrrr7s zV1ServicePort.namecCs ||_dS)av Sets the name of this V1ServicePort. The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. :param name: The name of this V1ServicePort. :type: str N)r)rrrrrrBs cCs|jS)a Gets the node_port of this V1ServicePort. The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport :return: The node_port of this V1ServicePort. :rtype: int )r)rrrrrNs zV1ServicePort.node_portcCs ||_dS)a& Sets the node_port of this V1ServicePort. The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport :param node_port: The node_port of this V1ServicePort. :type: int N)r)rrrrrrYs cCs|jS)z³ Gets the port of this V1ServicePort. The port that will be exposed by this service. :return: The port of this V1ServicePort. :rtype: int )r)rrrrr es zV1ServicePort.portcCs|dkrtdƒ‚||_dS)z¶ Sets the port of this V1ServicePort. The port that will be exposed by this service. :param port: The port of this V1ServicePort. :type: int Nz,Invalid value for `port`, must not be `None`)Ú ValueErrorr)rr rrrr ps cCs|jS)zÕ Gets the protocol of this V1ServicePort. The IP protocol for this port. Supports "TCP" and "UDP". Default is TCP. :return: The protocol of this V1ServicePort. :rtype: str )r)rrrrr ~s zV1ServicePort.protocolcCs ||_dS)zÜ Sets the protocol of this V1ServicePort. The IP protocol for this port. Supports "TCP" and "UDP". Default is TCP. :param protocol: The protocol of this V1ServicePort. :type: str N)r)rr rrrr ‰s cCs|jS)a¤ Gets the target_port of this V1ServicePort. Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service :return: The target_port of this V1ServicePort. :rtype: str )r)rrrrr •s zV1ServicePort.target_portcCs ||_dS)a® Sets the target_port of this V1ServicePort. Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service :param target_port: The target_port of this V1ServicePort. :type: str N)r)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'V1ServicePort.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     zV1ServicePort.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÆszV1ServicePort.to_strcCs|jƒS)z* For `print` and `pprint` )r()rrrrÚ__repr__ÌszV1ServicePort.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__Òs zV1ServicePort.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr+rrrÚ__ne__ÛszV1ServicePort.__ne__)NNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrr r r rr(r)r,r-rrrrrs"        r)r1ÚpprintrÚsixrÚreÚobjectrrrrrÚ s