cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
inline_response2006.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 InlineResponse2006(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  'failure_cnt': 'int',
32  'failure_msg': 'str',
33  'status': 'str',
34  'success_cnt': 'int'
35  }
36 
37  attribute_map = {
38  'failure_cnt': 'failure_cnt',
39  'failure_msg': 'failure_msg',
40  'status': 'status',
41  'success_cnt': 'success_cnt'
42  }
43 
44  def __init__(self, failure_cnt=None, failure_msg=None, status=None, success_cnt=None): # noqa: E501
45  """InlineResponse2006 - a model defined in Swagger""" # noqa: E501
46  self._failure_cnt_failure_cnt = None
47  self._failure_msg_failure_msg = None
48  self._status_status = None
49  self._success_cnt_success_cnt = None
50  self.discriminatordiscriminator = None
51  if failure_cnt is not None:
52  self.failure_cntfailure_cntfailure_cntfailure_cnt = failure_cnt
53  if failure_msg is not None:
54  self.failure_msgfailure_msgfailure_msgfailure_msg = failure_msg
55  if status is not None:
56  self.statusstatusstatusstatus = status
57  if success_cnt is not None:
58  self.success_cntsuccess_cntsuccess_cntsuccess_cnt = success_cnt
59 
60  @property
61  def failure_cnt(self):
62  """Gets the failure_cnt of this InlineResponse2006. # noqa: E501
63 
64  Counter of failures on this resource # noqa: E501
65 
66  :return: The failure_cnt of this InlineResponse2006. # noqa: E501
67  :rtype: int
68  """
69  return self._failure_cnt_failure_cnt
70 
71  @failure_cnt.setter
72  def failure_cnt(self, failure_cnt):
73  """Sets the failure_cnt of this InlineResponse2006.
74 
75  Counter of failures on this resource # noqa: E501
76 
77  :param failure_cnt: The failure_cnt of this InlineResponse2006. # noqa: E501
78  :type: int
79  """
80 
81  self._failure_cnt_failure_cnt = failure_cnt
82 
83  @property
84  def failure_msg(self):
85  """Gets the failure_msg of this InlineResponse2006. # noqa: E501
86 
87  The last failure that occured on this resource # noqa: E501
88 
89  :return: The failure_msg of this InlineResponse2006. # noqa: E501
90  :rtype: str
91  """
92  return self._failure_msg_failure_msg
93 
94  @failure_msg.setter
95  def failure_msg(self, failure_msg):
96  """Sets the failure_msg of this InlineResponse2006.
97 
98  The last failure that occured on this resource # noqa: E501
99 
100  :param failure_msg: The failure_msg of this InlineResponse2006. # noqa: E501
101  :type: str
102  """
103 
104  self._failure_msg_failure_msg = failure_msg
105 
106  @property
107  def status(self):
108  """Gets the status of this InlineResponse2006. # noqa: E501
109 
110  The state of the resource # noqa: E501
111 
112  :return: The status of this InlineResponse2006. # noqa: E501
113  :rtype: str
114  """
115  return self._status_status
116 
117  @status.setter
118  def status(self, status):
119  """Sets the status of this InlineResponse2006.
120 
121  The state of the resource # noqa: E501
122 
123  :param status: The status of this InlineResponse2006. # noqa: E501
124  :type: str
125  """
126 
127  self._status_status = status
128 
129  @property
130  def success_cnt(self):
131  """Gets the success_cnt of this InlineResponse2006. # noqa: E501
132 
133  Counter of successfull deployments on this resource # noqa: E501
134 
135  :return: The success_cnt of this InlineResponse2006. # noqa: E501
136  :rtype: int
137  """
138  return self._success_cnt_success_cnt
139 
140  @success_cnt.setter
141  def success_cnt(self, success_cnt):
142  """Sets the success_cnt of this InlineResponse2006.
143 
144  Counter of successfull deployments on this resource # noqa: E501
145 
146  :param success_cnt: The success_cnt of this InlineResponse2006. # noqa: E501
147  :type: int
148  """
149 
150  self._success_cnt_success_cnt = success_cnt
151 
152  def to_dict(self):
153  """Returns the model properties as a dict"""
154  result = {}
155 
156  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
157  value = getattr(self, attr)
158  if isinstance(value, list):
159  result[attr] = list(map(
160  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
161  value
162  ))
163  elif hasattr(value, "to_dict"):
164  result[attr] = value.to_dict()
165  elif isinstance(value, dict):
166  result[attr] = dict(map(
167  lambda item: (item[0], item[1].to_dict())
168  if hasattr(item[1], "to_dict") else item,
169  value.items()
170  ))
171  else:
172  result[attr] = value
173  if issubclass(InlineResponse2006, dict):
174  for key, value in self.items():
175  result[key] = value
176 
177  return result
178 
179  def to_str(self):
180  """Returns the string representation of the model"""
181  return pprint.pformat(self.to_dictto_dict())
182 
183  def __repr__(self):
184  """For `print` and `pprint`"""
185  return self.to_strto_str()
186 
187  def __eq__(self, other):
188  """Returns true if both objects are equal"""
189  if not isinstance(other, InlineResponse2006):
190  return False
191 
192  return self.__dict____dict__ == other.__dict__
193 
194  def __ne__(self, other):
195  """Returns true if both objects are not equal"""
196  return not self == other
def __init__(self, failure_cnt=None, failure_msg=None, status=None, success_cnt=None)