
    Y                     >    S r SSKJr  SSKJr  SSKr " S S\5      rg)z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                   @   \ rS rSrSr SSSSSSSSSSSS	SS
.rSSSSSSSSSSSSSS
.r             S:S jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S  5       r\R                  S! 5       r\S" 5       r\R                  S# 5       r\S$ 5       r\R                  S% 5       r\S& 5       r\R                  S' 5       r\S( 5       r\R                  S) 5       r\S* 5       r\R                  S+ 5       r\S, 5       r\R                  S- 5       r\S. 5       r\R                  S/ 5       r\S0 5       r\R                  S1 5       r\S2 5       r\R                  S3 5       rS4 rS5 rS6 rS7 rS8 rS9rg);V1ServiceSpec   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
strz	list[str]intzlist[V1ServicePort]boolzdict(str, str)V1SessionAffinityConfig)
cluster_ipexternal_i_psexternal_nameexternal_traffic_policyhealth_check_node_portload_balancer_ipload_balancer_source_rangesportspublish_not_ready_addressesselectorsession_affinitysession_affinity_configtype	clusterIPexternalIPsexternalNameexternalTrafficPolicyhealthCheckNodePortloadBalancerIPloadBalancerSourceRangesr   publishNotReadyAddressesr   sessionAffinitysessionAffinityConfigr   Nc                    SU l         SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l	        SU l
        SU l        SU l        SU l        Ub  Xl        Ub  X l        Ub  X0l        Ub  X@l        Ub  XPl        Ub  X`l        Ub  Xpl        Ub  Xl        U	b  Xl        U
b  Xl        Ub  Xl        Ub  Xl        Ub  Xl        gg)z,
V1ServiceSpec - a model defined in Swagger
N)_cluster_ip_external_i_ps_external_name_external_traffic_policy_health_check_node_port_load_balancer_ip_load_balancer_source_ranges_ports_publish_not_ready_addresses	_selector_session_affinity_session_affinity_config_typediscriminatorr   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   r   r   s                 ;lib/third_party/kubernetes/client/models/v1_service_spec.py__init__V1ServiceSpec.__init__>   s   $ DDD$(D!#'D !D(,D%DK(,D%DN!D$(D!DJD"o ( (*%<")$:!#.".)D&j".)D&m#.*%<"i     c                     U R                   $ )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$   r2   s    r3   r   V1ServiceSpec.cluster_ipz   s    " r6   c                     Xl         g)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
Nr8   )r2   r   s     r3   r   r:      s
    $ "r6   c                     U R                   $ )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%   r9   s    r3   r   V1ServiceSpec.external_i_ps   s     r6   c                     Xl         g)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]
Nr=   )r2   r   s     r3   r   r>      s
     (r6   c                     U R                   $ )al  
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 RFC-1123 hostname (https://tools.ietf.org/html/rfc1123)
and requires Type to be ExternalName.

:return: The external_name of this V1ServiceSpec.
:rtype: str
r&   r9   s    r3   r   V1ServiceSpec.external_name   s     r6   c                     Xl         g)ax  
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 RFC-1123 hostname (https://tools.ietf.org/html/rfc1123)
and requires Type to be ExternalName.

:param external_name: The external_name of this V1ServiceSpec.
:type: str
NrA   )r2   r   s     r3   r   rB      s
     (r6   c                     U R                   $ )a  
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'   r9   s    r3   r   %V1ServiceSpec.external_traffic_policy   s     (((r6   c                     Xl         g)a2  
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
NrE   )r2   r   s     r3   r   rF      s
      %<!r6   c                     U R                   $ )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(   r9   s    r3   r   $V1ServiceSpec.health_check_node_port   s     '''r6   c                     Xl         g)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
NrI   )r2   r   s     r3   r   rJ     s
     $: r6   c                     U R                   $ )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)   r9   s    r3   r   V1ServiceSpec.load_balancer_ip  s     !!!r6   c                     Xl         g)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
NrM   )r2   r   s     r3   r   rN   .  s
     .r6   c                     U R                   $ )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*   r9   s    r3   r   )V1ServiceSpec.load_balancer_source_ranges>  s     ,,,r6   c                     Xl         g)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]
NrQ   )r2   r   s     r3   r   rR   M  s     )D%r6   c                     U R                   $ )a  
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+   r9   s    r3   r   V1ServiceSpec.ports^  s     ;;r6   c                     Xl         g)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]
NrU   )r2   r   s     r3   r   rV   j  s	     Kr6   c                     U R                   $ )a  
Gets the publish_not_ready_addresses of this V1ServiceSpec.
publishNotReadyAddresses, when set to true, indicates that DNS
implementations must publish the notReadyAddresses of subsets for the
Endpoints associated with the Service. The default value is false. The
primary use case for setting this field is to use a StatefulSet's
Headless Service to propagate SRV records for its Pods without respect
to their readiness for purpose of peer discovery.

:return: The publish_not_ready_addresses of this V1ServiceSpec.
:rtype: bool
r,   r9   s    r3   r   )V1ServiceSpec.publish_not_ready_addressesw  s     ,,,r6   c                     Xl         g)a,  
Sets the publish_not_ready_addresses of this V1ServiceSpec.
publishNotReadyAddresses, when set to true, indicates that DNS
implementations must publish the notReadyAddresses of subsets for the
Endpoints associated with the Service. The default value is false. The
primary use case for setting this field is to use a StatefulSet's
Headless Service to propagate SRV records for its Pods without respect
to their readiness for purpose of peer discovery.

:param publish_not_ready_addresses: The publish_not_ready_addresses of
this V1ServiceSpec.
:type: bool
NrY   )r2   r   s     r3   r   rZ     s      )D%r6   c                     U R                   $ )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-   r9   s    r3   r   V1ServiceSpec.selector  s     >>r6   c                     Xl         g)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)
Nr]   )r2   r   s     r3   r   r^     s	     Nr6   c                     U R                   $ )ax  
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.   r9   s    r3   r   V1ServiceSpec.session_affinity  s     !!!r6   c                     Xl         g)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
Nra   )r2   r   s     r3   r   rb     s
     .r6   c                     U R                   $ )z
Gets the session_affinity_config of this V1ServiceSpec.
sessionAffinityConfig contains the configurations of session affinity.

:return: The session_affinity_config of this V1ServiceSpec.
:rtype: V1SessionAffinityConfig
r/   r9   s    r3   r   %V1ServiceSpec.session_affinity_config  s     (((r6   c                     Xl         g)z
Sets the session_affinity_config of this V1ServiceSpec.
sessionAffinityConfig contains the configurations of session affinity.

:param session_affinity_config: The session_affinity_config of this
V1ServiceSpec.
:type: V1SessionAffinityConfig
Nre   )r2   r   s     r3   r   rf     s
     %<!r6   c                     U R                   $ )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
r0   r9   s    r3   r   V1ServiceSpec.type  s    * ::r6   c                     Xl         g)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
Nri   )r2   r   s     r3   r   rj     s	    , Jr6   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrrn   )xs    r3   <lambda>'V1ServiceSpec.to_dict.<locals>.<lambda>(  s    I)>)>!))+EAEr6   rn   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rn   r   ro   )items    r3   rr   rs   .  s9    47I.. #1gtAw'89 9489r6   )
r   swagger_typesgetattr
isinstancelistmaprp   rn   dictitems)r2   resultattr_values        r3   rn   V1ServiceSpec.to_dict  s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr6   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   rn   r9   s    r3   to_strV1ServiceSpec.to_str5  s     4<<>""r6   c                 "    U R                  5       $ )z
For `print` and `pprint`
)r   r9   s    r3   __repr__V1ServiceSpec.__repr__;  s     ;;=r6   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)ry   r   __dict__r2   others     r3   __eq__V1ServiceSpec.__eq__A  s'     e]++==ENN**r6   c                     X:X  + $ )z,
Returns true if both objects are not equal
 r   s     r3   __ne__V1ServiceSpec.__ne__J  s     r6   )r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r   r1   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNNNNNNN)__name__
__module____qualname____firstlineno____doc__rw   attribute_mapr4   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rn   r   r   r   r   __static_attributes__r   r6   r3   r   r      s    "!& %%0$%+"!:-"  $%!8 5*%?%?+!8-" !!'+&* $+/+/ $'+:x  $ " "&   ( (   ( ( ) ) !!< "<" ( (   : !:  " " . . - - %%D &D  	 	 	<<
 
 - - %%D &D"   ??   " " . . ) ) !!
< "
<  , ;; ..#+r6   r   )r   pprintr   sixr   reobjectr   r   r6   r3   <module>r      s#   	   	|F |r6   