cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
administration_platform_logic_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 
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_details': 'str',
32  'dcp_file': 'str',
33  'bit_file': 'str',
34  'mcs_file': 'str',
35  'sig_file': 'str',
36  'pr_verify_rpt': 'str'
37  }
38 
39  attribute_map = {
40  'image_details': 'image_details',
41  'dcp_file': 'dcp_file',
42  'bit_file': 'bit_file',
43  'mcs_file': 'mcs_file',
44  'sig_file': 'sig_file',
45  'pr_verify_rpt': 'pr_verify_rpt'
46  }
47 
48  def __init__(self, image_details=None, dcp_file=None, bit_file=None, mcs_file=None, sig_file=None, pr_verify_rpt=None): # noqa: E501
49  """AdministrationPlatformLogicBody - a model defined in Swagger""" # noqa: E501
50  self._image_details_image_details = None
51  self._dcp_file_dcp_file = None
52  self._bit_file_bit_file = None
53  self._mcs_file_mcs_file = None
54  self._sig_file_sig_file = None
55  self._pr_verify_rpt_pr_verify_rpt = None
56  self.discriminatordiscriminator = None
57  self.image_detailsimage_detailsimage_detailsimage_details = image_details
58  self.dcp_filedcp_filedcp_filedcp_file = dcp_file
59  self.bit_filebit_filebit_filebit_file = bit_file
60  self.mcs_filemcs_filemcs_filemcs_file = mcs_file
61  self.sig_filesig_filesig_filesig_file = sig_file
62  self.pr_verify_rptpr_verify_rptpr_verify_rptpr_verify_rpt = pr_verify_rpt
63 
64  @property
65  def image_details(self):
66  """Gets the image_details of this AdministrationPlatformLogicBody. # noqa: E501
67 
68  Must be a valid `image_detail` dict-representation. Example: ```json { \"fpga_board\": \"FMKU60\", \"shell_type\": \"Themisto\", \"version\": \"0.9.42\", \"needs_mantle\": false, \"has_fmc_tcp\": true, \"comment\" : \"Some valuable information for humans (optional)\" } ``` # noqa: E501
69 
70  :return: The image_details of this AdministrationPlatformLogicBody. # noqa: E501
71  :rtype: str
72  """
73  return self._image_details_image_details
74 
75  @image_details.setter
76  def image_details(self, image_details):
77  """Sets the image_details of this AdministrationPlatformLogicBody.
78 
79  Must be a valid `image_detail` dict-representation. Example: ```json { \"fpga_board\": \"FMKU60\", \"shell_type\": \"Themisto\", \"version\": \"0.9.42\", \"needs_mantle\": false, \"has_fmc_tcp\": true, \"comment\" : \"Some valuable information for humans (optional)\" } ``` # noqa: E501
80 
81  :param image_details: The image_details of this AdministrationPlatformLogicBody. # noqa: E501
82  :type: str
83  """
84  if image_details is None:
85  raise ValueError("Invalid value for `image_details`, must not be `None`") # noqa: E501
86 
87  self._image_details_image_details = image_details
88 
89  @property
90  def dcp_file(self):
91  """Gets the dcp_file of this AdministrationPlatformLogicBody. # noqa: E501
92 
93  the STATIC dcp checkpoint to be used by users # noqa: E501
94 
95  :return: The dcp_file of this AdministrationPlatformLogicBody. # noqa: E501
96  :rtype: str
97  """
98  return self._dcp_file_dcp_file
99 
100  @dcp_file.setter
101  def dcp_file(self, dcp_file):
102  """Sets the dcp_file of this AdministrationPlatformLogicBody.
103 
104  the STATIC dcp checkpoint to be used by users # noqa: E501
105 
106  :param dcp_file: The dcp_file of this AdministrationPlatformLogicBody. # noqa: E501
107  :type: str
108  """
109  if dcp_file is None:
110  raise ValueError("Invalid value for `dcp_file`, must not be `None`") # noqa: E501
111 
112  self._dcp_file_dcp_file = dcp_file
113 
114  @property
115  def bit_file(self):
116  """Gets the bit_file of this AdministrationPlatformLogicBody. # noqa: E501
117 
118  The corresponding static bitfile, to write to the FPGA # noqa: E501
119 
120  :return: The bit_file of this AdministrationPlatformLogicBody. # noqa: E501
121  :rtype: str
122  """
123  return self._bit_file_bit_file
124 
125  @bit_file.setter
126  def bit_file(self, bit_file):
127  """Sets the bit_file of this AdministrationPlatformLogicBody.
128 
129  The corresponding static bitfile, to write to the FPGA # noqa: E501
130 
131  :param bit_file: The bit_file of this AdministrationPlatformLogicBody. # noqa: E501
132  :type: str
133  """
134  if bit_file is None:
135  raise ValueError("Invalid value for `bit_file`, must not be `None`") # noqa: E501
136 
137  self._bit_file_bit_file = bit_file
138 
139  @property
140  def mcs_file(self):
141  """Gets the mcs_file of this AdministrationPlatformLogicBody. # noqa: E501
142 
143  The corresponding mcs file, to write to the board flash # noqa: E501
144 
145  :return: The mcs_file of this AdministrationPlatformLogicBody. # noqa: E501
146  :rtype: str
147  """
148  return self._mcs_file_mcs_file
149 
150  @mcs_file.setter
151  def mcs_file(self, mcs_file):
152  """Sets the mcs_file of this AdministrationPlatformLogicBody.
153 
154  The corresponding mcs file, to write to the board flash # noqa: E501
155 
156  :param mcs_file: The mcs_file of this AdministrationPlatformLogicBody. # noqa: E501
157  :type: str
158  """
159  if mcs_file is None:
160  raise ValueError("Invalid value for `mcs_file`, must not be `None`") # noqa: E501
161 
162  self._mcs_file_mcs_file = mcs_file
163 
164  @property
165  def sig_file(self):
166  """Gets the sig_file of this AdministrationPlatformLogicBody. # noqa: E501
167 
168  The corresponding .sig file of the binfile # noqa: E501
169 
170  :return: The sig_file of this AdministrationPlatformLogicBody. # noqa: E501
171  :rtype: str
172  """
173  return self._sig_file_sig_file
174 
175  @sig_file.setter
176  def sig_file(self, sig_file):
177  """Sets the sig_file of this AdministrationPlatformLogicBody.
178 
179  The corresponding .sig file of the binfile # noqa: E501
180 
181  :param sig_file: The sig_file of this AdministrationPlatformLogicBody. # noqa: E501
182  :type: str
183  """
184  if sig_file is None:
185  raise ValueError("Invalid value for `sig_file`, must not be `None`") # noqa: E501
186 
187  self._sig_file_sig_file = sig_file
188 
189  @property
190  def pr_verify_rpt(self):
191  """Gets the pr_verify_rpt of this AdministrationPlatformLogicBody. # noqa: E501
192 
193  Result of the `pr_verify` command # noqa: E501
194 
195  :return: The pr_verify_rpt of this AdministrationPlatformLogicBody. # noqa: E501
196  :rtype: str
197  """
198  return self._pr_verify_rpt_pr_verify_rpt
199 
200  @pr_verify_rpt.setter
201  def pr_verify_rpt(self, pr_verify_rpt):
202  """Sets the pr_verify_rpt of this AdministrationPlatformLogicBody.
203 
204  Result of the `pr_verify` command # noqa: E501
205 
206  :param pr_verify_rpt: The pr_verify_rpt of this AdministrationPlatformLogicBody. # noqa: E501
207  :type: str
208  """
209  if pr_verify_rpt is None:
210  raise ValueError("Invalid value for `pr_verify_rpt`, must not be `None`") # noqa: E501
211 
212  self._pr_verify_rpt_pr_verify_rpt = pr_verify_rpt
213 
214  def to_dict(self):
215  """Returns the model properties as a dict"""
216  result = {}
217 
218  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
219  value = getattr(self, attr)
220  if isinstance(value, list):
221  result[attr] = list(map(
222  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
223  value
224  ))
225  elif hasattr(value, "to_dict"):
226  result[attr] = value.to_dict()
227  elif isinstance(value, dict):
228  result[attr] = dict(map(
229  lambda item: (item[0], item[1].to_dict())
230  if hasattr(item[1], "to_dict") else item,
231  value.items()
232  ))
233  else:
234  result[attr] = value
235  if issubclass(AdministrationPlatformLogicBody, dict):
236  for key, value in self.items():
237  result[key] = value
238 
239  return result
240 
241  def to_str(self):
242  """Returns the string representation of the model"""
243  return pprint.pformat(self.to_dictto_dict())
244 
245  def __repr__(self):
246  """For `print` and `pprint`"""
247  return self.to_strto_str()
248 
249  def __eq__(self, other):
250  """Returns true if both objects are equal"""
251  if not isinstance(other, AdministrationPlatformLogicBody):
252  return False
253 
254  return self.__dict____dict__ == other.__dict__
255 
256  def __ne__(self, other):
257  """Returns true if both objects are not equal"""
258  return not self == other
def __init__(self, image_details=None, dcp_file=None, bit_file=None, mcs_file=None, sig_file=None, pr_verify_rpt=None)