3 f÷ÔYmIã@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`eZdZdZd0dd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZejdd„ƒZedd„ƒZejdd„ƒZed d!„ƒZejd"d!„ƒZed#d$„ƒZejd%d$„ƒZd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„ZdS)1Ú V1ServiceSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Nc Cs‚ddddddddddddœ |_ddd d d d d dddddœ |_||_||_||_||_||_||_||_||_ | |_ | |_ | |_ dS)aC V1ServiceSpec - 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]Úintzlist[V1ServicePort]zdict(str, str)) Ú cluster_ipÚ external_i_psÚ external_nameÚexternal_traffic_policyÚhealth_check_node_portÚload_balancer_ipÚload_balancer_source_rangesÚportsÚselectorÚsession_affinityÚtypeZ clusterIPZ externalIPsZ externalNameZexternalTrafficPolicyZhealthCheckNodePortZloadBalancerIPZloadBalancerSourceRangesrrZsessionAffinityrN) Ú swagger_typesÚ attribute_mapÚ _cluster_ipÚ_external_i_psÚ_external_nameÚ_external_traffic_policyÚ_health_check_node_portÚ_load_balancer_ipÚ_load_balancer_source_rangesÚ_portsÚ _selectorÚ_session_affinityÚ_type) Úselfrrr r r r r rrrr©r úY/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_service_spec.pyÚ__init__sB   zV1ServiceSpec.__init__cCs|jS)a Gets the cluster_ip of this V1ServiceSpec. clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :return: The cluster_ip of this V1ServiceSpec. :rtype: str )r)rr r r!rIs zV1ServiceSpec.cluster_ipcCs ||_dS)a Sets the cluster_ip of this V1ServiceSpec. clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :param cluster_ip: The cluster_ip of this V1ServiceSpec. :type: str N)r)rrr r r!rTs cCs|jS)aâ Gets the external_i_ps of this V1ServiceSpec. externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. :return: The external_i_ps of this V1ServiceSpec. :rtype: list[str] )r)rr r r!r`s zV1ServiceSpec.external_i_pscCs ||_dS)aî Sets the external_i_ps of this V1ServiceSpec. externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. :param external_i_ps: The external_i_ps of this V1ServiceSpec. :type: list[str] N)r)rrr r r!rks cCs|jS)ae Gets the external_name of this V1ServiceSpec. externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. :return: The external_name of this V1ServiceSpec. :rtype: str )r)rr r r!r ws zV1ServiceSpec.external_namecCs ||_dS)aq Sets the external_name of this V1ServiceSpec. externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. :param external_name: The external_name of this V1ServiceSpec. :type: str N)r)rr r r r!r ‚s cCs|jS)aD Gets the external_traffic_policy of this V1ServiceSpec. externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. :return: The external_traffic_policy of this V1ServiceSpec. :rtype: str )r)rr r r!r Žs z%V1ServiceSpec.external_traffic_policycCs ||_dS)aZ Sets the external_traffic_policy of this V1ServiceSpec. externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. :param external_traffic_policy: The external_traffic_policy of this V1ServiceSpec. :type: str N)r)rr r r r!r ™s cCs|jS)aõ Gets the health_check_node_port of this V1ServiceSpec. healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. :return: The health_check_node_port of this V1ServiceSpec. :rtype: int )r)rr r r!r ¥s z$V1ServiceSpec.health_check_node_portcCs ||_dS)a  Sets the health_check_node_port of this V1ServiceSpec. healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. :param health_check_node_port: The health_check_node_port of this V1ServiceSpec. :type: int N)r)rr r r r!r °s cCs|jS)aß Gets the load_balancer_ip of this V1ServiceSpec. Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. :return: The load_balancer_ip of this V1ServiceSpec. :rtype: str )r)rr r r!r ¼s zV1ServiceSpec.load_balancer_ipcCs ||_dS)aî Sets the load_balancer_ip of this V1ServiceSpec. Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. :type: str N)r)rr r r r!r Çs cCs|jS)a Gets the load_balancer_source_ranges of this V1ServiceSpec. If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ :return: The load_balancer_source_ranges of this V1ServiceSpec. :rtype: list[str] )r)rr r r!r Ós z)V1ServiceSpec.load_balancer_source_rangescCs ||_dS)a, Sets the load_balancer_source_ranges of this V1ServiceSpec. If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ :param load_balancer_source_ranges: The load_balancer_source_ranges of this V1ServiceSpec. :type: list[str] N)r)rr r r r!r Þs cCs|jS)a6 Gets the ports of this V1ServiceSpec. The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :return: The ports of this V1ServiceSpec. :rtype: list[V1ServicePort] )r)rr r r!rês zV1ServiceSpec.portscCs ||_dS)a: Sets the ports of this V1ServiceSpec. The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :param ports: The ports of this V1ServiceSpec. :type: list[V1ServicePort] N)r)rrr r r!rõs cCs|jS)a Gets the selector of this V1ServiceSpec. Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ :return: The selector of this V1ServiceSpec. :rtype: dict(str, str) )r)rr r r!rs zV1ServiceSpec.selectorcCs ||_dS)a Sets the selector of this V1ServiceSpec. Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ :param selector: The selector of this V1ServiceSpec. :type: dict(str, str) N)r)rrr r r!r s cCs|jS)a  Gets the session_affinity of this V1ServiceSpec. Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :return: The session_affinity of this V1ServiceSpec. :rtype: str )r)rr r r!rs zV1ServiceSpec.session_affinitycCs ||_dS)a¯ Sets the session_affinity of this V1ServiceSpec. Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies :param session_affinity: The session_affinity of this V1ServiceSpec. :type: str N)r)rrr r r!r#s cCs|jS)aé Gets the type of this V1ServiceSpec. type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types :return: The type of this V1ServiceSpec. :rtype: str )r)rr r r!r/s zV1ServiceSpec.typecCs ||_dS)aì Sets the type of this V1ServiceSpec. type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types :param type: The type of this V1ServiceSpec. :type: str N)r)rrr r r!r: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#)Úxr r r!ÚPsz'V1ServiceSpec.to_dict..r#cSs&t|ddƒr"|d|djƒfS|S)Nér#r)r$r#)Úitemr r r!r&Ws) rrÚgetattrÚ isinstanceÚlistÚmapr$r#ÚdictÚitems)rÚresultÚattrÚ_Úvaluer r r!r#Fs     zV1ServiceSpec.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr#)rr r r!Úto_str`szV1ServiceSpec.to_strcCs|jƒS)z* For `print` and `pprint` )r3)rr r r!Ú__repr__fszV1ServiceSpec.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r*rÚ__dict__)rÚotherr r r!Ú__eq__ls zV1ServiceSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r )rr6r r r!Ú__ne__uszV1ServiceSpec.__ne__) NNNNNNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r"ÚpropertyrÚsetterrr r r r r rrrrr#r3r4r7r8r r r r!rs: 1             r)r<ÚpprintrÚsixrÚreÚobjectrr r r r!Ú s