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 V1ResourceQuotaStatus(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 = {'hard': 'dict(str, str)', 'used': 'dict(str, str)'}
31
32  attribute_map = {'hard': 'hard', 'used': 'used'}
33
34  def __init__(self, hard=None, used=None):
35    """
36        V1ResourceQuotaStatus - a model defined in Swagger
37        """
38
39    self._hard = None
40    self._used = None
41    self.discriminator = None
42
43    if hard is not None:
44      self.hard = hard
45    if used is not None:
46      self.used = used
47
48  @property
49  def hard(self):
50    """
51        Gets the hard of this V1ResourceQuotaStatus.
52        Hard is the set of enforced hard limits for each named resource. More
53        info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
54
55        :return: The hard of this V1ResourceQuotaStatus.
56        :rtype: dict(str, str)
57        """
58    return self._hard
59
60  @hard.setter
61  def hard(self, hard):
62    """
63        Sets the hard of this V1ResourceQuotaStatus.
64        Hard is the set of enforced hard limits for each named resource. More
65        info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
66
67        :param hard: The hard of this V1ResourceQuotaStatus.
68        :type: dict(str, str)
69        """
70
71    self._hard = hard
72
73  @property
74  def used(self):
75    """
76        Gets the used of this V1ResourceQuotaStatus.
77        Used is the current observed total usage of the resource in the
78        namespace.
79
80        :return: The used of this V1ResourceQuotaStatus.
81        :rtype: dict(str, str)
82        """
83    return self._used
84
85  @used.setter
86  def used(self, used):
87    """
88        Sets the used of this V1ResourceQuotaStatus.
89        Used is the current observed total usage of the resource in the
90        namespace.
91
92        :param used: The used of this V1ResourceQuotaStatus.
93        :type: dict(str, str)
94        """
95
96    self._used = used
97
98  def to_dict(self):
99    """
100        Returns the model properties as a dict
101        """
102    result = {}
103
104    for attr, _ in iteritems(self.swagger_types):
105      value = getattr(self, attr)
106      if isinstance(value, list):
107        result[attr] = list(
108            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
109      elif hasattr(value, 'to_dict'):
110        result[attr] = value.to_dict()
111      elif isinstance(value, dict):
112        result[attr] = dict(
113            map(
114                lambda item: (item[0], item[1].to_dict())
115                if hasattr(item[1], 'to_dict') else item, value.items()))
116      else:
117        result[attr] = value
118
119    return result
120
121  def to_str(self):
122    """
123        Returns the string representation of the model
124        """
125    return pformat(self.to_dict())
126
127  def __repr__(self):
128    """
129        For `print` and `pprint`
130        """
131    return self.to_str()
132
133  def __eq__(self, other):
134    """
135        Returns true if both objects are equal
136        """
137    if not isinstance(other, V1ResourceQuotaStatus):
138      return False
139
140    return self.__dict__ == other.__dict__
141
142  def __ne__(self, other):
143    """
144        Returns true if both objects are not equal
145        """
146    return not self == other
147