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 V1beta1RoleRef(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 = {'api_group': 'str', 'kind': 'str', 'name': 'str'}
31
32  attribute_map = {'api_group': 'apiGroup', 'kind': 'kind', 'name': 'name'}
33
34  def __init__(self, api_group=None, kind=None, name=None):
35    """
36        V1beta1RoleRef - a model defined in Swagger
37        """
38
39    self._api_group = None
40    self._kind = None
41    self._name = None
42    self.discriminator = None
43
44    self.api_group = api_group
45    self.kind = kind
46    self.name = name
47
48  @property
49  def api_group(self):
50    """
51        Gets the api_group of this V1beta1RoleRef.
52        APIGroup is the group for the resource being referenced
53
54        :return: The api_group of this V1beta1RoleRef.
55        :rtype: str
56        """
57    return self._api_group
58
59  @api_group.setter
60  def api_group(self, api_group):
61    """
62        Sets the api_group of this V1beta1RoleRef.
63        APIGroup is the group for the resource being referenced
64
65        :param api_group: The api_group of this V1beta1RoleRef.
66        :type: str
67        """
68    if api_group is None:
69      raise ValueError('Invalid value for `api_group`, must not be `None`')
70
71    self._api_group = api_group
72
73  @property
74  def kind(self):
75    """
76        Gets the kind of this V1beta1RoleRef.
77        Kind is the type of resource being referenced
78
79        :return: The kind of this V1beta1RoleRef.
80        :rtype: str
81        """
82    return self._kind
83
84  @kind.setter
85  def kind(self, kind):
86    """
87        Sets the kind of this V1beta1RoleRef.
88        Kind is the type of resource being referenced
89
90        :param kind: The kind of this V1beta1RoleRef.
91        :type: str
92        """
93    if kind is None:
94      raise ValueError('Invalid value for `kind`, must not be `None`')
95
96    self._kind = kind
97
98  @property
99  def name(self):
100    """
101        Gets the name of this V1beta1RoleRef.
102        Name is the name of resource being referenced
103
104        :return: The name of this V1beta1RoleRef.
105        :rtype: str
106        """
107    return self._name
108
109  @name.setter
110  def name(self, name):
111    """
112        Sets the name of this V1beta1RoleRef.
113        Name is the name of resource being referenced
114
115        :param name: The name of this V1beta1RoleRef.
116        :type: str
117        """
118    if name is None:
119      raise ValueError('Invalid value for `name`, must not be `None`')
120
121    self._name = name
122
123  def to_dict(self):
124    """
125        Returns the model properties as a dict
126        """
127    result = {}
128
129    for attr, _ in iteritems(self.swagger_types):
130      value = getattr(self, attr)
131      if isinstance(value, list):
132        result[attr] = list(
133            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
134      elif hasattr(value, 'to_dict'):
135        result[attr] = value.to_dict()
136      elif isinstance(value, dict):
137        result[attr] = dict(
138            map(
139                lambda item: (item[0], item[1].to_dict())
140                if hasattr(item[1], 'to_dict') else item, value.items()))
141      else:
142        result[attr] = value
143
144    return result
145
146  def to_str(self):
147    """
148        Returns the string representation of the model
149        """
150    return pformat(self.to_dict())
151
152  def __repr__(self):
153    """
154        For `print` and `pprint`
155        """
156    return self.to_str()
157
158  def __eq__(self, other):
159    """
160        Returns true if both objects are equal
161        """
162    if not isinstance(other, V1beta1RoleRef):
163      return False
164
165    return self.__dict__ == other.__dict__
166
167  def __ne__(self, other):
168    """
169        Returns true if both objects are not equal
170        """
171    return not self == other
172