cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
inline_response2001.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 InlineResponse2001(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  'image_id': 'str',
32  'image_ip': 'str',
33  'instance_id': 'int',
34  'slot_num': 'int',
35  'staus': 'str'
36  }
37 
38  attribute_map = {
39  'image_id': 'image_id',
40  'image_ip': 'image_ip',
41  'instance_id': 'instance_id',
42  'slot_num': 'slot_num',
43  'staus': 'staus'
44  }
45 
46  def __init__(self, image_id=None, image_ip=None, instance_id=None, slot_num=None, staus=None): # noqa: E501
47  """InlineResponse2001 - a model defined in Swagger""" # noqa: E501
48  self._image_id_image_id = None
49  self._image_ip_image_ip = None
50  self._instance_id_instance_id = None
51  self._slot_num_slot_num = None
52  self._staus_staus = None
53  self.discriminatordiscriminator = None
54  if image_id is not None:
55  self.image_idimage_idimage_idimage_id = image_id
56  if image_ip is not None:
57  self.image_ipimage_ipimage_ipimage_ip = image_ip
58  if instance_id is not None:
59  self.instance_idinstance_idinstance_idinstance_id = instance_id
60  if slot_num is not None:
61  self.slot_numslot_numslot_numslot_num = slot_num
62  if staus is not None:
63  self.stausstausstausstaus = staus
64 
65  @property
66  def image_id(self):
67  """Gets the image_id of this InlineResponse2001. # noqa: E501
68 
69  Image unique identifier # noqa: E501
70 
71  :return: The image_id of this InlineResponse2001. # noqa: E501
72  :rtype: str
73  """
74  return self._image_id_image_id
75 
76  @image_id.setter
77  def image_id(self, image_id):
78  """Sets the image_id of this InlineResponse2001.
79 
80  Image unique identifier # noqa: E501
81 
82  :param image_id: The image_id of this InlineResponse2001. # noqa: E501
83  :type: str
84  """
85 
86  self._image_id_image_id = image_id
87 
88  @property
89  def image_ip(self):
90  """Gets the image_ip of this InlineResponse2001. # noqa: E501
91 
92  Ip Address of the SHELL # noqa: E501
93 
94  :return: The image_ip of this InlineResponse2001. # noqa: E501
95  :rtype: str
96  """
97  return self._image_ip_image_ip
98 
99  @image_ip.setter
100  def image_ip(self, image_ip):
101  """Sets the image_ip of this InlineResponse2001.
102 
103  Ip Address of the SHELL # noqa: E501
104 
105  :param image_ip: The image_ip of this InlineResponse2001. # noqa: E501
106  :type: str
107  """
108 
109  self._image_ip_image_ip = image_ip
110 
111  @property
112  def instance_id(self):
113  """Gets the instance_id of this InlineResponse2001. # noqa: E501
114 
115  ROLE instance unique identifier # noqa: E501
116 
117  :return: The instance_id of this InlineResponse2001. # noqa: E501
118  :rtype: int
119  """
120  return self._instance_id_instance_id
121 
122  @instance_id.setter
123  def instance_id(self, instance_id):
124  """Sets the instance_id of this InlineResponse2001.
125 
126  ROLE instance unique identifier # noqa: E501
127 
128  :param instance_id: The instance_id of this InlineResponse2001. # noqa: E501
129  :type: int
130  """
131 
132  self._instance_id_instance_id = instance_id
133 
134  @property
135  def slot_num(self):
136  """Gets the slot_num of this InlineResponse2001. # noqa: E501
137 
138  Number of the deployed slot # noqa: E501
139 
140  :return: The slot_num of this InlineResponse2001. # noqa: E501
141  :rtype: int
142  """
143  return self._slot_num_slot_num
144 
145  @slot_num.setter
146  def slot_num(self, slot_num):
147  """Sets the slot_num of this InlineResponse2001.
148 
149  Number of the deployed slot # noqa: E501
150 
151  :param slot_num: The slot_num of this InlineResponse2001. # noqa: E501
152  :type: int
153  """
154 
155  self._slot_num_slot_num = slot_num
156 
157  @property
158  def staus(self):
159  """Gets the staus of this InlineResponse2001. # noqa: E501
160 
161  Reports that the instance was sucessfull deployed. # noqa: E501
162 
163  :return: The staus of this InlineResponse2001. # noqa: E501
164  :rtype: str
165  """
166  return self._staus_staus
167 
168  @staus.setter
169  def staus(self, staus):
170  """Sets the staus of this InlineResponse2001.
171 
172  Reports that the instance was sucessfull deployed. # noqa: E501
173 
174  :param staus: The staus of this InlineResponse2001. # noqa: E501
175  :type: str
176  """
177 
178  self._staus_staus = staus
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(InlineResponse2001, 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, InlineResponse2001):
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, image_id=None, image_ip=None, instance_id=None, slot_num=None, staus=None)