4 cloudFPGA Resource Manager API
6 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8 OpenAPI spec version: 0.8
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
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.
34 'project_name':
'str',
43 'fpga_board':
'fpga_board',
44 'image_id':
'image_id',
45 'instance_id':
'instance_id',
46 'project_name':
'project_name',
48 'shell_type':
'shell_type',
49 'slot_num':
'slot_num',
54 def __init__(self, fpga_board=None, image_id=None, instance_id=None, project_name=None, role_ip=None, shell_type=None, slot_num=None, status=None, user_id=None):
55 """Instance - a model defined in Swagger"""
66 if fpga_board
is not None:
68 if image_id
is not None:
70 if instance_id
is not None:
72 if project_name
is not None:
74 if role_ip
is not None:
76 if shell_type
is not None:
78 if slot_num
is not None:
80 if status
is not None:
82 if user_id
is not None:
87 """Gets the fpga_board of this Instance. # noqa: E501
89 Type of cloudFPGA # noqa: E501
91 :return: The fpga_board of this Instance. # noqa: E501
98 """Sets the fpga_board of this Instance.
100 Type of cloudFPGA # noqa: E501
102 :param fpga_board: The fpga_board of this Instance. # noqa: E501
110 """Gets the image_id of this Instance. # noqa: E501
112 Image ID # noqa: E501
114 :return: The image_id of this Instance. # noqa: E501
121 """Sets the image_id of this Instance.
123 Image ID # noqa: E501
125 :param image_id: The image_id of this Instance. # noqa: E501
133 """Gets the instance_id of this Instance. # noqa: E501
135 ID of the instance # noqa: E501
137 :return: The instance_id of this Instance. # noqa: E501
144 """Sets the instance_id of this Instance.
146 ID of the instance # noqa: E501
148 :param instance_id: The instance_id of this Instance. # noqa: E501
156 """Gets the project_name of this Instance. # noqa: E501
158 Name of the OpenStack project the quota should be acounted to, if a user has multiple projects. # noqa: E501
160 :return: The project_name of this Instance. # noqa: E501
167 """Sets the project_name of this Instance.
169 Name of the OpenStack project the quota should be acounted to, if a user has multiple projects. # noqa: E501
171 :param project_name: The project_name of this Instance. # noqa: E501
179 """Gets the role_ip of this Instance. # noqa: E501
181 IP of sled manager # noqa: E501
183 :return: The role_ip of this Instance. # noqa: E501
190 """Sets the role_ip of this Instance.
192 IP of sled manager # noqa: E501
194 :param role_ip: The role_ip of this Instance. # noqa: E501
202 """Gets the shell_type of this Instance. # noqa: E501
204 Type of the current Shell (interface) of the FPGA # noqa: E501
206 :return: The shell_type of this Instance. # noqa: E501
213 """Sets the shell_type of this Instance.
215 Type of the current Shell (interface) of the FPGA # noqa: E501
217 :param shell_type: The shell_type of this Instance. # noqa: E501
225 """Gets the slot_num of this Instance. # noqa: E501
227 Slot number of resource # noqa: E501
229 :return: The slot_num of this Instance. # noqa: E501
236 """Sets the slot_num of this Instance.
238 Slot number of resource # noqa: E501
240 :param slot_num: The slot_num of this Instance. # noqa: E501
248 """Gets the status of this Instance. # noqa: E501
250 Status of instance # noqa: E501
252 :return: The status of this Instance. # noqa: E501
259 """Sets the status of this Instance.
261 Status of instance # noqa: E501
263 :param status: The status of this Instance. # noqa: E501
271 """Gets the user_id of this Instance. # noqa: E501
275 :return: The user_id of this Instance. # noqa: E501
282 """Sets the user_id of this Instance.
286 :param user_id: The user_id of this Instance. # noqa: E501
293 """Returns the model properties as a dict"""
296 for attr, _
in six.iteritems(self.
swagger_typesswagger_types):
297 value = getattr(self, attr)
298 if isinstance(value, list):
299 result[attr] = list(map(
300 lambda x: x.to_dict()
if hasattr(x,
"to_dict")
else x,
303 elif hasattr(value,
"to_dict"):
304 result[attr] = value.to_dict()
305 elif isinstance(value, dict):
306 result[attr] = dict(map(
307 lambda item: (item[0], item[1].
to_dict())
308 if hasattr(item[1],
"to_dict")
else item,
313 if issubclass(Instance, dict):
314 for key, value
in self.items():
320 """Returns the string representation of the model"""
321 return pprint.pformat(self.
to_dictto_dict())
324 """For `print` and `pprint`"""
325 return self.
to_strto_str()
328 """Returns true if both objects are equal"""
329 if not isinstance(other, Instance):
332 return self.
__dict____dict__ == other.__dict__
335 """Returns true if both objects are not equal"""
336 return not self == other
def user_id(self, user_id)
def role_ip(self, role_ip)
def fpga_board(self, fpga_board)
def __init__(self, fpga_board=None, image_id=None, instance_id=None, project_name=None, role_ip=None, shell_type=None, slot_num=None, status=None, user_id=None)
def shell_type(self, shell_type)
def project_name(self, project_name)
def slot_num(self, slot_num)
def image_id(self, image_id)
def instance_id(self, instance_id)