cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
cluster_id_node_id_body.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 ClusterIdNodeIdBody(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  }
33 
34  attribute_map = {
35  'image_id': 'image_id'
36  }
37 
38  def __init__(self, image_id=None): # noqa: E501
39  """ClusterIdNodeIdBody - a model defined in Swagger""" # noqa: E501
40  self._image_id_image_id = None
41  self.discriminatordiscriminator = None
42  self.image_idimage_idimage_idimage_id = image_id
43 
44  @property
45  def image_id(self):
46  """Gets the image_id of this ClusterIdNodeIdBody. # noqa: E501
47 
48  Image unique identifier # noqa: E501
49 
50  :return: The image_id of this ClusterIdNodeIdBody. # noqa: E501
51  :rtype: str
52  """
53  return self._image_id_image_id
54 
55  @image_id.setter
56  def image_id(self, image_id):
57  """Sets the image_id of this ClusterIdNodeIdBody.
58 
59  Image unique identifier # noqa: E501
60 
61  :param image_id: The image_id of this ClusterIdNodeIdBody. # noqa: E501
62  :type: str
63  """
64  if image_id is None:
65  raise ValueError("Invalid value for `image_id`, must not be `None`") # noqa: E501
66 
67  self._image_id_image_id = image_id
68 
69  def to_dict(self):
70  """Returns the model properties as a dict"""
71  result = {}
72 
73  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
74  value = getattr(self, attr)
75  if isinstance(value, list):
76  result[attr] = list(map(
77  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
78  value
79  ))
80  elif hasattr(value, "to_dict"):
81  result[attr] = value.to_dict()
82  elif isinstance(value, dict):
83  result[attr] = dict(map(
84  lambda item: (item[0], item[1].to_dict())
85  if hasattr(item[1], "to_dict") else item,
86  value.items()
87  ))
88  else:
89  result[attr] = value
90  if issubclass(ClusterIdNodeIdBody, dict):
91  for key, value in self.items():
92  result[key] = value
93 
94  return result
95 
96  def to_str(self):
97  """Returns the string representation of the model"""
98  return pprint.pformat(self.to_dictto_dict())
99 
100  def __repr__(self):
101  """For `print` and `pprint`"""
102  return self.to_strto_str()
103 
104  def __eq__(self, other):
105  """Returns true if both objects are equal"""
106  if not isinstance(other, ClusterIdNodeIdBody):
107  return False
108 
109  return self.__dict____dict__ == other.__dict__
110 
111  def __ne__(self, other):
112  """Returns true if both objects are not equal"""
113  return not self == other