cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
inline_response2003.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 InlineResponse2003(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  'device': 'str',
32  'host': 'str',
33  'port': 'int'
34  }
35 
36  attribute_map = {
37  'device': 'device',
38  'host': 'host',
39  'port': 'port'
40  }
41 
42  def __init__(self, device=None, host=None, port=None): # noqa: E501
43  """InlineResponse2003 - a model defined in Swagger""" # noqa: E501
44  self._device_device = None
45  self._host_host = None
46  self._port_port = None
47  self.discriminatordiscriminator = None
48  if device is not None:
49  self.devicedevicedevicedevice = device
50  if host is not None:
51  self.hosthosthosthost = host
52  if port is not None:
53  self.portportportport = port
54 
55  @property
56  def device(self):
57  """Gets the device of this InlineResponse2003. # noqa: E501
58 
59  Device name of the FPGA in the hw_server connection # noqa: E501
60 
61  :return: The device of this InlineResponse2003. # noqa: E501
62  :rtype: str
63  """
64  return self._device_device
65 
66  @device.setter
67  def device(self, device):
68  """Sets the device of this InlineResponse2003.
69 
70  Device name of the FPGA in the hw_server connection # noqa: E501
71 
72  :param device: The device of this InlineResponse2003. # noqa: E501
73  :type: str
74  """
75 
76  self._device_device = device
77 
78  @property
79  def host(self):
80  """Gets the host of this InlineResponse2003. # noqa: E501
81 
82  Hostname or IP address to connect # noqa: E501
83 
84  :return: The host of this InlineResponse2003. # noqa: E501
85  :rtype: str
86  """
87  return self._host_host
88 
89  @host.setter
90  def host(self, host):
91  """Sets the host of this InlineResponse2003.
92 
93  Hostname or IP address to connect # noqa: E501
94 
95  :param host: The host of this InlineResponse2003. # noqa: E501
96  :type: str
97  """
98 
99  self._host_host = host
100 
101  @property
102  def port(self):
103  """Gets the port of this InlineResponse2003. # noqa: E501
104 
105  TCP port to connect # noqa: E501
106 
107  :return: The port of this InlineResponse2003. # noqa: E501
108  :rtype: int
109  """
110  return self._port_port
111 
112  @port.setter
113  def port(self, port):
114  """Sets the port of this InlineResponse2003.
115 
116  TCP port to connect # noqa: E501
117 
118  :param port: The port of this InlineResponse2003. # noqa: E501
119  :type: int
120  """
121 
122  self._port_port = port
123 
124  def to_dict(self):
125  """Returns the model properties as a dict"""
126  result = {}
127 
128  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
129  value = getattr(self, attr)
130  if isinstance(value, list):
131  result[attr] = list(map(
132  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133  value
134  ))
135  elif hasattr(value, "to_dict"):
136  result[attr] = value.to_dict()
137  elif isinstance(value, dict):
138  result[attr] = dict(map(
139  lambda item: (item[0], item[1].to_dict())
140  if hasattr(item[1], "to_dict") else item,
141  value.items()
142  ))
143  else:
144  result[attr] = value
145  if issubclass(InlineResponse2003, dict):
146  for key, value in self.items():
147  result[key] = value
148 
149  return result
150 
151  def to_str(self):
152  """Returns the string representation of the model"""
153  return pprint.pformat(self.to_dictto_dict())
154 
155  def __repr__(self):
156  """For `print` and `pprint`"""
157  return self.to_strto_str()
158 
159  def __eq__(self, other):
160  """Returns true if both objects are equal"""
161  if not isinstance(other, InlineResponse2003):
162  return False
163 
164  return self.__dict____dict__ == other.__dict__
165 
166  def __ne__(self, other):
167  """Returns true if both objects are not equal"""
168  return not self == other