cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
images_api.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 from __future__ import absolute_import
14 
15 import re # noqa: F401
16 
17 # python 2 and python 3 compatibility library
18 import six
19 
20 from swagger_client.api_client import ApiClient
21 
22 
23 class ImagesApi(object):
24  """NOTE: This class is auto generated by the swagger code generator program.
25 
26  Do not edit the class manually.
27  Ref: https://github.com/swagger-api/swagger-codegen
28  """
29 
30  def __init__(self, api_client=None):
31  if api_client is None:
32  api_client = ApiClient()
33  self.api_clientapi_client = api_client
34 
35  def cf_manager_rest_api_delete_image(self, username, password, image_id, **kwargs): # noqa: E501
36  """Delete an image # noqa: E501
37 
38  This method makes a synchronous HTTP request by default. To make an
39  asynchronous HTTP request, please pass async_req=True
40  >>> thread = api.cf_manager_rest_api_delete_image(username, password, image_id, async_req=True)
41  >>> result = thread.get()
42 
43  :param async_req bool
44  :param str username: OpenStack username (required)
45  :param str password: OpenStack password (required)
46  :param str image_id: Image unique identifier (required)
47  :return: None
48  If the method is called asynchronously,
49  returns the request thread.
50  """
51  kwargs['_return_http_data_only'] = True
52  if kwargs.get('async_req'):
53  return self.cf_manager_rest_api_delete_image_with_http_infocf_manager_rest_api_delete_image_with_http_info(username, password, image_id, **kwargs) # noqa: E501
54  else:
55  (data) = self.cf_manager_rest_api_delete_image_with_http_infocf_manager_rest_api_delete_image_with_http_info(username, password, image_id, **kwargs) # noqa: E501
56  return data
57 
58  def cf_manager_rest_api_delete_image_with_http_info(self, username, password, image_id, **kwargs): # noqa: E501
59  """Delete an image # noqa: E501
60 
61  This method makes a synchronous HTTP request by default. To make an
62  asynchronous HTTP request, please pass async_req=True
63  >>> thread = api.cf_manager_rest_api_delete_image_with_http_info(username, password, image_id, async_req=True)
64  >>> result = thread.get()
65 
66  :param async_req bool
67  :param str username: OpenStack username (required)
68  :param str password: OpenStack password (required)
69  :param str image_id: Image unique identifier (required)
70  :return: None
71  If the method is called asynchronously,
72  returns the request thread.
73  """
74 
75  all_params = ['username', 'password', 'image_id'] # noqa: E501
76  all_params.append('async_req')
77  all_params.append('_return_http_data_only')
78  all_params.append('_preload_content')
79  all_params.append('_request_timeout')
80 
81  params = locals()
82  for key, val in six.iteritems(params['kwargs']):
83  if key not in all_params:
84  raise TypeError(
85  "Got an unexpected keyword argument '%s'"
86  " to method cf_manager_rest_api_delete_image" % key
87  )
88  params[key] = val
89  del params['kwargs']
90  # verify the required parameter 'username' is set
91  if ('username' not in params or
92  params['username'] is None):
93  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_delete_image`") # noqa: E501
94  # verify the required parameter 'password' is set
95  if ('password' not in params or
96  params['password'] is None):
97  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_delete_image`") # noqa: E501
98  # verify the required parameter 'image_id' is set
99  if ('image_id' not in params or
100  params['image_id'] is None):
101  raise ValueError("Missing the required parameter `image_id` when calling `cf_manager_rest_api_delete_image`") # noqa: E501
102 
103  collection_formats = {}
104 
105  path_params = {}
106  if 'image_id' in params:
107  path_params['image_id'] = params['image_id'] # noqa: E501
108 
109  query_params = []
110  if 'username' in params:
111  query_params.append(('username', params['username'])) # noqa: E501
112  if 'password' in params:
113  query_params.append(('password', params['password'])) # noqa: E501
114 
115  header_params = {}
116 
117  form_params = []
118  local_var_files = {}
119 
120  body_params = None
121  # Authentication setting
122  auth_settings = [] # noqa: E501
123 
124  return self.api_clientapi_client.call_api(
125  '/images/{image_id}', 'DELETE',
126  path_params,
127  query_params,
128  header_params,
129  body=body_params,
130  post_params=form_params,
131  files=local_var_files,
132  response_type=None, # noqa: E501
133  auth_settings=auth_settings,
134  async_req=params.get('async_req'),
135  _return_http_data_only=params.get('_return_http_data_only'),
136  _preload_content=params.get('_preload_content', True),
137  _request_timeout=params.get('_request_timeout'),
138  collection_formats=collection_formats)
139 
140  def cf_manager_rest_api_get_image_single(self, username, password, image_id, **kwargs): # noqa: E501
141  """Get an image # noqa: E501
142 
143  This method makes a synchronous HTTP request by default. To make an
144  asynchronous HTTP request, please pass async_req=True
145  >>> thread = api.cf_manager_rest_api_get_image_single(username, password, image_id, async_req=True)
146  >>> result = thread.get()
147 
148  :param async_req bool
149  :param str username: OpenStack username (required)
150  :param str password: OpenStack password (required)
151  :param str image_id: Image unique identifier (required)
152  :return: Image
153  If the method is called asynchronously,
154  returns the request thread.
155  """
156  kwargs['_return_http_data_only'] = True
157  if kwargs.get('async_req'):
158  return self.cf_manager_rest_api_get_image_single_with_http_infocf_manager_rest_api_get_image_single_with_http_info(username, password, image_id, **kwargs) # noqa: E501
159  else:
160  (data) = self.cf_manager_rest_api_get_image_single_with_http_infocf_manager_rest_api_get_image_single_with_http_info(username, password, image_id, **kwargs) # noqa: E501
161  return data
162 
163  def cf_manager_rest_api_get_image_single_with_http_info(self, username, password, image_id, **kwargs): # noqa: E501
164  """Get an image # noqa: E501
165 
166  This method makes a synchronous HTTP request by default. To make an
167  asynchronous HTTP request, please pass async_req=True
168  >>> thread = api.cf_manager_rest_api_get_image_single_with_http_info(username, password, image_id, async_req=True)
169  >>> result = thread.get()
170 
171  :param async_req bool
172  :param str username: OpenStack username (required)
173  :param str password: OpenStack password (required)
174  :param str image_id: Image unique identifier (required)
175  :return: Image
176  If the method is called asynchronously,
177  returns the request thread.
178  """
179 
180  all_params = ['username', 'password', 'image_id'] # noqa: E501
181  all_params.append('async_req')
182  all_params.append('_return_http_data_only')
183  all_params.append('_preload_content')
184  all_params.append('_request_timeout')
185 
186  params = locals()
187  for key, val in six.iteritems(params['kwargs']):
188  if key not in all_params:
189  raise TypeError(
190  "Got an unexpected keyword argument '%s'"
191  " to method cf_manager_rest_api_get_image_single" % key
192  )
193  params[key] = val
194  del params['kwargs']
195  # verify the required parameter 'username' is set
196  if ('username' not in params or
197  params['username'] is None):
198  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_image_single`") # noqa: E501
199  # verify the required parameter 'password' is set
200  if ('password' not in params or
201  params['password'] is None):
202  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_image_single`") # noqa: E501
203  # verify the required parameter 'image_id' is set
204  if ('image_id' not in params or
205  params['image_id'] is None):
206  raise ValueError("Missing the required parameter `image_id` when calling `cf_manager_rest_api_get_image_single`") # noqa: E501
207 
208  collection_formats = {}
209 
210  path_params = {}
211  if 'image_id' in params:
212  path_params['image_id'] = params['image_id'] # noqa: E501
213 
214  query_params = []
215  if 'username' in params:
216  query_params.append(('username', params['username'])) # noqa: E501
217  if 'password' in params:
218  query_params.append(('password', params['password'])) # noqa: E501
219 
220  header_params = {}
221 
222  form_params = []
223  local_var_files = {}
224 
225  body_params = None
226  # HTTP header `Accept`
227  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
228  ['application/json']) # noqa: E501
229 
230  # Authentication setting
231  auth_settings = [] # noqa: E501
232 
233  return self.api_clientapi_client.call_api(
234  '/images/{image_id}', 'GET',
235  path_params,
236  query_params,
237  header_params,
238  body=body_params,
239  post_params=form_params,
240  files=local_var_files,
241  response_type='Image', # noqa: E501
242  auth_settings=auth_settings,
243  async_req=params.get('async_req'),
244  _return_http_data_only=params.get('_return_http_data_only'),
245  _preload_content=params.get('_preload_content', True),
246  _request_timeout=params.get('_request_timeout'),
247  collection_formats=collection_formats)
248 
249  def cf_manager_rest_api_get_images(self, username, password, **kwargs): # noqa: E501
250  """Get all images of a user # noqa: E501
251 
252  This method makes a synchronous HTTP request by default. To make an
253  asynchronous HTTP request, please pass async_req=True
254  >>> thread = api.cf_manager_rest_api_get_images(username, password, async_req=True)
255  >>> result = thread.get()
256 
257  :param async_req bool
258  :param str username: OpenStack username (required)
259  :param str password: OpenStack password (required)
260  :param int limit:
261  :return: list[Image]
262  If the method is called asynchronously,
263  returns the request thread.
264  """
265  kwargs['_return_http_data_only'] = True
266  if kwargs.get('async_req'):
267  return self.cf_manager_rest_api_get_images_with_http_infocf_manager_rest_api_get_images_with_http_info(username, password, **kwargs) # noqa: E501
268  else:
269  (data) = self.cf_manager_rest_api_get_images_with_http_infocf_manager_rest_api_get_images_with_http_info(username, password, **kwargs) # noqa: E501
270  return data
271 
272  def cf_manager_rest_api_get_images_with_http_info(self, username, password, **kwargs): # noqa: E501
273  """Get all images of a user # noqa: E501
274 
275  This method makes a synchronous HTTP request by default. To make an
276  asynchronous HTTP request, please pass async_req=True
277  >>> thread = api.cf_manager_rest_api_get_images_with_http_info(username, password, async_req=True)
278  >>> result = thread.get()
279 
280  :param async_req bool
281  :param str username: OpenStack username (required)
282  :param str password: OpenStack password (required)
283  :param int limit:
284  :return: list[Image]
285  If the method is called asynchronously,
286  returns the request thread.
287  """
288 
289  all_params = ['username', 'password', 'limit'] # noqa: E501
290  all_params.append('async_req')
291  all_params.append('_return_http_data_only')
292  all_params.append('_preload_content')
293  all_params.append('_request_timeout')
294 
295  params = locals()
296  for key, val in six.iteritems(params['kwargs']):
297  if key not in all_params:
298  raise TypeError(
299  "Got an unexpected keyword argument '%s'"
300  " to method cf_manager_rest_api_get_images" % key
301  )
302  params[key] = val
303  del params['kwargs']
304  # verify the required parameter 'username' is set
305  if ('username' not in params or
306  params['username'] is None):
307  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_images`") # noqa: E501
308  # verify the required parameter 'password' is set
309  if ('password' not in params or
310  params['password'] is None):
311  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_images`") # noqa: E501
312 
313  collection_formats = {}
314 
315  path_params = {}
316 
317  query_params = []
318  if 'username' in params:
319  query_params.append(('username', params['username'])) # noqa: E501
320  if 'password' in params:
321  query_params.append(('password', params['password'])) # noqa: E501
322  if 'limit' in params:
323  query_params.append(('limit', params['limit'])) # noqa: E501
324 
325  header_params = {}
326 
327  form_params = []
328  local_var_files = {}
329 
330  body_params = None
331  # HTTP header `Accept`
332  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
333  ['application/json']) # noqa: E501
334 
335  # Authentication setting
336  auth_settings = [] # noqa: E501
337 
338  return self.api_clientapi_client.call_api(
339  '/images', 'GET',
340  path_params,
341  query_params,
342  header_params,
343  body=body_params,
344  post_params=form_params,
345  files=local_var_files,
346  response_type='list[Image]', # noqa: E501
347  auth_settings=auth_settings,
348  async_req=params.get('async_req'),
349  _return_http_data_only=params.get('_return_http_data_only'),
350  _preload_content=params.get('_preload_content', True),
351  _request_timeout=params.get('_request_timeout'),
352  collection_formats=collection_formats)
353 
354  def cf_manager_rest_api_post_app_logic(self, image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
355  """Upload an image of type `app logic` # noqa: E501
356 
357  This uploads an new image (aka FPGA **bin**file). **This method is for the app logic in case of partial reconfiguration building on platform logics**. The `id` of the uploaded Image can then be used to create *Instances* or *Clusters*. It **must** contain the corresponding .sig file that was produced by the build. The resulting image can be viewed and deleted like other images. # noqa: E501
358  This method makes a synchronous HTTP request by default. To make an
359  asynchronous HTTP request, please pass async_req=True
360  >>> thread = api.cf_manager_rest_api_post_app_logic(image_details, image_file, sig_file, pr_verify_rpt, username, password, async_req=True)
361  >>> result = thread.get()
362 
363  :param async_req bool
364  :param str image_details: (required)
365  :param str image_file: (required)
366  :param str sig_file: (required)
367  :param str pr_verify_rpt: (required)
368  :param str username: OpenStack username (required)
369  :param str password: OpenStack password (required)
370  :return: Image
371  If the method is called asynchronously,
372  returns the request thread.
373  """
374  kwargs['_return_http_data_only'] = True
375  if kwargs.get('async_req'):
376  return self.cf_manager_rest_api_post_app_logic_with_http_infocf_manager_rest_api_post_app_logic_with_http_info(image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
377  else:
378  (data) = self.cf_manager_rest_api_post_app_logic_with_http_infocf_manager_rest_api_post_app_logic_with_http_info(image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
379  return data
380 
381  def cf_manager_rest_api_post_app_logic_with_http_info(self, image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
382  """Upload an image of type `app logic` # noqa: E501
383 
384  This uploads an new image (aka FPGA **bin**file). **This method is for the app logic in case of partial reconfiguration building on platform logics**. The `id` of the uploaded Image can then be used to create *Instances* or *Clusters*. It **must** contain the corresponding .sig file that was produced by the build. The resulting image can be viewed and deleted like other images. # noqa: E501
385  This method makes a synchronous HTTP request by default. To make an
386  asynchronous HTTP request, please pass async_req=True
387  >>> thread = api.cf_manager_rest_api_post_app_logic_with_http_info(image_details, image_file, sig_file, pr_verify_rpt, username, password, async_req=True)
388  >>> result = thread.get()
389 
390  :param async_req bool
391  :param str image_details: (required)
392  :param str image_file: (required)
393  :param str sig_file: (required)
394  :param str pr_verify_rpt: (required)
395  :param str username: OpenStack username (required)
396  :param str password: OpenStack password (required)
397  :return: Image
398  If the method is called asynchronously,
399  returns the request thread.
400  """
401 
402  all_params = ['image_details', 'image_file', 'sig_file', 'pr_verify_rpt', 'username', 'password'] # noqa: E501
403  all_params.append('async_req')
404  all_params.append('_return_http_data_only')
405  all_params.append('_preload_content')
406  all_params.append('_request_timeout')
407 
408  params = locals()
409  for key, val in six.iteritems(params['kwargs']):
410  if key not in all_params:
411  raise TypeError(
412  "Got an unexpected keyword argument '%s'"
413  " to method cf_manager_rest_api_post_app_logic" % key
414  )
415  params[key] = val
416  del params['kwargs']
417  # verify the required parameter 'image_details' is set
418  if ('image_details' not in params or
419  params['image_details'] is None):
420  raise ValueError("Missing the required parameter `image_details` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
421  # verify the required parameter 'image_file' is set
422  if ('image_file' not in params or
423  params['image_file'] is None):
424  raise ValueError("Missing the required parameter `image_file` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
425  # verify the required parameter 'sig_file' is set
426  if ('sig_file' not in params or
427  params['sig_file'] is None):
428  raise ValueError("Missing the required parameter `sig_file` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
429  # verify the required parameter 'pr_verify_rpt' is set
430  if ('pr_verify_rpt' not in params or
431  params['pr_verify_rpt'] is None):
432  raise ValueError("Missing the required parameter `pr_verify_rpt` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
433  # verify the required parameter 'username' is set
434  if ('username' not in params or
435  params['username'] is None):
436  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
437  # verify the required parameter 'password' is set
438  if ('password' not in params or
439  params['password'] is None):
440  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_app_logic`") # noqa: E501
441 
442  collection_formats = {}
443 
444  path_params = {}
445 
446  query_params = []
447  if 'username' in params:
448  query_params.append(('username', params['username'])) # noqa: E501
449  if 'password' in params:
450  query_params.append(('password', params['password'])) # noqa: E501
451 
452  header_params = {}
453 
454  form_params = []
455  local_var_files = {}
456  if 'image_details' in params:
457  form_params.append(('image_details', params['image_details'])) # noqa: E501
458  if 'image_file' in params:
459  local_var_files['image_file'] = params['image_file'] # noqa: E501
460  if 'sig_file' in params:
461  local_var_files['sig_file'] = params['sig_file'] # noqa: E501
462  if 'pr_verify_rpt' in params:
463  local_var_files['pr_verify_rpt'] = params['pr_verify_rpt'] # noqa: E501
464 
465  body_params = None
466  # HTTP header `Accept`
467  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
468  ['application/json']) # noqa: E501
469 
470  # HTTP header `Content-Type`
471  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
472  ['multipart/form-data']) # noqa: E501
473 
474  # Authentication setting
475  auth_settings = [] # noqa: E501
476 
477  return self.api_clientapi_client.call_api(
478  '/images/app_logic', 'POST',
479  path_params,
480  query_params,
481  header_params,
482  body=body_params,
483  post_params=form_params,
484  files=local_var_files,
485  response_type='Image', # noqa: E501
486  auth_settings=auth_settings,
487  async_req=params.get('async_req'),
488  _return_http_data_only=params.get('_return_http_data_only'),
489  _preload_content=params.get('_preload_content', True),
490  _request_timeout=params.get('_request_timeout'),
491  collection_formats=collection_formats)
492 
493  def cf_manager_rest_api_post_images(self, image_details, image_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
494  """Upload an image # noqa: E501
495 
496  This uploads an new Image (aka FPGA bitfile). The `id` of the uploaded Image can then be used to create *Instances* or *Clusters*. If the bitfile **is not a partial bitfile**, the *image_detail* **property `breed` must be `\"SHELL\"`**. The *image_detail* property `shell_type` is only relevant for the partial reconfiguration flow, but cannot be empty (e.g. enter `\"NO_PR\"`). # noqa: E501
497  This method makes a synchronous HTTP request by default. To make an
498  asynchronous HTTP request, please pass async_req=True
499  >>> thread = api.cf_manager_rest_api_post_images(image_details, image_file, pr_verify_rpt, username, password, async_req=True)
500  >>> result = thread.get()
501 
502  :param async_req bool
503  :param str image_details: (required)
504  :param str image_file: (required)
505  :param str pr_verify_rpt: (required)
506  :param str username: OpenStack username (required)
507  :param str password: OpenStack password (required)
508  :return: Image
509  If the method is called asynchronously,
510  returns the request thread.
511  """
512  kwargs['_return_http_data_only'] = True
513  if kwargs.get('async_req'):
514  return self.cf_manager_rest_api_post_images_with_http_infocf_manager_rest_api_post_images_with_http_info(image_details, image_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
515  else:
516  (data) = self.cf_manager_rest_api_post_images_with_http_infocf_manager_rest_api_post_images_with_http_info(image_details, image_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
517  return data
518 
519  def cf_manager_rest_api_post_images_with_http_info(self, image_details, image_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
520  """Upload an image # noqa: E501
521 
522  This uploads an new Image (aka FPGA bitfile). The `id` of the uploaded Image can then be used to create *Instances* or *Clusters*. If the bitfile **is not a partial bitfile**, the *image_detail* **property `breed` must be `\"SHELL\"`**. The *image_detail* property `shell_type` is only relevant for the partial reconfiguration flow, but cannot be empty (e.g. enter `\"NO_PR\"`). # noqa: E501
523  This method makes a synchronous HTTP request by default. To make an
524  asynchronous HTTP request, please pass async_req=True
525  >>> thread = api.cf_manager_rest_api_post_images_with_http_info(image_details, image_file, pr_verify_rpt, username, password, async_req=True)
526  >>> result = thread.get()
527 
528  :param async_req bool
529  :param str image_details: (required)
530  :param str image_file: (required)
531  :param str pr_verify_rpt: (required)
532  :param str username: OpenStack username (required)
533  :param str password: OpenStack password (required)
534  :return: Image
535  If the method is called asynchronously,
536  returns the request thread.
537  """
538 
539  all_params = ['image_details', 'image_file', 'pr_verify_rpt', 'username', 'password'] # noqa: E501
540  all_params.append('async_req')
541  all_params.append('_return_http_data_only')
542  all_params.append('_preload_content')
543  all_params.append('_request_timeout')
544 
545  params = locals()
546  for key, val in six.iteritems(params['kwargs']):
547  if key not in all_params:
548  raise TypeError(
549  "Got an unexpected keyword argument '%s'"
550  " to method cf_manager_rest_api_post_images" % key
551  )
552  params[key] = val
553  del params['kwargs']
554  # verify the required parameter 'image_details' is set
555  if ('image_details' not in params or
556  params['image_details'] is None):
557  raise ValueError("Missing the required parameter `image_details` when calling `cf_manager_rest_api_post_images`") # noqa: E501
558  # verify the required parameter 'image_file' is set
559  if ('image_file' not in params or
560  params['image_file'] is None):
561  raise ValueError("Missing the required parameter `image_file` when calling `cf_manager_rest_api_post_images`") # noqa: E501
562  # verify the required parameter 'pr_verify_rpt' is set
563  if ('pr_verify_rpt' not in params or
564  params['pr_verify_rpt'] is None):
565  raise ValueError("Missing the required parameter `pr_verify_rpt` when calling `cf_manager_rest_api_post_images`") # noqa: E501
566  # verify the required parameter 'username' is set
567  if ('username' not in params or
568  params['username'] is None):
569  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_images`") # noqa: E501
570  # verify the required parameter 'password' is set
571  if ('password' not in params or
572  params['password'] is None):
573  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_images`") # noqa: E501
574 
575  collection_formats = {}
576 
577  path_params = {}
578 
579  query_params = []
580  if 'username' in params:
581  query_params.append(('username', params['username'])) # noqa: E501
582  if 'password' in params:
583  query_params.append(('password', params['password'])) # noqa: E501
584 
585  header_params = {}
586 
587  form_params = []
588  local_var_files = {}
589  if 'image_details' in params:
590  form_params.append(('image_details', params['image_details'])) # noqa: E501
591  if 'image_file' in params:
592  local_var_files['image_file'] = params['image_file'] # noqa: E501
593  if 'pr_verify_rpt' in params:
594  local_var_files['pr_verify_rpt'] = params['pr_verify_rpt'] # noqa: E501
595 
596  body_params = None
597  # HTTP header `Accept`
598  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
599  ['application/json']) # noqa: E501
600 
601  # HTTP header `Content-Type`
602  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
603  ['multipart/form-data']) # noqa: E501
604 
605  # Authentication setting
606  auth_settings = [] # noqa: E501
607 
608  return self.api_clientapi_client.call_api(
609  '/images', 'POST',
610  path_params,
611  query_params,
612  header_params,
613  body=body_params,
614  post_params=form_params,
615  files=local_var_files,
616  response_type='Image', # noqa: E501
617  auth_settings=auth_settings,
618  async_req=params.get('async_req'),
619  _return_http_data_only=params.get('_return_http_data_only'),
620  _preload_content=params.get('_preload_content', True),
621  _request_timeout=params.get('_request_timeout'),
622  collection_formats=collection_formats)
def cf_manager_rest_api_post_images_with_http_info(self, image_details, image_file, pr_verify_rpt, username, password, **kwargs)
Definition: images_api.py:519
def cf_manager_rest_api_delete_image(self, username, password, image_id, **kwargs)
Definition: images_api.py:35
def cf_manager_rest_api_post_app_logic_with_http_info(self, image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs)
Definition: images_api.py:381
def cf_manager_rest_api_delete_image_with_http_info(self, username, password, image_id, **kwargs)
Definition: images_api.py:58
def cf_manager_rest_api_post_app_logic(self, image_details, image_file, sig_file, pr_verify_rpt, username, password, **kwargs)
Definition: images_api.py:354
def cf_manager_rest_api_get_images_with_http_info(self, username, password, **kwargs)
Definition: images_api.py:272
def cf_manager_rest_api_get_image_single_with_http_info(self, username, password, image_id, **kwargs)
Definition: images_api.py:163
def cf_manager_rest_api_get_image_single(self, username, password, image_id, **kwargs)
Definition: images_api.py:140
def cf_manager_rest_api_get_images(self, username, password, **kwargs)
Definition: images_api.py:249
def cf_manager_rest_api_post_images(self, image_details, image_file, pr_verify_rpt, username, password, **kwargs)
Definition: images_api.py:493