cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
administration__admin_only_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 
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_admin_test_instance(self, username, password, instance_id, image_id, **kwargs): # noqa: E501
36  """Test the instance **if not used** # noqa: E501
37 
38  This call helps admins to test a specific instance, **if this instance is not used by another user**. This is **intended only for single instances**, not to update one instance out of a cluster. **If this call fails with `507`** and the FPGA worked without any problems before, then the submitted image probably doesn't work (i.e. `507` doesn't imply a failure of the FPGA board). This will also assign a new ip address to this instance. # noqa: E501
39  This method makes a synchronous HTTP request by default. To make an
40  asynchronous HTTP request, please pass async_req=True
41  >>> thread = api.cf_manager_rest_api_admin_test_instance(username, password, instance_id, image_id, async_req=True)
42  >>> result = thread.get()
43 
44  :param async_req bool
45  :param str username: OpenStack username (required)
46  :param str password: OpenStack password (required)
47  :param str instance_id: ROLE instance unique identifier (required)
48  :param str image_id: Image unique identifier (required)
49  :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
50  :return: InlineResponse2001
51  If the method is called asynchronously,
52  returns the request thread.
53  """
54  kwargs['_return_http_data_only'] = True
55  if kwargs.get('async_req'):
56  return self.cf_manager_rest_api_admin_test_instance_with_http_infocf_manager_rest_api_admin_test_instance_with_http_info(username, password, instance_id, image_id, **kwargs) # noqa: E501
57  else:
58  (data) = self.cf_manager_rest_api_admin_test_instance_with_http_infocf_manager_rest_api_admin_test_instance_with_http_info(username, password, instance_id, image_id, **kwargs) # noqa: E501
59  return data
60 
61  def cf_manager_rest_api_admin_test_instance_with_http_info(self, username, password, instance_id, image_id, **kwargs): # noqa: E501
62  """Test the instance **if not used** # noqa: E501
63 
64  This call helps admins to test a specific instance, **if this instance is not used by another user**. This is **intended only for single instances**, not to update one instance out of a cluster. **If this call fails with `507`** and the FPGA worked without any problems before, then the submitted image probably doesn't work (i.e. `507` doesn't imply a failure of the FPGA board). This will also assign a new ip address to this instance. # noqa: E501
65  This method makes a synchronous HTTP request by default. To make an
66  asynchronous HTTP request, please pass async_req=True
67  >>> thread = api.cf_manager_rest_api_admin_test_instance_with_http_info(username, password, instance_id, image_id, async_req=True)
68  >>> result = thread.get()
69 
70  :param async_req bool
71  :param str username: OpenStack username (required)
72  :param str password: OpenStack password (required)
73  :param str instance_id: ROLE instance unique identifier (required)
74  :param str image_id: Image unique identifier (required)
75  :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
76  :return: InlineResponse2001
77  If the method is called asynchronously,
78  returns the request thread.
79  """
80 
81  all_params = ['username', 'password', 'instance_id', 'image_id', 'dont_verify_memory'] # noqa: E501
82  all_params.append('async_req')
83  all_params.append('_return_http_data_only')
84  all_params.append('_preload_content')
85  all_params.append('_request_timeout')
86 
87  params = locals()
88  for key, val in six.iteritems(params['kwargs']):
89  if key not in all_params:
90  raise TypeError(
91  "Got an unexpected keyword argument '%s'"
92  " to method cf_manager_rest_api_admin_test_instance" % key
93  )
94  params[key] = val
95  del params['kwargs']
96  # verify the required parameter 'username' is set
97  if ('username' not in params or
98  params['username'] is None):
99  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_admin_test_instance`") # noqa: E501
100  # verify the required parameter 'password' is set
101  if ('password' not in params or
102  params['password'] is None):
103  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_admin_test_instance`") # noqa: E501
104  # verify the required parameter 'instance_id' is set
105  if ('instance_id' not in params or
106  params['instance_id'] is None):
107  raise ValueError("Missing the required parameter `instance_id` when calling `cf_manager_rest_api_admin_test_instance`") # noqa: E501
108  # verify the required parameter 'image_id' is set
109  if ('image_id' not in params or
110  params['image_id'] is None):
111  raise ValueError("Missing the required parameter `image_id` when calling `cf_manager_rest_api_admin_test_instance`") # noqa: E501
112 
113  collection_formats = {}
114 
115  path_params = {}
116  if 'instance_id' in params:
117  path_params['instance_id'] = params['instance_id'] # noqa: E501
118 
119  query_params = []
120  if 'username' in params:
121  query_params.append(('username', params['username'])) # noqa: E501
122  if 'password' in params:
123  query_params.append(('password', params['password'])) # noqa: E501
124  if 'image_id' in params:
125  query_params.append(('image_id', params['image_id'])) # noqa: E501
126  if 'dont_verify_memory' in params:
127  query_params.append(('dont_verify_memory', params['dont_verify_memory'])) # noqa: E501
128 
129  header_params = {}
130 
131  form_params = []
132  local_var_files = {}
133 
134  body_params = None
135  # HTTP header `Accept`
136  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
137  ['application/json']) # noqa: E501
138 
139  # Authentication setting
140  auth_settings = [] # noqa: E501
141 
142  return self.api_clientapi_client.call_api(
143  '/administration/test_instance/{instance_id}', 'PUT',
144  path_params,
145  query_params,
146  header_params,
147  body=body_params,
148  post_params=form_params,
149  files=local_var_files,
150  response_type='InlineResponse2001', # noqa: E501
151  auth_settings=auth_settings,
152  async_req=params.get('async_req'),
153  _return_http_data_only=params.get('_return_http_data_only'),
154  _preload_content=params.get('_preload_content', True),
155  _request_timeout=params.get('_request_timeout'),
156  collection_formats=collection_formats)
157 
158  def cf_manager_rest_api_admin_update_flash(self, username, password, resource_id, pl_id, **kwargs): # noqa: E501
159  """Update the flash of a resource **if not used** # noqa: E501
160 
161  This call allows admins to update the flash file of a resource, **if this instance is not used by another user**. If successful, the resource's shell_type is updated and the resource is marked as AVAILABLE. # noqa: E501
162  This method makes a synchronous HTTP request by default. To make an
163  asynchronous HTTP request, please pass async_req=True
164  >>> thread = api.cf_manager_rest_api_admin_update_flash(username, password, resource_id, pl_id, async_req=True)
165  >>> result = thread.get()
166 
167  :param async_req bool
168  :param str username: OpenStack username (required)
169  :param str password: OpenStack password (required)
170  :param str resource_id: cloudFPGA resource unique identifier (required)
171  :param str pl_id: Platform logic unique identifier (required)
172  :return: Resource
173  If the method is called asynchronously,
174  returns the request thread.
175  """
176  kwargs['_return_http_data_only'] = True
177  if kwargs.get('async_req'):
178  return self.cf_manager_rest_api_admin_update_flash_with_http_infocf_manager_rest_api_admin_update_flash_with_http_info(username, password, resource_id, pl_id, **kwargs) # noqa: E501
179  else:
180  (data) = self.cf_manager_rest_api_admin_update_flash_with_http_infocf_manager_rest_api_admin_update_flash_with_http_info(username, password, resource_id, pl_id, **kwargs) # noqa: E501
181  return data
182 
183  def cf_manager_rest_api_admin_update_flash_with_http_info(self, username, password, resource_id, pl_id, **kwargs): # noqa: E501
184  """Update the flash of a resource **if not used** # noqa: E501
185 
186  This call allows admins to update the flash file of a resource, **if this instance is not used by another user**. If successful, the resource's shell_type is updated and the resource is marked as AVAILABLE. # noqa: E501
187  This method makes a synchronous HTTP request by default. To make an
188  asynchronous HTTP request, please pass async_req=True
189  >>> thread = api.cf_manager_rest_api_admin_update_flash_with_http_info(username, password, resource_id, pl_id, async_req=True)
190  >>> result = thread.get()
191 
192  :param async_req bool
193  :param str username: OpenStack username (required)
194  :param str password: OpenStack password (required)
195  :param str resource_id: cloudFPGA resource unique identifier (required)
196  :param str pl_id: Platform logic unique identifier (required)
197  :return: Resource
198  If the method is called asynchronously,
199  returns the request thread.
200  """
201 
202  all_params = ['username', 'password', 'resource_id', 'pl_id'] # noqa: E501
203  all_params.append('async_req')
204  all_params.append('_return_http_data_only')
205  all_params.append('_preload_content')
206  all_params.append('_request_timeout')
207 
208  params = locals()
209  for key, val in six.iteritems(params['kwargs']):
210  if key not in all_params:
211  raise TypeError(
212  "Got an unexpected keyword argument '%s'"
213  " to method cf_manager_rest_api_admin_update_flash" % key
214  )
215  params[key] = val
216  del params['kwargs']
217  # verify the required parameter 'username' is set
218  if ('username' not in params or
219  params['username'] is None):
220  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_admin_update_flash`") # noqa: E501
221  # verify the required parameter 'password' is set
222  if ('password' not in params or
223  params['password'] is None):
224  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_admin_update_flash`") # noqa: E501
225  # verify the required parameter 'resource_id' is set
226  if ('resource_id' not in params or
227  params['resource_id'] is None):
228  raise ValueError("Missing the required parameter `resource_id` when calling `cf_manager_rest_api_admin_update_flash`") # noqa: E501
229  # verify the required parameter 'pl_id' is set
230  if ('pl_id' not in params or
231  params['pl_id'] is None):
232  raise ValueError("Missing the required parameter `pl_id` when calling `cf_manager_rest_api_admin_update_flash`") # noqa: E501
233 
234  collection_formats = {}
235 
236  path_params = {}
237  if 'resource_id' in params:
238  path_params['resource_id'] = params['resource_id'] # noqa: E501
239 
240  query_params = []
241  if 'username' in params:
242  query_params.append(('username', params['username'])) # noqa: E501
243  if 'password' in params:
244  query_params.append(('password', params['password'])) # noqa: E501
245  if 'pl_id' in params:
246  query_params.append(('pl_id', params['pl_id'])) # noqa: E501
247 
248  header_params = {}
249 
250  form_params = []
251  local_var_files = {}
252 
253  body_params = None
254  # HTTP header `Accept`
255  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
256  ['application/json']) # noqa: E501
257 
258  # Authentication setting
259  auth_settings = [] # noqa: E501
260 
261  return self.api_clientapi_client.call_api(
262  '/administration/update_flash/{resource_id}', 'PUT',
263  path_params,
264  query_params,
265  header_params,
266  body=body_params,
267  post_params=form_params,
268  files=local_var_files,
269  response_type='Resource', # noqa: E501
270  auth_settings=auth_settings,
271  async_req=params.get('async_req'),
272  _return_http_data_only=params.get('_return_http_data_only'),
273  _preload_content=params.get('_preload_content', True),
274  _request_timeout=params.get('_request_timeout'),
275  collection_formats=collection_formats)
276 
277  def cf_manager_rest_api_delete_ippool(self, username, password, subnet_string, **kwargs): # noqa: E501
278  """Remove a /24 subnet # noqa: E501
279 
280  Marks the submitted `/24` subnet as `DELETED`. *Note: this will not delete all ip addresses immediately*, `USED` ip addresses remains used until the corresponding `instance` is deleted. For now *only /24 subnets* are supported, so it is enough to submit the subnet base, *e.g. `10.12.200.0`*! # noqa: E501
281  This method makes a synchronous HTTP request by default. To make an
282  asynchronous HTTP request, please pass async_req=True
283  >>> thread = api.cf_manager_rest_api_delete_ippool(username, password, subnet_string, async_req=True)
284  >>> result = thread.get()
285 
286  :param async_req bool
287  :param str username: OpenStack username (required)
288  :param str password: OpenStack password (required)
289  :param str subnet_string: A /24 subnet (required)
290  :return: None
291  If the method is called asynchronously,
292  returns the request thread.
293  """
294  kwargs['_return_http_data_only'] = True
295  if kwargs.get('async_req'):
296  return self.cf_manager_rest_api_delete_ippool_with_http_infocf_manager_rest_api_delete_ippool_with_http_info(username, password, subnet_string, **kwargs) # noqa: E501
297  else:
298  (data) = self.cf_manager_rest_api_delete_ippool_with_http_infocf_manager_rest_api_delete_ippool_with_http_info(username, password, subnet_string, **kwargs) # noqa: E501
299  return data
300 
301  def cf_manager_rest_api_delete_ippool_with_http_info(self, username, password, subnet_string, **kwargs): # noqa: E501
302  """Remove a /24 subnet # noqa: E501
303 
304  Marks the submitted `/24` subnet as `DELETED`. *Note: this will not delete all ip addresses immediately*, `USED` ip addresses remains used until the corresponding `instance` is deleted. For now *only /24 subnets* are supported, so it is enough to submit the subnet base, *e.g. `10.12.200.0`*! # noqa: E501
305  This method makes a synchronous HTTP request by default. To make an
306  asynchronous HTTP request, please pass async_req=True
307  >>> thread = api.cf_manager_rest_api_delete_ippool_with_http_info(username, password, subnet_string, async_req=True)
308  >>> result = thread.get()
309 
310  :param async_req bool
311  :param str username: OpenStack username (required)
312  :param str password: OpenStack password (required)
313  :param str subnet_string: A /24 subnet (required)
314  :return: None
315  If the method is called asynchronously,
316  returns the request thread.
317  """
318 
319  all_params = ['username', 'password', 'subnet_string'] # noqa: E501
320  all_params.append('async_req')
321  all_params.append('_return_http_data_only')
322  all_params.append('_preload_content')
323  all_params.append('_request_timeout')
324 
325  params = locals()
326  for key, val in six.iteritems(params['kwargs']):
327  if key not in all_params:
328  raise TypeError(
329  "Got an unexpected keyword argument '%s'"
330  " to method cf_manager_rest_api_delete_ippool" % key
331  )
332  params[key] = val
333  del params['kwargs']
334  # verify the required parameter 'username' is set
335  if ('username' not in params or
336  params['username'] is None):
337  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_delete_ippool`") # noqa: E501
338  # verify the required parameter 'password' is set
339  if ('password' not in params or
340  params['password'] is None):
341  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_delete_ippool`") # noqa: E501
342  # verify the required parameter 'subnet_string' is set
343  if ('subnet_string' not in params or
344  params['subnet_string'] is None):
345  raise ValueError("Missing the required parameter `subnet_string` when calling `cf_manager_rest_api_delete_ippool`") # noqa: E501
346 
347  collection_formats = {}
348 
349  path_params = {}
350 
351  query_params = []
352  if 'username' in params:
353  query_params.append(('username', params['username'])) # noqa: E501
354  if 'password' in params:
355  query_params.append(('password', params['password'])) # noqa: E501
356  if 'subnet_string' in params:
357  query_params.append(('subnet_string', params['subnet_string'])) # noqa: E501
358 
359  header_params = {}
360 
361  form_params = []
362  local_var_files = {}
363 
364  body_params = None
365  # Authentication setting
366  auth_settings = [] # noqa: E501
367 
368  return self.api_clientapi_client.call_api(
369  '/administration/ippool/', 'DELETE',
370  path_params,
371  query_params,
372  header_params,
373  body=body_params,
374  post_params=form_params,
375  files=local_var_files,
376  response_type=None, # noqa: E501
377  auth_settings=auth_settings,
378  async_req=params.get('async_req'),
379  _return_http_data_only=params.get('_return_http_data_only'),
380  _preload_content=params.get('_preload_content', True),
381  _request_timeout=params.get('_request_timeout'),
382  collection_formats=collection_formats)
383 
384  def cf_manager_rest_api_get_all_composable_logic(self, username, password, **kwargs): # noqa: E501
385  """Get list of all composable logic # noqa: E501
386 
387  This API call also checks if DEPRECATED or DISCHARGED PLs are still programmed to some resources. # noqa: E501
388  This method makes a synchronous HTTP request by default. To make an
389  asynchronous HTTP request, please pass async_req=True
390  >>> thread = api.cf_manager_rest_api_get_all_composable_logic(username, password, async_req=True)
391  >>> result = thread.get()
392 
393  :param async_req bool
394  :param str username: OpenStack username (required)
395  :param str password: OpenStack password (required)
396  :return: None
397  If the method is called asynchronously,
398  returns the request thread.
399  """
400  kwargs['_return_http_data_only'] = True
401  if kwargs.get('async_req'):
402  return self.cf_manager_rest_api_get_all_composable_logic_with_http_infocf_manager_rest_api_get_all_composable_logic_with_http_info(username, password, **kwargs) # noqa: E501
403  else:
404  (data) = self.cf_manager_rest_api_get_all_composable_logic_with_http_infocf_manager_rest_api_get_all_composable_logic_with_http_info(username, password, **kwargs) # noqa: E501
405  return data
406 
407  def cf_manager_rest_api_get_all_composable_logic_with_http_info(self, username, password, **kwargs): # noqa: E501
408  """Get list of all composable logic # noqa: E501
409 
410  This API call also checks if DEPRECATED or DISCHARGED PLs are still programmed to some resources. # noqa: E501
411  This method makes a synchronous HTTP request by default. To make an
412  asynchronous HTTP request, please pass async_req=True
413  >>> thread = api.cf_manager_rest_api_get_all_composable_logic_with_http_info(username, password, async_req=True)
414  >>> result = thread.get()
415 
416  :param async_req bool
417  :param str username: OpenStack username (required)
418  :param str password: OpenStack password (required)
419  :return: None
420  If the method is called asynchronously,
421  returns the request thread.
422  """
423 
424  all_params = ['username', 'password'] # noqa: E501
425  all_params.append('async_req')
426  all_params.append('_return_http_data_only')
427  all_params.append('_preload_content')
428  all_params.append('_request_timeout')
429 
430  params = locals()
431  for key, val in six.iteritems(params['kwargs']):
432  if key not in all_params:
433  raise TypeError(
434  "Got an unexpected keyword argument '%s'"
435  " to method cf_manager_rest_api_get_all_composable_logic" % key
436  )
437  params[key] = val
438  del params['kwargs']
439  # verify the required parameter 'username' is set
440  if ('username' not in params or
441  params['username'] is None):
442  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_all_composable_logic`") # noqa: E501
443  # verify the required parameter 'password' is set
444  if ('password' not in params or
445  params['password'] is None):
446  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_all_composable_logic`") # noqa: E501
447 
448  collection_formats = {}
449 
450  path_params = {}
451 
452  query_params = []
453  if 'username' in params:
454  query_params.append(('username', params['username'])) # noqa: E501
455  if 'password' in params:
456  query_params.append(('password', params['password'])) # noqa: E501
457 
458  header_params = {}
459 
460  form_params = []
461  local_var_files = {}
462 
463  body_params = None
464  # Authentication setting
465  auth_settings = [] # noqa: E501
466 
467  return self.api_clientapi_client.call_api(
468  '/administration/composablelogic/all/', 'GET',
469  path_params,
470  query_params,
471  header_params,
472  body=body_params,
473  post_params=form_params,
474  files=local_var_files,
475  response_type=None, # noqa: E501
476  auth_settings=auth_settings,
477  async_req=params.get('async_req'),
478  _return_http_data_only=params.get('_return_http_data_only'),
479  _preload_content=params.get('_preload_content', True),
480  _request_timeout=params.get('_request_timeout'),
481  collection_formats=collection_formats)
482 
483  def cf_manager_rest_api_get_buildscripts_all(self, username, password, **kwargs): # noqa: E501
484  """Get all registered build script versions # noqa: E501
485 
486  This method makes a synchronous HTTP request by default. To make an
487  asynchronous HTTP request, please pass async_req=True
488  >>> thread = api.cf_manager_rest_api_get_buildscripts_all(username, password, async_req=True)
489  >>> result = thread.get()
490 
491  :param async_req bool
492  :param str username: OpenStack username (required)
493  :param str password: OpenStack password (required)
494  :return: list[BuildScript]
495  If the method is called asynchronously,
496  returns the request thread.
497  """
498  kwargs['_return_http_data_only'] = True
499  if kwargs.get('async_req'):
500  return self.cf_manager_rest_api_get_buildscripts_all_with_http_infocf_manager_rest_api_get_buildscripts_all_with_http_info(username, password, **kwargs) # noqa: E501
501  else:
502  (data) = self.cf_manager_rest_api_get_buildscripts_all_with_http_infocf_manager_rest_api_get_buildscripts_all_with_http_info(username, password, **kwargs) # noqa: E501
503  return data
504 
505  def cf_manager_rest_api_get_buildscripts_all_with_http_info(self, username, password, **kwargs): # noqa: E501
506  """Get all registered build script versions # noqa: E501
507 
508  This method makes a synchronous HTTP request by default. To make an
509  asynchronous HTTP request, please pass async_req=True
510  >>> thread = api.cf_manager_rest_api_get_buildscripts_all_with_http_info(username, password, async_req=True)
511  >>> result = thread.get()
512 
513  :param async_req bool
514  :param str username: OpenStack username (required)
515  :param str password: OpenStack password (required)
516  :return: list[BuildScript]
517  If the method is called asynchronously,
518  returns the request thread.
519  """
520 
521  all_params = ['username', 'password'] # noqa: E501
522  all_params.append('async_req')
523  all_params.append('_return_http_data_only')
524  all_params.append('_preload_content')
525  all_params.append('_request_timeout')
526 
527  params = locals()
528  for key, val in six.iteritems(params['kwargs']):
529  if key not in all_params:
530  raise TypeError(
531  "Got an unexpected keyword argument '%s'"
532  " to method cf_manager_rest_api_get_buildscripts_all" % key
533  )
534  params[key] = val
535  del params['kwargs']
536  # verify the required parameter 'username' is set
537  if ('username' not in params or
538  params['username'] is None):
539  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_buildscripts_all`") # noqa: E501
540  # verify the required parameter 'password' is set
541  if ('password' not in params or
542  params['password'] is None):
543  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_buildscripts_all`") # noqa: E501
544 
545  collection_formats = {}
546 
547  path_params = {}
548 
549  query_params = []
550  if 'username' in params:
551  query_params.append(('username', params['username'])) # noqa: E501
552  if 'password' in params:
553  query_params.append(('password', params['password'])) # noqa: E501
554 
555  header_params = {}
556 
557  form_params = []
558  local_var_files = {}
559 
560  body_params = None
561  # HTTP header `Accept`
562  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
563  ['application/json']) # noqa: E501
564 
565  # Authentication setting
566  auth_settings = [] # noqa: E501
567 
568  return self.api_clientapi_client.call_api(
569  '/administration/buildscripts', 'GET',
570  path_params,
571  query_params,
572  header_params,
573  body=body_params,
574  post_params=form_params,
575  files=local_var_files,
576  response_type='list[BuildScript]', # noqa: E501
577  auth_settings=auth_settings,
578  async_req=params.get('async_req'),
579  _return_http_data_only=params.get('_return_http_data_only'),
580  _preload_content=params.get('_preload_content', True),
581  _request_timeout=params.get('_request_timeout'),
582  collection_formats=collection_formats)
583 
584  def cf_manager_rest_api_get_ippool(self, username, password, **kwargs): # noqa: E501
585  """Get all ip addresses in the current pool # noqa: E501
586 
587  This call returns a list of *all* ip addresses that are currently known, regardless their state. That includes also ip addresses that are marked as `DELETED` but are still in use. # noqa: E501
588  This method makes a synchronous HTTP request by default. To make an
589  asynchronous HTTP request, please pass async_req=True
590  >>> thread = api.cf_manager_rest_api_get_ippool(username, password, async_req=True)
591  >>> result = thread.get()
592 
593  :param async_req bool
594  :param str username: OpenStack username (required)
595  :param str password: OpenStack password (required)
596  :return: list[InlineResponse200]
597  If the method is called asynchronously,
598  returns the request thread.
599  """
600  kwargs['_return_http_data_only'] = True
601  if kwargs.get('async_req'):
602  return self.cf_manager_rest_api_get_ippool_with_http_infocf_manager_rest_api_get_ippool_with_http_info(username, password, **kwargs) # noqa: E501
603  else:
604  (data) = self.cf_manager_rest_api_get_ippool_with_http_infocf_manager_rest_api_get_ippool_with_http_info(username, password, **kwargs) # noqa: E501
605  return data
606 
607  def cf_manager_rest_api_get_ippool_with_http_info(self, username, password, **kwargs): # noqa: E501
608  """Get all ip addresses in the current pool # noqa: E501
609 
610  This call returns a list of *all* ip addresses that are currently known, regardless their state. That includes also ip addresses that are marked as `DELETED` but are still in use. # noqa: E501
611  This method makes a synchronous HTTP request by default. To make an
612  asynchronous HTTP request, please pass async_req=True
613  >>> thread = api.cf_manager_rest_api_get_ippool_with_http_info(username, password, async_req=True)
614  >>> result = thread.get()
615 
616  :param async_req bool
617  :param str username: OpenStack username (required)
618  :param str password: OpenStack password (required)
619  :return: list[InlineResponse200]
620  If the method is called asynchronously,
621  returns the request thread.
622  """
623 
624  all_params = ['username', 'password'] # noqa: E501
625  all_params.append('async_req')
626  all_params.append('_return_http_data_only')
627  all_params.append('_preload_content')
628  all_params.append('_request_timeout')
629 
630  params = locals()
631  for key, val in six.iteritems(params['kwargs']):
632  if key not in all_params:
633  raise TypeError(
634  "Got an unexpected keyword argument '%s'"
635  " to method cf_manager_rest_api_get_ippool" % key
636  )
637  params[key] = val
638  del params['kwargs']
639  # verify the required parameter 'username' is set
640  if ('username' not in params or
641  params['username'] is None):
642  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_ippool`") # noqa: E501
643  # verify the required parameter 'password' is set
644  if ('password' not in params or
645  params['password'] is None):
646  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_ippool`") # noqa: E501
647 
648  collection_formats = {}
649 
650  path_params = {}
651 
652  query_params = []
653  if 'username' in params:
654  query_params.append(('username', params['username'])) # noqa: E501
655  if 'password' in params:
656  query_params.append(('password', params['password'])) # noqa: E501
657 
658  header_params = {}
659 
660  form_params = []
661  local_var_files = {}
662 
663  body_params = None
664  # HTTP header `Accept`
665  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
666  ['application/json']) # noqa: E501
667 
668  # Authentication setting
669  auth_settings = [] # noqa: E501
670 
671  return self.api_clientapi_client.call_api(
672  '/administration/ippool/', 'GET',
673  path_params,
674  query_params,
675  header_params,
676  body=body_params,
677  post_params=form_params,
678  files=local_var_files,
679  response_type='list[InlineResponse200]', # noqa: E501
680  auth_settings=auth_settings,
681  async_req=params.get('async_req'),
682  _return_http_data_only=params.get('_return_http_data_only'),
683  _preload_content=params.get('_preload_content', True),
684  _request_timeout=params.get('_request_timeout'),
685  collection_formats=collection_formats)
686 
687  def cf_manager_rest_api_get_mantle_logic_all(self, username, password, **kwargs): # noqa: E501
688  """Get all mantle logics # noqa: E501
689 
690  This method makes a synchronous HTTP request by default. To make an
691  asynchronous HTTP request, please pass async_req=True
692  >>> thread = api.cf_manager_rest_api_get_mantle_logic_all(username, password, async_req=True)
693  >>> result = thread.get()
694 
695  :param async_req bool
696  :param str username: OpenStack username (required)
697  :param str password: OpenStack password (required)
698  :return: None
699  If the method is called asynchronously,
700  returns the request thread.
701  """
702  kwargs['_return_http_data_only'] = True
703  if kwargs.get('async_req'):
704  return self.cf_manager_rest_api_get_mantle_logic_all_with_http_infocf_manager_rest_api_get_mantle_logic_all_with_http_info(username, password, **kwargs) # noqa: E501
705  else:
706  (data) = self.cf_manager_rest_api_get_mantle_logic_all_with_http_infocf_manager_rest_api_get_mantle_logic_all_with_http_info(username, password, **kwargs) # noqa: E501
707  return data
708 
709  def cf_manager_rest_api_get_mantle_logic_all_with_http_info(self, username, password, **kwargs): # noqa: E501
710  """Get all mantle logics # noqa: E501
711 
712  This method makes a synchronous HTTP request by default. To make an
713  asynchronous HTTP request, please pass async_req=True
714  >>> thread = api.cf_manager_rest_api_get_mantle_logic_all_with_http_info(username, password, async_req=True)
715  >>> result = thread.get()
716 
717  :param async_req bool
718  :param str username: OpenStack username (required)
719  :param str password: OpenStack password (required)
720  :return: None
721  If the method is called asynchronously,
722  returns the request thread.
723  """
724 
725  all_params = ['username', 'password'] # noqa: E501
726  all_params.append('async_req')
727  all_params.append('_return_http_data_only')
728  all_params.append('_preload_content')
729  all_params.append('_request_timeout')
730 
731  params = locals()
732  for key, val in six.iteritems(params['kwargs']):
733  if key not in all_params:
734  raise TypeError(
735  "Got an unexpected keyword argument '%s'"
736  " to method cf_manager_rest_api_get_mantle_logic_all" % key
737  )
738  params[key] = val
739  del params['kwargs']
740  # verify the required parameter 'username' is set
741  if ('username' not in params or
742  params['username'] is None):
743  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_mantle_logic_all`") # noqa: E501
744  # verify the required parameter 'password' is set
745  if ('password' not in params or
746  params['password'] is None):
747  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_mantle_logic_all`") # noqa: E501
748 
749  collection_formats = {}
750 
751  path_params = {}
752 
753  query_params = []
754  if 'username' in params:
755  query_params.append(('username', params['username'])) # noqa: E501
756  if 'password' in params:
757  query_params.append(('password', params['password'])) # noqa: E501
758 
759  header_params = {}
760 
761  form_params = []
762  local_var_files = {}
763 
764  body_params = None
765  # Authentication setting
766  auth_settings = [] # noqa: E501
767 
768  return self.api_clientapi_client.call_api(
769  '/administration/mantle_logic', 'GET',
770  path_params,
771  query_params,
772  header_params,
773  body=body_params,
774  post_params=form_params,
775  files=local_var_files,
776  response_type=None, # noqa: E501
777  auth_settings=auth_settings,
778  async_req=params.get('async_req'),
779  _return_http_data_only=params.get('_return_http_data_only'),
780  _preload_content=params.get('_preload_content', True),
781  _request_timeout=params.get('_request_timeout'),
782  collection_formats=collection_formats)
783 
784  def cf_manager_rest_api_get_platform_logic_all(self, username, password, **kwargs): # noqa: E501
785  """Get all platform logics # noqa: E501
786 
787  This method makes a synchronous HTTP request by default. To make an
788  asynchronous HTTP request, please pass async_req=True
789  >>> thread = api.cf_manager_rest_api_get_platform_logic_all(username, password, async_req=True)
790  >>> result = thread.get()
791 
792  :param async_req bool
793  :param str username: OpenStack username (required)
794  :param str password: OpenStack password (required)
795  :return: None
796  If the method is called asynchronously,
797  returns the request thread.
798  """
799  kwargs['_return_http_data_only'] = True
800  if kwargs.get('async_req'):
801  return self.cf_manager_rest_api_get_platform_logic_all_with_http_infocf_manager_rest_api_get_platform_logic_all_with_http_info(username, password, **kwargs) # noqa: E501
802  else:
803  (data) = self.cf_manager_rest_api_get_platform_logic_all_with_http_infocf_manager_rest_api_get_platform_logic_all_with_http_info(username, password, **kwargs) # noqa: E501
804  return data
805 
806  def cf_manager_rest_api_get_platform_logic_all_with_http_info(self, username, password, **kwargs): # noqa: E501
807  """Get all platform logics # noqa: E501
808 
809  This method makes a synchronous HTTP request by default. To make an
810  asynchronous HTTP request, please pass async_req=True
811  >>> thread = api.cf_manager_rest_api_get_platform_logic_all_with_http_info(username, password, async_req=True)
812  >>> result = thread.get()
813 
814  :param async_req bool
815  :param str username: OpenStack username (required)
816  :param str password: OpenStack password (required)
817  :return: None
818  If the method is called asynchronously,
819  returns the request thread.
820  """
821 
822  all_params = ['username', 'password'] # noqa: E501
823  all_params.append('async_req')
824  all_params.append('_return_http_data_only')
825  all_params.append('_preload_content')
826  all_params.append('_request_timeout')
827 
828  params = locals()
829  for key, val in six.iteritems(params['kwargs']):
830  if key not in all_params:
831  raise TypeError(
832  "Got an unexpected keyword argument '%s'"
833  " to method cf_manager_rest_api_get_platform_logic_all" % key
834  )
835  params[key] = val
836  del params['kwargs']
837  # verify the required parameter 'username' is set
838  if ('username' not in params or
839  params['username'] is None):
840  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_platform_logic_all`") # noqa: E501
841  # verify the required parameter 'password' is set
842  if ('password' not in params or
843  params['password'] is None):
844  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_platform_logic_all`") # noqa: E501
845 
846  collection_formats = {}
847 
848  path_params = {}
849 
850  query_params = []
851  if 'username' in params:
852  query_params.append(('username', params['username'])) # noqa: E501
853  if 'password' in params:
854  query_params.append(('password', params['password'])) # noqa: E501
855 
856  header_params = {}
857 
858  form_params = []
859  local_var_files = {}
860 
861  body_params = None
862  # Authentication setting
863  auth_settings = [] # noqa: E501
864 
865  return self.api_clientapi_client.call_api(
866  '/administration/platform_logic', 'GET',
867  path_params,
868  query_params,
869  header_params,
870  body=body_params,
871  post_params=form_params,
872  files=local_var_files,
873  response_type=None, # noqa: E501
874  auth_settings=auth_settings,
875  async_req=params.get('async_req'),
876  _return_http_data_only=params.get('_return_http_data_only'),
877  _preload_content=params.get('_preload_content', True),
878  _request_timeout=params.get('_request_timeout'),
879  collection_formats=collection_formats)
880 
881  def cf_manager_rest_api_get_single_buildscript(self, username, password, bs_id, **kwargs): # noqa: E501
882  """Get details of one registered build script # noqa: E501
883 
884  This method makes a synchronous HTTP request by default. To make an
885  asynchronous HTTP request, please pass async_req=True
886  >>> thread = api.cf_manager_rest_api_get_single_buildscript(username, password, bs_id, async_req=True)
887  >>> result = thread.get()
888 
889  :param async_req bool
890  :param str username: OpenStack username (required)
891  :param str password: OpenStack password (required)
892  :param int bs_id: ID of a registered build script (required)
893  :return: BuildScript
894  If the method is called asynchronously,
895  returns the request thread.
896  """
897  kwargs['_return_http_data_only'] = True
898  if kwargs.get('async_req'):
899  return self.cf_manager_rest_api_get_single_buildscript_with_http_infocf_manager_rest_api_get_single_buildscript_with_http_info(username, password, bs_id, **kwargs) # noqa: E501
900  else:
901  (data) = self.cf_manager_rest_api_get_single_buildscript_with_http_infocf_manager_rest_api_get_single_buildscript_with_http_info(username, password, bs_id, **kwargs) # noqa: E501
902  return data
903 
904  def cf_manager_rest_api_get_single_buildscript_with_http_info(self, username, password, bs_id, **kwargs): # noqa: E501
905  """Get details of one registered build script # noqa: E501
906 
907  This method makes a synchronous HTTP request by default. To make an
908  asynchronous HTTP request, please pass async_req=True
909  >>> thread = api.cf_manager_rest_api_get_single_buildscript_with_http_info(username, password, bs_id, async_req=True)
910  >>> result = thread.get()
911 
912  :param async_req bool
913  :param str username: OpenStack username (required)
914  :param str password: OpenStack password (required)
915  :param int bs_id: ID of a registered build script (required)
916  :return: BuildScript
917  If the method is called asynchronously,
918  returns the request thread.
919  """
920 
921  all_params = ['username', 'password', 'bs_id'] # noqa: E501
922  all_params.append('async_req')
923  all_params.append('_return_http_data_only')
924  all_params.append('_preload_content')
925  all_params.append('_request_timeout')
926 
927  params = locals()
928  for key, val in six.iteritems(params['kwargs']):
929  if key not in all_params:
930  raise TypeError(
931  "Got an unexpected keyword argument '%s'"
932  " to method cf_manager_rest_api_get_single_buildscript" % key
933  )
934  params[key] = val
935  del params['kwargs']
936  # verify the required parameter 'username' is set
937  if ('username' not in params or
938  params['username'] is None):
939  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_single_buildscript`") # noqa: E501
940  # verify the required parameter 'password' is set
941  if ('password' not in params or
942  params['password'] is None):
943  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_single_buildscript`") # noqa: E501
944  # verify the required parameter 'bs_id' is set
945  if ('bs_id' not in params or
946  params['bs_id'] is None):
947  raise ValueError("Missing the required parameter `bs_id` when calling `cf_manager_rest_api_get_single_buildscript`") # noqa: E501
948 
949  collection_formats = {}
950 
951  path_params = {}
952  if 'bs_id' in params:
953  path_params['bs_id'] = params['bs_id'] # noqa: E501
954 
955  query_params = []
956  if 'username' in params:
957  query_params.append(('username', params['username'])) # noqa: E501
958  if 'password' in params:
959  query_params.append(('password', params['password'])) # noqa: E501
960 
961  header_params = {}
962 
963  form_params = []
964  local_var_files = {}
965 
966  body_params = None
967  # HTTP header `Accept`
968  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
969  ['application/json']) # noqa: E501
970 
971  # Authentication setting
972  auth_settings = [] # noqa: E501
973 
974  return self.api_clientapi_client.call_api(
975  '/administration/buildscripts/{bs_id}', 'GET',
976  path_params,
977  query_params,
978  header_params,
979  body=body_params,
980  post_params=form_params,
981  files=local_var_files,
982  response_type='BuildScript', # noqa: E501
983  auth_settings=auth_settings,
984  async_req=params.get('async_req'),
985  _return_http_data_only=params.get('_return_http_data_only'),
986  _preload_content=params.get('_preload_content', True),
987  _request_timeout=params.get('_request_timeout'),
988  collection_formats=collection_formats)
989 
990  def cf_manager_rest_api_get_single_composable_logic(self, username, password, cl_id, **kwargs): # noqa: E501
991  """Get details of one composable logic # noqa: E501
992 
993  This method makes a synchronous HTTP request by default. To make an
994  asynchronous HTTP request, please pass async_req=True
995  >>> thread = api.cf_manager_rest_api_get_single_composable_logic(username, password, cl_id, async_req=True)
996  >>> result = thread.get()
997 
998  :param async_req bool
999  :param str username: OpenStack username (required)
1000  :param str password: OpenStack password (required)
1001  :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
1002  :return: None
1003  If the method is called asynchronously,
1004  returns the request thread.
1005  """
1006  kwargs['_return_http_data_only'] = True
1007  if kwargs.get('async_req'):
1008  return self.cf_manager_rest_api_get_single_composable_logic_with_http_infocf_manager_rest_api_get_single_composable_logic_with_http_info(username, password, cl_id, **kwargs) # noqa: E501
1009  else:
1010  (data) = self.cf_manager_rest_api_get_single_composable_logic_with_http_infocf_manager_rest_api_get_single_composable_logic_with_http_info(username, password, cl_id, **kwargs) # noqa: E501
1011  return data
1012 
1013  def cf_manager_rest_api_get_single_composable_logic_with_http_info(self, username, password, cl_id, **kwargs): # noqa: E501
1014  """Get details of one composable logic # noqa: E501
1015 
1016  This method makes a synchronous HTTP request by default. To make an
1017  asynchronous HTTP request, please pass async_req=True
1018  >>> thread = api.cf_manager_rest_api_get_single_composable_logic_with_http_info(username, password, cl_id, async_req=True)
1019  >>> result = thread.get()
1020 
1021  :param async_req bool
1022  :param str username: OpenStack username (required)
1023  :param str password: OpenStack password (required)
1024  :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
1025  :return: None
1026  If the method is called asynchronously,
1027  returns the request thread.
1028  """
1029 
1030  all_params = ['username', 'password', 'cl_id'] # noqa: E501
1031  all_params.append('async_req')
1032  all_params.append('_return_http_data_only')
1033  all_params.append('_preload_content')
1034  all_params.append('_request_timeout')
1035 
1036  params = locals()
1037  for key, val in six.iteritems(params['kwargs']):
1038  if key not in all_params:
1039  raise TypeError(
1040  "Got an unexpected keyword argument '%s'"
1041  " to method cf_manager_rest_api_get_single_composable_logic" % key
1042  )
1043  params[key] = val
1044  del params['kwargs']
1045  # verify the required parameter 'username' is set
1046  if ('username' not in params or
1047  params['username'] is None):
1048  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_get_single_composable_logic`") # noqa: E501
1049  # verify the required parameter 'password' is set
1050  if ('password' not in params or
1051  params['password'] is None):
1052  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_get_single_composable_logic`") # noqa: E501
1053  # verify the required parameter 'cl_id' is set
1054  if ('cl_id' not in params or
1055  params['cl_id'] is None):
1056  raise ValueError("Missing the required parameter `cl_id` when calling `cf_manager_rest_api_get_single_composable_logic`") # noqa: E501
1057 
1058  collection_formats = {}
1059 
1060  path_params = {}
1061  if 'cl_id' in params:
1062  path_params['cl_id'] = params['cl_id'] # noqa: E501
1063 
1064  query_params = []
1065  if 'username' in params:
1066  query_params.append(('username', params['username'])) # noqa: E501
1067  if 'password' in params:
1068  query_params.append(('password', params['password'])) # noqa: E501
1069 
1070  header_params = {}
1071 
1072  form_params = []
1073  local_var_files = {}
1074 
1075  body_params = None
1076  # Authentication setting
1077  auth_settings = [] # noqa: E501
1078 
1079  return self.api_clientapi_client.call_api(
1080  '/administration/composablelogic/{cl_id}/', 'GET',
1081  path_params,
1082  query_params,
1083  header_params,
1084  body=body_params,
1085  post_params=form_params,
1086  files=local_var_files,
1087  response_type=None, # noqa: E501
1088  auth_settings=auth_settings,
1089  async_req=params.get('async_req'),
1090  _return_http_data_only=params.get('_return_http_data_only'),
1091  _preload_content=params.get('_preload_content', True),
1092  _request_timeout=params.get('_request_timeout'),
1093  collection_formats=collection_formats)
1094 
1095  def cf_manager_rest_api_post_buildscript(self, username, password, **kwargs): # noqa: E501
1096  """Register a new build script version # noqa: E501
1097 
1098  This method makes a synchronous HTTP request by default. To make an
1099  asynchronous HTTP request, please pass async_req=True
1100  >>> thread = api.cf_manager_rest_api_post_buildscript(username, password, async_req=True)
1101  >>> result = thread.get()
1102 
1103  :param async_req bool
1104  :param str username: OpenStack username (required)
1105  :param str password: OpenStack password (required)
1106  :param BuildScript body:
1107  :return: BuildScript
1108  If the method is called asynchronously,
1109  returns the request thread.
1110  """
1111  kwargs['_return_http_data_only'] = True
1112  if kwargs.get('async_req'):
1113  return self.cf_manager_rest_api_post_buildscript_with_http_infocf_manager_rest_api_post_buildscript_with_http_info(username, password, **kwargs) # noqa: E501
1114  else:
1115  (data) = self.cf_manager_rest_api_post_buildscript_with_http_infocf_manager_rest_api_post_buildscript_with_http_info(username, password, **kwargs) # noqa: E501
1116  return data
1117 
1118  def cf_manager_rest_api_post_buildscript_with_http_info(self, username, password, **kwargs): # noqa: E501
1119  """Register a new build script version # noqa: E501
1120 
1121  This method makes a synchronous HTTP request by default. To make an
1122  asynchronous HTTP request, please pass async_req=True
1123  >>> thread = api.cf_manager_rest_api_post_buildscript_with_http_info(username, password, async_req=True)
1124  >>> result = thread.get()
1125 
1126  :param async_req bool
1127  :param str username: OpenStack username (required)
1128  :param str password: OpenStack password (required)
1129  :param BuildScript body:
1130  :return: BuildScript
1131  If the method is called asynchronously,
1132  returns the request thread.
1133  """
1134 
1135  all_params = ['username', 'password', 'body'] # noqa: E501
1136  all_params.append('async_req')
1137  all_params.append('_return_http_data_only')
1138  all_params.append('_preload_content')
1139  all_params.append('_request_timeout')
1140 
1141  params = locals()
1142  for key, val in six.iteritems(params['kwargs']):
1143  if key not in all_params:
1144  raise TypeError(
1145  "Got an unexpected keyword argument '%s'"
1146  " to method cf_manager_rest_api_post_buildscript" % key
1147  )
1148  params[key] = val
1149  del params['kwargs']
1150  # verify the required parameter 'username' is set
1151  if ('username' not in params or
1152  params['username'] is None):
1153  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_buildscript`") # noqa: E501
1154  # verify the required parameter 'password' is set
1155  if ('password' not in params or
1156  params['password'] is None):
1157  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_buildscript`") # noqa: E501
1158 
1159  collection_formats = {}
1160 
1161  path_params = {}
1162 
1163  query_params = []
1164  if 'username' in params:
1165  query_params.append(('username', params['username'])) # noqa: E501
1166  if 'password' in params:
1167  query_params.append(('password', params['password'])) # noqa: E501
1168 
1169  header_params = {}
1170 
1171  form_params = []
1172  local_var_files = {}
1173 
1174  body_params = None
1175  if 'body' in params:
1176  body_params = params['body']
1177  # HTTP header `Accept`
1178  header_params['Accept'] = self.api_clientapi_client.select_header_accept(
1179  ['application/json']) # noqa: E501
1180 
1181  # HTTP header `Content-Type`
1182  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
1183  ['application/json']) # noqa: E501
1184 
1185  # Authentication setting
1186  auth_settings = [] # noqa: E501
1187 
1188  return self.api_clientapi_client.call_api(
1189  '/administration/buildscripts', 'POST',
1190  path_params,
1191  query_params,
1192  header_params,
1193  body=body_params,
1194  post_params=form_params,
1195  files=local_var_files,
1196  response_type='BuildScript', # noqa: E501
1197  auth_settings=auth_settings,
1198  async_req=params.get('async_req'),
1199  _return_http_data_only=params.get('_return_http_data_only'),
1200  _preload_content=params.get('_preload_content', True),
1201  _request_timeout=params.get('_request_timeout'),
1202  collection_formats=collection_formats)
1203 
1204  def cf_manager_rest_api_post_ippool(self, username, password, subnet_string, gateway_string, mask_string, **kwargs): # noqa: E501
1205  """Post a new `/24` ip pool (subnet) # noqa: E501
1206 
1207  Introduces a new `/24` ip pool that is available for assignment to FPGAs. For now, **only /24 subnets as ip pool** are supported, so it is enough to submit the subnet base, *e.g. `10.12.200.0`*! The submitted *gateway*, e.g. `10.12.0.1`, will be used as gateway address for all FPGAs that get an ip address out of this subnet assigned. Multiple ip pools can have the same gateway. Subnetmasks, e.g. `255.255.0.0` are used in a similar way. Hence, the subnetmask **can not** be derived from the subnet itself. Maybe it is possible that the FPGAs of a new subnet can also talk to other subnets, so the subnet mask must be submitted separately. # noqa: E501
1208  This method makes a synchronous HTTP request by default. To make an
1209  asynchronous HTTP request, please pass async_req=True
1210  >>> thread = api.cf_manager_rest_api_post_ippool(username, password, subnet_string, gateway_string, mask_string, async_req=True)
1211  >>> result = thread.get()
1212 
1213  :param async_req bool
1214  :param str username: OpenStack username (required)
1215  :param str password: OpenStack password (required)
1216  :param str subnet_string: A /24 subnet (required)
1217  :param str gateway_string: The gateway for this subnet (required)
1218  :param str mask_string: The subnetmask for this subnet (required)
1219  :return: None
1220  If the method is called asynchronously,
1221  returns the request thread.
1222  """
1223  kwargs['_return_http_data_only'] = True
1224  if kwargs.get('async_req'):
1225  return self.cf_manager_rest_api_post_ippool_with_http_infocf_manager_rest_api_post_ippool_with_http_info(username, password, subnet_string, gateway_string, mask_string, **kwargs) # noqa: E501
1226  else:
1227  (data) = self.cf_manager_rest_api_post_ippool_with_http_infocf_manager_rest_api_post_ippool_with_http_info(username, password, subnet_string, gateway_string, mask_string, **kwargs) # noqa: E501
1228  return data
1229 
1230  def cf_manager_rest_api_post_ippool_with_http_info(self, username, password, subnet_string, gateway_string, mask_string, **kwargs): # noqa: E501
1231  """Post a new `/24` ip pool (subnet) # noqa: E501
1232 
1233  Introduces a new `/24` ip pool that is available for assignment to FPGAs. For now, **only /24 subnets as ip pool** are supported, so it is enough to submit the subnet base, *e.g. `10.12.200.0`*! The submitted *gateway*, e.g. `10.12.0.1`, will be used as gateway address for all FPGAs that get an ip address out of this subnet assigned. Multiple ip pools can have the same gateway. Subnetmasks, e.g. `255.255.0.0` are used in a similar way. Hence, the subnetmask **can not** be derived from the subnet itself. Maybe it is possible that the FPGAs of a new subnet can also talk to other subnets, so the subnet mask must be submitted separately. # noqa: E501
1234  This method makes a synchronous HTTP request by default. To make an
1235  asynchronous HTTP request, please pass async_req=True
1236  >>> thread = api.cf_manager_rest_api_post_ippool_with_http_info(username, password, subnet_string, gateway_string, mask_string, async_req=True)
1237  >>> result = thread.get()
1238 
1239  :param async_req bool
1240  :param str username: OpenStack username (required)
1241  :param str password: OpenStack password (required)
1242  :param str subnet_string: A /24 subnet (required)
1243  :param str gateway_string: The gateway for this subnet (required)
1244  :param str mask_string: The subnetmask for this subnet (required)
1245  :return: None
1246  If the method is called asynchronously,
1247  returns the request thread.
1248  """
1249 
1250  all_params = ['username', 'password', 'subnet_string', 'gateway_string', 'mask_string'] # noqa: E501
1251  all_params.append('async_req')
1252  all_params.append('_return_http_data_only')
1253  all_params.append('_preload_content')
1254  all_params.append('_request_timeout')
1255 
1256  params = locals()
1257  for key, val in six.iteritems(params['kwargs']):
1258  if key not in all_params:
1259  raise TypeError(
1260  "Got an unexpected keyword argument '%s'"
1261  " to method cf_manager_rest_api_post_ippool" % key
1262  )
1263  params[key] = val
1264  del params['kwargs']
1265  # verify the required parameter 'username' is set
1266  if ('username' not in params or
1267  params['username'] is None):
1268  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_ippool`") # noqa: E501
1269  # verify the required parameter 'password' is set
1270  if ('password' not in params or
1271  params['password'] is None):
1272  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_ippool`") # noqa: E501
1273  # verify the required parameter 'subnet_string' is set
1274  if ('subnet_string' not in params or
1275  params['subnet_string'] is None):
1276  raise ValueError("Missing the required parameter `subnet_string` when calling `cf_manager_rest_api_post_ippool`") # noqa: E501
1277  # verify the required parameter 'gateway_string' is set
1278  if ('gateway_string' not in params or
1279  params['gateway_string'] is None):
1280  raise ValueError("Missing the required parameter `gateway_string` when calling `cf_manager_rest_api_post_ippool`") # noqa: E501
1281  # verify the required parameter 'mask_string' is set
1282  if ('mask_string' not in params or
1283  params['mask_string'] is None):
1284  raise ValueError("Missing the required parameter `mask_string` when calling `cf_manager_rest_api_post_ippool`") # noqa: E501
1285 
1286  collection_formats = {}
1287 
1288  path_params = {}
1289 
1290  query_params = []
1291  if 'username' in params:
1292  query_params.append(('username', params['username'])) # noqa: E501
1293  if 'password' in params:
1294  query_params.append(('password', params['password'])) # noqa: E501
1295  if 'subnet_string' in params:
1296  query_params.append(('subnet_string', params['subnet_string'])) # noqa: E501
1297  if 'gateway_string' in params:
1298  query_params.append(('gateway_string', params['gateway_string'])) # noqa: E501
1299  if 'mask_string' in params:
1300  query_params.append(('mask_string', params['mask_string'])) # noqa: E501
1301 
1302  header_params = {}
1303 
1304  form_params = []
1305  local_var_files = {}
1306 
1307  body_params = None
1308  # Authentication setting
1309  auth_settings = [] # noqa: E501
1310 
1311  return self.api_clientapi_client.call_api(
1312  '/administration/ippool/', 'POST',
1313  path_params,
1314  query_params,
1315  header_params,
1316  body=body_params,
1317  post_params=form_params,
1318  files=local_var_files,
1319  response_type=None, # noqa: E501
1320  auth_settings=auth_settings,
1321  async_req=params.get('async_req'),
1322  _return_http_data_only=params.get('_return_http_data_only'),
1323  _preload_content=params.get('_preload_content', True),
1324  _request_timeout=params.get('_request_timeout'),
1325  collection_formats=collection_formats)
1326 
1327  def cf_manager_rest_api_post_mantle_logic(self, image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
1328  """Upload a new dynamic platform logic # noqa: E501
1329 
1330  This uploads an new Image for the DYNAMIC PLATFORM LOGIC (aka FPGA PR binfile). It **must** contain the corresponding .sig file that was produced by the build. # noqa: E501
1331  This method makes a synchronous HTTP request by default. To make an
1332  asynchronous HTTP request, please pass async_req=True
1333  >>> thread = api.cf_manager_rest_api_post_mantle_logic(image_details, bin_file, sig_file, pr_verify_rpt, username, password, async_req=True)
1334  >>> result = thread.get()
1335 
1336  :param async_req bool
1337  :param str image_details: (required)
1338  :param str bin_file: (required)
1339  :param str sig_file: (required)
1340  :param str pr_verify_rpt: (required)
1341  :param str username: OpenStack username (required)
1342  :param str password: OpenStack password (required)
1343  :return: None
1344  If the method is called asynchronously,
1345  returns the request thread.
1346  """
1347  kwargs['_return_http_data_only'] = True
1348  if kwargs.get('async_req'):
1349  return self.cf_manager_rest_api_post_mantle_logic_with_http_infocf_manager_rest_api_post_mantle_logic_with_http_info(image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
1350  else:
1351  (data) = self.cf_manager_rest_api_post_mantle_logic_with_http_infocf_manager_rest_api_post_mantle_logic_with_http_info(image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
1352  return data
1353 
1354  def cf_manager_rest_api_post_mantle_logic_with_http_info(self, image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
1355  """Upload a new dynamic platform logic # noqa: E501
1356 
1357  This uploads an new Image for the DYNAMIC PLATFORM LOGIC (aka FPGA PR binfile). It **must** contain the corresponding .sig file that was produced by the build. # noqa: E501
1358  This method makes a synchronous HTTP request by default. To make an
1359  asynchronous HTTP request, please pass async_req=True
1360  >>> thread = api.cf_manager_rest_api_post_mantle_logic_with_http_info(image_details, bin_file, sig_file, pr_verify_rpt, username, password, async_req=True)
1361  >>> result = thread.get()
1362 
1363  :param async_req bool
1364  :param str image_details: (required)
1365  :param str bin_file: (required)
1366  :param str sig_file: (required)
1367  :param str pr_verify_rpt: (required)
1368  :param str username: OpenStack username (required)
1369  :param str password: OpenStack password (required)
1370  :return: None
1371  If the method is called asynchronously,
1372  returns the request thread.
1373  """
1374 
1375  all_params = ['image_details', 'bin_file', 'sig_file', 'pr_verify_rpt', 'username', 'password'] # noqa: E501
1376  all_params.append('async_req')
1377  all_params.append('_return_http_data_only')
1378  all_params.append('_preload_content')
1379  all_params.append('_request_timeout')
1380 
1381  params = locals()
1382  for key, val in six.iteritems(params['kwargs']):
1383  if key not in all_params:
1384  raise TypeError(
1385  "Got an unexpected keyword argument '%s'"
1386  " to method cf_manager_rest_api_post_mantle_logic" % key
1387  )
1388  params[key] = val
1389  del params['kwargs']
1390  # verify the required parameter 'image_details' is set
1391  if ('image_details' not in params or
1392  params['image_details'] is None):
1393  raise ValueError("Missing the required parameter `image_details` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1394  # verify the required parameter 'bin_file' is set
1395  if ('bin_file' not in params or
1396  params['bin_file'] is None):
1397  raise ValueError("Missing the required parameter `bin_file` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1398  # verify the required parameter 'sig_file' is set
1399  if ('sig_file' not in params or
1400  params['sig_file'] is None):
1401  raise ValueError("Missing the required parameter `sig_file` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1402  # verify the required parameter 'pr_verify_rpt' is set
1403  if ('pr_verify_rpt' not in params or
1404  params['pr_verify_rpt'] is None):
1405  raise ValueError("Missing the required parameter `pr_verify_rpt` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1406  # verify the required parameter 'username' is set
1407  if ('username' not in params or
1408  params['username'] is None):
1409  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1410  # verify the required parameter 'password' is set
1411  if ('password' not in params or
1412  params['password'] is None):
1413  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_mantle_logic`") # noqa: E501
1414 
1415  collection_formats = {}
1416 
1417  path_params = {}
1418 
1419  query_params = []
1420  if 'username' in params:
1421  query_params.append(('username', params['username'])) # noqa: E501
1422  if 'password' in params:
1423  query_params.append(('password', params['password'])) # noqa: E501
1424 
1425  header_params = {}
1426 
1427  form_params = []
1428  local_var_files = {}
1429  if 'image_details' in params:
1430  form_params.append(('image_details', params['image_details'])) # noqa: E501
1431  if 'bin_file' in params:
1432  local_var_files['bin_file'] = params['bin_file'] # noqa: E501
1433  if 'sig_file' in params:
1434  local_var_files['sig_file'] = params['sig_file'] # noqa: E501
1435  if 'pr_verify_rpt' in params:
1436  local_var_files['pr_verify_rpt'] = params['pr_verify_rpt'] # noqa: E501
1437 
1438  body_params = None
1439  # HTTP header `Content-Type`
1440  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
1441  ['multipart/form-data']) # noqa: E501
1442 
1443  # Authentication setting
1444  auth_settings = [] # noqa: E501
1445 
1446  return self.api_clientapi_client.call_api(
1447  '/administration/mantle_logic', 'POST',
1448  path_params,
1449  query_params,
1450  header_params,
1451  body=body_params,
1452  post_params=form_params,
1453  files=local_var_files,
1454  response_type=None, # noqa: E501
1455  auth_settings=auth_settings,
1456  async_req=params.get('async_req'),
1457  _return_http_data_only=params.get('_return_http_data_only'),
1458  _preload_content=params.get('_preload_content', True),
1459  _request_timeout=params.get('_request_timeout'),
1460  collection_formats=collection_formats)
1461 
1462  def cf_manager_rest_api_post_platform_logic(self, image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
1463  """Upload a new platform logic # noqa: E501
1464 
1465  This uploads an new Image for the STATIC PLATFORM LOGIC (aka FPGA bitfile and flash mcsfile) and the corresponding dcp, for app / mantle builds. It also **must** contain the corresponding admin.sig file that was produced by the build. # noqa: E501
1466  This method makes a synchronous HTTP request by default. To make an
1467  asynchronous HTTP request, please pass async_req=True
1468  >>> thread = api.cf_manager_rest_api_post_platform_logic(image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, async_req=True)
1469  >>> result = thread.get()
1470 
1471  :param async_req bool
1472  :param str image_details: (required)
1473  :param str dcp_file: (required)
1474  :param str bit_file: (required)
1475  :param str mcs_file: (required)
1476  :param str sig_file: (required)
1477  :param str pr_verify_rpt: (required)
1478  :param str username: OpenStack username (required)
1479  :param str password: OpenStack password (required)
1480  :return: None
1481  If the method is called asynchronously,
1482  returns the request thread.
1483  """
1484  kwargs['_return_http_data_only'] = True
1485  if kwargs.get('async_req'):
1486  return self.cf_manager_rest_api_post_platform_logic_with_http_infocf_manager_rest_api_post_platform_logic_with_http_info(image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
1487  else:
1488  (data) = self.cf_manager_rest_api_post_platform_logic_with_http_infocf_manager_rest_api_post_platform_logic_with_http_info(image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs) # noqa: E501
1489  return data
1490 
1491  def cf_manager_rest_api_post_platform_logic_with_http_info(self, image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs): # noqa: E501
1492  """Upload a new platform logic # noqa: E501
1493 
1494  This uploads an new Image for the STATIC PLATFORM LOGIC (aka FPGA bitfile and flash mcsfile) and the corresponding dcp, for app / mantle builds. It also **must** contain the corresponding admin.sig file that was produced by the build. # noqa: E501
1495  This method makes a synchronous HTTP request by default. To make an
1496  asynchronous HTTP request, please pass async_req=True
1497  >>> thread = api.cf_manager_rest_api_post_platform_logic_with_http_info(image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, async_req=True)
1498  >>> result = thread.get()
1499 
1500  :param async_req bool
1501  :param str image_details: (required)
1502  :param str dcp_file: (required)
1503  :param str bit_file: (required)
1504  :param str mcs_file: (required)
1505  :param str sig_file: (required)
1506  :param str pr_verify_rpt: (required)
1507  :param str username: OpenStack username (required)
1508  :param str password: OpenStack password (required)
1509  :return: None
1510  If the method is called asynchronously,
1511  returns the request thread.
1512  """
1513 
1514  all_params = ['image_details', 'dcp_file', 'bit_file', 'mcs_file', 'sig_file', 'pr_verify_rpt', 'username', 'password'] # noqa: E501
1515  all_params.append('async_req')
1516  all_params.append('_return_http_data_only')
1517  all_params.append('_preload_content')
1518  all_params.append('_request_timeout')
1519 
1520  params = locals()
1521  for key, val in six.iteritems(params['kwargs']):
1522  if key not in all_params:
1523  raise TypeError(
1524  "Got an unexpected keyword argument '%s'"
1525  " to method cf_manager_rest_api_post_platform_logic" % key
1526  )
1527  params[key] = val
1528  del params['kwargs']
1529  # verify the required parameter 'image_details' is set
1530  if ('image_details' not in params or
1531  params['image_details'] is None):
1532  raise ValueError("Missing the required parameter `image_details` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1533  # verify the required parameter 'dcp_file' is set
1534  if ('dcp_file' not in params or
1535  params['dcp_file'] is None):
1536  raise ValueError("Missing the required parameter `dcp_file` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1537  # verify the required parameter 'bit_file' is set
1538  if ('bit_file' not in params or
1539  params['bit_file'] is None):
1540  raise ValueError("Missing the required parameter `bit_file` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1541  # verify the required parameter 'mcs_file' is set
1542  if ('mcs_file' not in params or
1543  params['mcs_file'] is None):
1544  raise ValueError("Missing the required parameter `mcs_file` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1545  # verify the required parameter 'sig_file' is set
1546  if ('sig_file' not in params or
1547  params['sig_file'] is None):
1548  raise ValueError("Missing the required parameter `sig_file` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1549  # verify the required parameter 'pr_verify_rpt' is set
1550  if ('pr_verify_rpt' not in params or
1551  params['pr_verify_rpt'] is None):
1552  raise ValueError("Missing the required parameter `pr_verify_rpt` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1553  # verify the required parameter 'username' is set
1554  if ('username' not in params or
1555  params['username'] is None):
1556  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1557  # verify the required parameter 'password' is set
1558  if ('password' not in params or
1559  params['password'] is None):
1560  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_post_platform_logic`") # noqa: E501
1561 
1562  collection_formats = {}
1563 
1564  path_params = {}
1565 
1566  query_params = []
1567  if 'username' in params:
1568  query_params.append(('username', params['username'])) # noqa: E501
1569  if 'password' in params:
1570  query_params.append(('password', params['password'])) # noqa: E501
1571 
1572  header_params = {}
1573 
1574  form_params = []
1575  local_var_files = {}
1576  if 'image_details' in params:
1577  form_params.append(('image_details', params['image_details'])) # noqa: E501
1578  if 'dcp_file' in params:
1579  local_var_files['dcp_file'] = params['dcp_file'] # noqa: E501
1580  if 'bit_file' in params:
1581  local_var_files['bit_file'] = params['bit_file'] # noqa: E501
1582  if 'mcs_file' in params:
1583  local_var_files['mcs_file'] = params['mcs_file'] # noqa: E501
1584  if 'sig_file' in params:
1585  local_var_files['sig_file'] = params['sig_file'] # noqa: E501
1586  if 'pr_verify_rpt' in params:
1587  local_var_files['pr_verify_rpt'] = params['pr_verify_rpt'] # noqa: E501
1588 
1589  body_params = None
1590  # HTTP header `Content-Type`
1591  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
1592  ['multipart/form-data']) # noqa: E501
1593 
1594  # Authentication setting
1595  auth_settings = [] # noqa: E501
1596 
1597  return self.api_clientapi_client.call_api(
1598  '/administration/platform_logic', 'POST',
1599  path_params,
1600  query_params,
1601  header_params,
1602  body=body_params,
1603  post_params=form_params,
1604  files=local_var_files,
1605  response_type=None, # noqa: E501
1606  auth_settings=auth_settings,
1607  async_req=params.get('async_req'),
1608  _return_http_data_only=params.get('_return_http_data_only'),
1609  _preload_content=params.get('_preload_content', True),
1610  _request_timeout=params.get('_request_timeout'),
1611  collection_formats=collection_formats)
1612 
1613  def cf_manager_rest_api_put_buildscript(self, username, password, bs_id, **kwargs): # noqa: E501
1614  """Update a registered build script # noqa: E501
1615 
1616  This method makes a synchronous HTTP request by default. To make an
1617  asynchronous HTTP request, please pass async_req=True
1618  >>> thread = api.cf_manager_rest_api_put_buildscript(username, password, bs_id, async_req=True)
1619  >>> result = thread.get()
1620 
1621  :param async_req bool
1622  :param str username: OpenStack username (required)
1623  :param str password: OpenStack password (required)
1624  :param int bs_id: ID of a registered build script (required)
1625  :param BuildScript body:
1626  :return: None
1627  If the method is called asynchronously,
1628  returns the request thread.
1629  """
1630  kwargs['_return_http_data_only'] = True
1631  if kwargs.get('async_req'):
1632  return self.cf_manager_rest_api_put_buildscript_with_http_infocf_manager_rest_api_put_buildscript_with_http_info(username, password, bs_id, **kwargs) # noqa: E501
1633  else:
1634  (data) = self.cf_manager_rest_api_put_buildscript_with_http_infocf_manager_rest_api_put_buildscript_with_http_info(username, password, bs_id, **kwargs) # noqa: E501
1635  return data
1636 
1637  def cf_manager_rest_api_put_buildscript_with_http_info(self, username, password, bs_id, **kwargs): # noqa: E501
1638  """Update a registered build script # noqa: E501
1639 
1640  This method makes a synchronous HTTP request by default. To make an
1641  asynchronous HTTP request, please pass async_req=True
1642  >>> thread = api.cf_manager_rest_api_put_buildscript_with_http_info(username, password, bs_id, async_req=True)
1643  >>> result = thread.get()
1644 
1645  :param async_req bool
1646  :param str username: OpenStack username (required)
1647  :param str password: OpenStack password (required)
1648  :param int bs_id: ID of a registered build script (required)
1649  :param BuildScript body:
1650  :return: None
1651  If the method is called asynchronously,
1652  returns the request thread.
1653  """
1654 
1655  all_params = ['username', 'password', 'bs_id', 'body'] # noqa: E501
1656  all_params.append('async_req')
1657  all_params.append('_return_http_data_only')
1658  all_params.append('_preload_content')
1659  all_params.append('_request_timeout')
1660 
1661  params = locals()
1662  for key, val in six.iteritems(params['kwargs']):
1663  if key not in all_params:
1664  raise TypeError(
1665  "Got an unexpected keyword argument '%s'"
1666  " to method cf_manager_rest_api_put_buildscript" % key
1667  )
1668  params[key] = val
1669  del params['kwargs']
1670  # verify the required parameter 'username' is set
1671  if ('username' not in params or
1672  params['username'] is None):
1673  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_put_buildscript`") # noqa: E501
1674  # verify the required parameter 'password' is set
1675  if ('password' not in params or
1676  params['password'] is None):
1677  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_put_buildscript`") # noqa: E501
1678  # verify the required parameter 'bs_id' is set
1679  if ('bs_id' not in params or
1680  params['bs_id'] is None):
1681  raise ValueError("Missing the required parameter `bs_id` when calling `cf_manager_rest_api_put_buildscript`") # noqa: E501
1682 
1683  collection_formats = {}
1684 
1685  path_params = {}
1686  if 'bs_id' in params:
1687  path_params['bs_id'] = params['bs_id'] # noqa: E501
1688 
1689  query_params = []
1690  if 'username' in params:
1691  query_params.append(('username', params['username'])) # noqa: E501
1692  if 'password' in params:
1693  query_params.append(('password', params['password'])) # noqa: E501
1694 
1695  header_params = {}
1696 
1697  form_params = []
1698  local_var_files = {}
1699 
1700  body_params = None
1701  if 'body' in params:
1702  body_params = params['body']
1703  # HTTP header `Content-Type`
1704  header_params['Content-Type'] = self.api_clientapi_client.select_header_content_type( # noqa: E501
1705  ['application/json']) # noqa: E501
1706 
1707  # Authentication setting
1708  auth_settings = [] # noqa: E501
1709 
1710  return self.api_clientapi_client.call_api(
1711  '/administration/buildscripts/{bs_id}', 'PUT',
1712  path_params,
1713  query_params,
1714  header_params,
1715  body=body_params,
1716  post_params=form_params,
1717  files=local_var_files,
1718  response_type=None, # noqa: E501
1719  auth_settings=auth_settings,
1720  async_req=params.get('async_req'),
1721  _return_http_data_only=params.get('_return_http_data_only'),
1722  _preload_content=params.get('_preload_content', True),
1723  _request_timeout=params.get('_request_timeout'),
1724  collection_formats=collection_formats)
1725 
1726  def cf_manager_rest_api_put_composable_logic_status(self, username, password, cl_id, new_status, **kwargs): # noqa: E501
1727  """Update status of a composable logic # noqa: E501
1728 
1729  This call changes the status of a composable logic, to reflect the CL lifecycle (see doc). If the status is changed to DEPRECATED or DISCHARGED, all resources are checked if some still use this CL. If yes, a warning is issued and the list of affected resources returned (response 202). Currently, *only* the status can be changed, since all the other properties of a CL are considered static and if they should be changed, it is better to upload a new CL. # noqa: E501
1730  This method makes a synchronous HTTP request by default. To make an
1731  asynchronous HTTP request, please pass async_req=True
1732  >>> thread = api.cf_manager_rest_api_put_composable_logic_status(username, password, cl_id, new_status, async_req=True)
1733  >>> result = thread.get()
1734 
1735  :param async_req bool
1736  :param str username: OpenStack username (required)
1737  :param str password: OpenStack password (required)
1738  :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
1739  :param str new_status: New status of the composable logic (required)
1740  :return: None
1741  If the method is called asynchronously,
1742  returns the request thread.
1743  """
1744  kwargs['_return_http_data_only'] = True
1745  if kwargs.get('async_req'):
1746  return self.cf_manager_rest_api_put_composable_logic_status_with_http_infocf_manager_rest_api_put_composable_logic_status_with_http_info(username, password, cl_id, new_status, **kwargs) # noqa: E501
1747  else:
1748  (data) = self.cf_manager_rest_api_put_composable_logic_status_with_http_infocf_manager_rest_api_put_composable_logic_status_with_http_info(username, password, cl_id, new_status, **kwargs) # noqa: E501
1749  return data
1750 
1751  def cf_manager_rest_api_put_composable_logic_status_with_http_info(self, username, password, cl_id, new_status, **kwargs): # noqa: E501
1752  """Update status of a composable logic # noqa: E501
1753 
1754  This call changes the status of a composable logic, to reflect the CL lifecycle (see doc). If the status is changed to DEPRECATED or DISCHARGED, all resources are checked if some still use this CL. If yes, a warning is issued and the list of affected resources returned (response 202). Currently, *only* the status can be changed, since all the other properties of a CL are considered static and if they should be changed, it is better to upload a new CL. # noqa: E501
1755  This method makes a synchronous HTTP request by default. To make an
1756  asynchronous HTTP request, please pass async_req=True
1757  >>> thread = api.cf_manager_rest_api_put_composable_logic_status_with_http_info(username, password, cl_id, new_status, async_req=True)
1758  >>> result = thread.get()
1759 
1760  :param async_req bool
1761  :param str username: OpenStack username (required)
1762  :param str password: OpenStack password (required)
1763  :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
1764  :param str new_status: New status of the composable logic (required)
1765  :return: None
1766  If the method is called asynchronously,
1767  returns the request thread.
1768  """
1769 
1770  all_params = ['username', 'password', 'cl_id', 'new_status'] # noqa: E501
1771  all_params.append('async_req')
1772  all_params.append('_return_http_data_only')
1773  all_params.append('_preload_content')
1774  all_params.append('_request_timeout')
1775 
1776  params = locals()
1777  for key, val in six.iteritems(params['kwargs']):
1778  if key not in all_params:
1779  raise TypeError(
1780  "Got an unexpected keyword argument '%s'"
1781  " to method cf_manager_rest_api_put_composable_logic_status" % key
1782  )
1783  params[key] = val
1784  del params['kwargs']
1785  # verify the required parameter 'username' is set
1786  if ('username' not in params or
1787  params['username'] is None):
1788  raise ValueError("Missing the required parameter `username` when calling `cf_manager_rest_api_put_composable_logic_status`") # noqa: E501
1789  # verify the required parameter 'password' is set
1790  if ('password' not in params or
1791  params['password'] is None):
1792  raise ValueError("Missing the required parameter `password` when calling `cf_manager_rest_api_put_composable_logic_status`") # noqa: E501
1793  # verify the required parameter 'cl_id' is set
1794  if ('cl_id' not in params or
1795  params['cl_id'] is None):
1796  raise ValueError("Missing the required parameter `cl_id` when calling `cf_manager_rest_api_put_composable_logic_status`") # noqa: E501
1797  # verify the required parameter 'new_status' is set
1798  if ('new_status' not in params or
1799  params['new_status'] is None):
1800  raise ValueError("Missing the required parameter `new_status` when calling `cf_manager_rest_api_put_composable_logic_status`") # noqa: E501
1801 
1802  collection_formats = {}
1803 
1804  path_params = {}
1805  if 'cl_id' in params:
1806  path_params['cl_id'] = params['cl_id'] # noqa: E501
1807 
1808  query_params = []
1809  if 'username' in params:
1810  query_params.append(('username', params['username'])) # noqa: E501
1811  if 'password' in params:
1812  query_params.append(('password', params['password'])) # noqa: E501
1813  if 'new_status' in params:
1814  query_params.append(('new_status', params['new_status'])) # noqa: E501
1815 
1816  header_params = {}
1817 
1818  form_params = []
1819  local_var_files = {}
1820 
1821  body_params = None
1822  # Authentication setting
1823  auth_settings = [] # noqa: E501
1824 
1825  return self.api_clientapi_client.call_api(
1826  '/administration/composablelogic/{cl_id}/status/', 'PUT',
1827  path_params,
1828  query_params,
1829  header_params,
1830  body=body_params,
1831  post_params=form_params,
1832  files=local_var_files,
1833  response_type=None, # noqa: E501
1834  auth_settings=auth_settings,
1835  async_req=params.get('async_req'),
1836  _return_http_data_only=params.get('_return_http_data_only'),
1837  _preload_content=params.get('_preload_content', True),
1838  _request_timeout=params.get('_request_timeout'),
1839  collection_formats=collection_formats)
def cf_manager_rest_api_post_ippool(self, username, password, subnet_string, gateway_string, mask_string, **kwargs)
def cf_manager_rest_api_post_mantle_logic_with_http_info(self, image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs)
def cf_manager_rest_api_post_platform_logic_with_http_info(self, image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs)
def cf_manager_rest_api_post_platform_logic(self, image_details, dcp_file, bit_file, mcs_file, sig_file, pr_verify_rpt, username, password, **kwargs)
def cf_manager_rest_api_admin_test_instance_with_http_info(self, username, password, instance_id, image_id, **kwargs)
def cf_manager_rest_api_post_mantle_logic(self, image_details, bin_file, sig_file, pr_verify_rpt, username, password, **kwargs)
def cf_manager_rest_api_post_ippool_with_http_info(self, username, password, subnet_string, gateway_string, mask_string, **kwargs)