cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
inline_response200.py
Go to the documentation of this file.
1 # coding: utf-8
2 
3 """
4  cloudFPGA Resource Manager API
5 
6  No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7 
8  OpenAPI spec version: 0.8
9 
10  Generated by: https://github.com/swagger-api/swagger-codegen.git
11 """
12 
13 import pprint
14 import re # noqa: F401
15 
16 import six
17 
18 class InlineResponse200(object):
19  """NOTE: This class is auto generated by the swagger code generator program.
20 
21  Do not edit the class manually.
22  """
23  """
24  Attributes:
25  swagger_types (dict): The key is attribute name
26  and the value is attribute type.
27  attribute_map (dict): The key is attribute name
28  and the value is json key in definition.
29  """
30  swagger_types = {
31  'gateway': 'str',
32  'ip_addr': 'str',
33  'status': 'str',
34  'subnet': 'str',
35  'subnet_mask': 'str'
36  }
37 
38  attribute_map = {
39  'gateway': 'gateway',
40  'ip_addr': 'ip_addr',
41  'status': 'status',
42  'subnet': 'subnet',
43  'subnet_mask': 'subnet_mask'
44  }
45 
46  def __init__(self, gateway=None, ip_addr=None, status=None, subnet=None, subnet_mask=None): # noqa: E501
47  """InlineResponse200 - a model defined in Swagger""" # noqa: E501
48  self._gateway_gateway = None
49  self._ip_addr_ip_addr = None
50  self._status_status = None
51  self._subnet_subnet = None
52  self._subnet_mask_subnet_mask = None
53  self.discriminatordiscriminator = None
54  if gateway is not None:
55  self.gatewaygatewaygatewaygateway = gateway
56  if ip_addr is not None:
57  self.ip_addrip_addrip_addrip_addr = ip_addr
58  if status is not None:
59  self.statusstatusstatusstatus = status
60  if subnet is not None:
61  self.subnetsubnetsubnetsubnet = subnet
62  if subnet_mask is not None:
63  self.subnet_masksubnet_masksubnet_masksubnet_mask = subnet_mask
64 
65  @property
66  def gateway(self):
67  """Gets the gateway of this InlineResponse200. # noqa: E501
68 
69  The gateway for this subnet # noqa: E501
70 
71  :return: The gateway of this InlineResponse200. # noqa: E501
72  :rtype: str
73  """
74  return self._gateway_gateway
75 
76  @gateway.setter
77  def gateway(self, gateway):
78  """Sets the gateway of this InlineResponse200.
79 
80  The gateway for this subnet # noqa: E501
81 
82  :param gateway: The gateway of this InlineResponse200. # noqa: E501
83  :type: str
84  """
85 
86  self._gateway_gateway = gateway
87 
88  @property
89  def ip_addr(self):
90  """Gets the ip_addr of this InlineResponse200. # noqa: E501
91 
92  the ip address... # noqa: E501
93 
94  :return: The ip_addr of this InlineResponse200. # noqa: E501
95  :rtype: str
96  """
97  return self._ip_addr_ip_addr
98 
99  @ip_addr.setter
100  def ip_addr(self, ip_addr):
101  """Sets the ip_addr of this InlineResponse200.
102 
103  the ip address... # noqa: E501
104 
105  :param ip_addr: The ip_addr of this InlineResponse200. # noqa: E501
106  :type: str
107  """
108 
109  self._ip_addr_ip_addr = ip_addr
110 
111  @property
112  def status(self):
113  """Gets the status of this InlineResponse200. # noqa: E501
114 
115  status of this ip addrs # noqa: E501
116 
117  :return: The status of this InlineResponse200. # noqa: E501
118  :rtype: str
119  """
120  return self._status_status
121 
122  @status.setter
123  def status(self, status):
124  """Sets the status of this InlineResponse200.
125 
126  status of this ip addrs # noqa: E501
127 
128  :param status: The status of this InlineResponse200. # noqa: E501
129  :type: str
130  """
131 
132  self._status_status = status
133 
134  @property
135  def subnet(self):
136  """Gets the subnet of this InlineResponse200. # noqa: E501
137 
138  subnet this ip addres belongs to # noqa: E501
139 
140  :return: The subnet of this InlineResponse200. # noqa: E501
141  :rtype: str
142  """
143  return self._subnet_subnet
144 
145  @subnet.setter
146  def subnet(self, subnet):
147  """Sets the subnet of this InlineResponse200.
148 
149  subnet this ip addres belongs to # noqa: E501
150 
151  :param subnet: The subnet of this InlineResponse200. # noqa: E501
152  :type: str
153  """
154 
155  self._subnet_subnet = subnet
156 
157  @property
158  def subnet_mask(self):
159  """Gets the subnet_mask of this InlineResponse200. # noqa: E501
160 
161  The subnetmask for this subnet # noqa: E501
162 
163  :return: The subnet_mask of this InlineResponse200. # noqa: E501
164  :rtype: str
165  """
166  return self._subnet_mask_subnet_mask
167 
168  @subnet_mask.setter
169  def subnet_mask(self, subnet_mask):
170  """Sets the subnet_mask of this InlineResponse200.
171 
172  The subnetmask for this subnet # noqa: E501
173 
174  :param subnet_mask: The subnet_mask of this InlineResponse200. # noqa: E501
175  :type: str
176  """
177 
178  self._subnet_mask_subnet_mask = subnet_mask
179 
180  def to_dict(self):
181  """Returns the model properties as a dict"""
182  result = {}
183 
184  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
185  value = getattr(self, attr)
186  if isinstance(value, list):
187  result[attr] = list(map(
188  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189  value
190  ))
191  elif hasattr(value, "to_dict"):
192  result[attr] = value.to_dict()
193  elif isinstance(value, dict):
194  result[attr] = dict(map(
195  lambda item: (item[0], item[1].to_dict())
196  if hasattr(item[1], "to_dict") else item,
197  value.items()
198  ))
199  else:
200  result[attr] = value
201  if issubclass(InlineResponse200, dict):
202  for key, value in self.items():
203  result[key] = value
204 
205  return result
206 
207  def to_str(self):
208  """Returns the string representation of the model"""
209  return pprint.pformat(self.to_dictto_dict())
210 
211  def __repr__(self):
212  """For `print` and `pprint`"""
213  return self.to_strto_str()
214 
215  def __eq__(self, other):
216  """Returns true if both objects are equal"""
217  if not isinstance(other, InlineResponse200):
218  return False
219 
220  return self.__dict____dict__ == other.__dict__
221 
222  def __ne__(self, other):
223  """Returns true if both objects are not equal"""
224  return not self == other
def __init__(self, gateway=None, ip_addr=None, status=None, subnet=None, subnet_mask=None)