1# coding: utf-8
2"""
3    Kubernetes
4
5    No description provided (generated by Swagger Codegen
6    https://github.com/swagger-api/swagger-codegen)
7
8    OpenAPI spec version: v1.14.4
9
10    Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
12
13from pprint import pformat
14from six import iteritems
15import re
16
17
18class V1LoadBalancerStatus(object):
19  """
20    NOTE: This class is auto generated by the swagger code generator program.
21    Do not edit the class manually.
22    """
23  """
24    Attributes:
25      swagger_types (dict): The key is attribute name and the value is attribute
26        type.
27      attribute_map (dict): The key is attribute name and the value is json key
28        in definition.
29  """
30  swagger_types = {'ingress': 'list[V1LoadBalancerIngress]'}
31
32  attribute_map = {'ingress': 'ingress'}
33
34  def __init__(self, ingress=None):
35    """
36        V1LoadBalancerStatus - a model defined in Swagger
37        """
38
39    self._ingress = None
40    self.discriminator = None
41
42    if ingress is not None:
43      self.ingress = ingress
44
45  @property
46  def ingress(self):
47    """
48        Gets the ingress of this V1LoadBalancerStatus.
49        Ingress is a list containing ingress points for the load-balancer.
50        Traffic intended for the service should be sent to these ingress points.
51
52        :return: The ingress of this V1LoadBalancerStatus.
53        :rtype: list[V1LoadBalancerIngress]
54        """
55    return self._ingress
56
57  @ingress.setter
58  def ingress(self, ingress):
59    """
60        Sets the ingress of this V1LoadBalancerStatus.
61        Ingress is a list containing ingress points for the load-balancer.
62        Traffic intended for the service should be sent to these ingress points.
63
64        :param ingress: The ingress of this V1LoadBalancerStatus.
65        :type: list[V1LoadBalancerIngress]
66        """
67
68    self._ingress = ingress
69
70  def to_dict(self):
71    """
72        Returns the model properties as a dict
73        """
74    result = {}
75
76    for attr, _ in iteritems(self.swagger_types):
77      value = getattr(self, attr)
78      if isinstance(value, list):
79        result[attr] = list(
80            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
81      elif hasattr(value, 'to_dict'):
82        result[attr] = value.to_dict()
83      elif isinstance(value, dict):
84        result[attr] = dict(
85            map(
86                lambda item: (item[0], item[1].to_dict())
87                if hasattr(item[1], 'to_dict') else item, value.items()))
88      else:
89        result[attr] = value
90
91    return result
92
93  def to_str(self):
94    """
95        Returns the string representation of the model
96        """
97    return pformat(self.to_dict())
98
99  def __repr__(self):
100    """
101        For `print` and `pprint`
102        """
103    return self.to_str()
104
105  def __eq__(self, other):
106    """
107        Returns true if both objects are equal
108        """
109    if not isinstance(other, V1LoadBalancerStatus):
110      return False
111
112    return self.__dict__ == other.__dict__
113
114  def __ne__(self, other):
115    """
116        Returns true if both objects are not equal
117        """
118    return not self == other
119