cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
images_app_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 
18 class ImagesAppLogicBody(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_details': 'str',
32  'image_file': 'str',
33  'sig_file': 'str',
34  'pr_verify_rpt': 'str'
35  }
36 
37  attribute_map = {
38  'image_details': 'image_details',
39  'image_file': 'image_file',
40  'sig_file': 'sig_file',
41  'pr_verify_rpt': 'pr_verify_rpt'
42  }
43 
44  def __init__(self, image_details=None, image_file=None, sig_file=None, pr_verify_rpt=None): # noqa: E501
45  """ImagesAppLogicBody - a model defined in Swagger""" # noqa: E501
46  self._image_details_image_details = None
47  self._image_file_image_file = None
48  self._sig_file_sig_file = None
49  self._pr_verify_rpt_pr_verify_rpt = None
50  self.discriminatordiscriminator = None
51  self.image_detailsimage_detailsimage_detailsimage_details = image_details
52  self.image_fileimage_fileimage_fileimage_file = image_file
53  self.sig_filesig_filesig_filesig_file = sig_file
54  self.pr_verify_rptpr_verify_rptpr_verify_rptpr_verify_rpt = pr_verify_rpt
55 
56  @property
57  def image_details(self):
58  """Gets the image_details of this ImagesAppLogicBody. # noqa: E501
59 
60  Must be a valid `image_detail` dict-representation. Example: ```json { \"cl_id\": \"42\", \"fpga_board\": \"FMKU60\", \"shell_type\": \"Themisto\", \"comment\" : \"Some valuable information for humans (optional)\" } ``` # noqa: E501
61 
62  :return: The image_details of this ImagesAppLogicBody. # noqa: E501
63  :rtype: str
64  """
65  return self._image_details_image_details
66 
67  @image_details.setter
68  def image_details(self, image_details):
69  """Sets the image_details of this ImagesAppLogicBody.
70 
71  Must be a valid `image_detail` dict-representation. Example: ```json { \"cl_id\": \"42\", \"fpga_board\": \"FMKU60\", \"shell_type\": \"Themisto\", \"comment\" : \"Some valuable information for humans (optional)\" } ``` # noqa: E501
72 
73  :param image_details: The image_details of this ImagesAppLogicBody. # noqa: E501
74  :type: str
75  """
76  if image_details is None:
77  raise ValueError("Invalid value for `image_details`, must not be `None`") # noqa: E501
78 
79  self._image_details_image_details = image_details
80 
81  @property
82  def image_file(self):
83  """Gets the image_file of this ImagesAppLogicBody. # noqa: E501
84 
85  FPGA binfile to be programmed # noqa: E501
86 
87  :return: The image_file of this ImagesAppLogicBody. # noqa: E501
88  :rtype: str
89  """
90  return self._image_file_image_file
91 
92  @image_file.setter
93  def image_file(self, image_file):
94  """Sets the image_file of this ImagesAppLogicBody.
95 
96  FPGA binfile to be programmed # noqa: E501
97 
98  :param image_file: The image_file of this ImagesAppLogicBody. # noqa: E501
99  :type: str
100  """
101  if image_file is None:
102  raise ValueError("Invalid value for `image_file`, must not be `None`") # noqa: E501
103 
104  self._image_file_image_file = image_file
105 
106  @property
107  def sig_file(self):
108  """Gets the sig_file of this ImagesAppLogicBody. # noqa: E501
109 
110  The corresponding .sig file of the binfile # noqa: E501
111 
112  :return: The sig_file of this ImagesAppLogicBody. # noqa: E501
113  :rtype: str
114  """
115  return self._sig_file_sig_file
116 
117  @sig_file.setter
118  def sig_file(self, sig_file):
119  """Sets the sig_file of this ImagesAppLogicBody.
120 
121  The corresponding .sig file of the binfile # noqa: E501
122 
123  :param sig_file: The sig_file of this ImagesAppLogicBody. # noqa: E501
124  :type: str
125  """
126  if sig_file is None:
127  raise ValueError("Invalid value for `sig_file`, must not be `None`") # noqa: E501
128 
129  self._sig_file_sig_file = sig_file
130 
131  @property
132  def pr_verify_rpt(self):
133  """Gets the pr_verify_rpt of this ImagesAppLogicBody. # noqa: E501
134 
135  Result of the `pr_verify` command # noqa: E501
136 
137  :return: The pr_verify_rpt of this ImagesAppLogicBody. # noqa: E501
138  :rtype: str
139  """
140  return self._pr_verify_rpt_pr_verify_rpt
141 
142  @pr_verify_rpt.setter
143  def pr_verify_rpt(self, pr_verify_rpt):
144  """Sets the pr_verify_rpt of this ImagesAppLogicBody.
145 
146  Result of the `pr_verify` command # noqa: E501
147 
148  :param pr_verify_rpt: The pr_verify_rpt of this ImagesAppLogicBody. # noqa: E501
149  :type: str
150  """
151  if pr_verify_rpt is None:
152  raise ValueError("Invalid value for `pr_verify_rpt`, must not be `None`") # noqa: E501
153 
154  self._pr_verify_rpt_pr_verify_rpt = pr_verify_rpt
155 
156  def to_dict(self):
157  """Returns the model properties as a dict"""
158  result = {}
159 
160  for attr, _ in six.iteritems(self.swagger_typesswagger_types):
161  value = getattr(self, attr)
162  if isinstance(value, list):
163  result[attr] = list(map(
164  lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
165  value
166  ))
167  elif hasattr(value, "to_dict"):
168  result[attr] = value.to_dict()
169  elif isinstance(value, dict):
170  result[attr] = dict(map(
171  lambda item: (item[0], item[1].to_dict())
172  if hasattr(item[1], "to_dict") else item,
173  value.items()
174  ))
175  else:
176  result[attr] = value
177  if issubclass(ImagesAppLogicBody, dict):
178  for key, value in self.items():
179  result[key] = value
180 
181  return result
182 
183  def to_str(self):
184  """Returns the string representation of the model"""
185  return pprint.pformat(self.to_dictto_dict())
186 
187  def __repr__(self):
188  """For `print` and `pprint`"""
189  return self.to_strto_str()
190 
191  def __eq__(self, other):
192  """Returns true if both objects are equal"""
193  if not isinstance(other, ImagesAppLogicBody):
194  return False
195 
196  return self.__dict____dict__ == other.__dict__
197 
198  def __ne__(self, other):
199  """Returns true if both objects are not equal"""
200  return not self == other
def __init__(self, image_details=None, image_file=None, sig_file=None, pr_verify_rpt=None)