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.
32 'instances':
'list[Instance]',
38 'cluster_id':
'cluster_id',
39 'instances':
'instances',
44 def __init__(self, cluster_id=None, instances=None, nodes=None, user_id=None):
45 """Cluster - a model defined in Swagger"""
51 if cluster_id
is not None:
53 if instances
is not None:
57 if user_id
is not None:
62 """Gets the cluster_id of this Cluster. # noqa: E501
64 ID of cluster # noqa: E501
66 :return: The cluster_id of this Cluster. # noqa: E501
73 """Sets the cluster_id of this Cluster.
75 ID of cluster # noqa: E501
77 :param cluster_id: The cluster_id of this Cluster. # noqa: E501
85 """Gets the instances of this Cluster. # noqa: E501
88 :return: The instances of this Cluster. # noqa: E501
89 :rtype: list[Instance]
95 """Sets the instances of this Cluster.
98 :param instances: The instances of this Cluster. # noqa: E501
106 """Gets the nodes of this Cluster. # noqa: E501
109 :return: The nodes of this Cluster. # noqa: E501
116 """Sets the nodes of this Cluster.
119 :param nodes: The nodes of this Cluster. # noqa: E501
127 """Gets the user_id of this Cluster. # noqa: E501
131 :return: The user_id of this Cluster. # noqa: E501
138 """Sets the user_id of this Cluster.
142 :param user_id: The user_id of this Cluster. # noqa: E501
149 """Returns the model properties as a dict"""
152 for attr, _
in six.iteritems(self.
swagger_typesswagger_types):
153 value = getattr(self, attr)
154 if isinstance(value, list):
155 result[attr] = list(map(
156 lambda x: x.to_dict()
if hasattr(x,
"to_dict")
else x,
159 elif hasattr(value,
"to_dict"):
160 result[attr] = value.to_dict()
161 elif isinstance(value, dict):
162 result[attr] = dict(map(
163 lambda item: (item[0], item[1].
to_dict())
164 if hasattr(item[1],
"to_dict")
else item,
169 if issubclass(Cluster, dict):
170 for key, value
in self.items():
176 """Returns the string representation of the model"""
177 return pprint.pformat(self.
to_dictto_dict())
180 """For `print` and `pprint`"""
181 return self.
to_strto_str()
184 """Returns true if both objects are equal"""
185 if not isinstance(other, Cluster):
188 return self.
__dict____dict__ == other.__dict__
191 """Returns true if both objects are not equal"""
192 return not self == other
def cluster_id(self, cluster_id)
def user_id(self, user_id)
def __init__(self, cluster_id=None, instances=None, nodes=None, user_id=None)
def instances(self, instances)