4 cloudFPGA Resource Manager API
6 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8 OpenAPI spec version: 0.8
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
13 from __future__
import absolute_import
20 from swagger_client.api_client
import ApiClient
24 """NOTE: This class is auto generated by the swagger code generator program.
26 Do not edit the class manually.
27 Ref: https://github.com/swagger-api/swagger-codegen
31 if api_client
is None:
36 """Test the instance **if not used** # noqa: E501
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()
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.
54 kwargs[
'_return_http_data_only'] =
True
55 if kwargs.get(
'async_req'):
62 """Test the instance **if not used** # noqa: E501
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()
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.
81 all_params = [
'username',
'password',
'instance_id',
'image_id',
'dont_verify_memory']
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')
88 for key, val
in six.iteritems(params[
'kwargs']):
89 if key
not in all_params:
91 "Got an unexpected keyword argument '%s'"
92 " to method cf_manager_rest_api_admin_test_instance" % key
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`")
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`")
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`")
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`")
113 collection_formats = {}
116 if 'instance_id' in params:
117 path_params[
'instance_id'] = params[
'instance_id']
120 if 'username' in params:
121 query_params.append((
'username', params[
'username']))
122 if 'password' in params:
123 query_params.append((
'password', params[
'password']))
124 if 'image_id' in params:
125 query_params.append((
'image_id', params[
'image_id']))
126 if 'dont_verify_memory' in params:
127 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
136 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
137 [
'application/json'])
143 '/administration/test_instance/{instance_id}',
'PUT',
148 post_params=form_params,
149 files=local_var_files,
150 response_type=
'InlineResponse2001',
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)
159 """Update the flash of a resource **if not used** # noqa: E501
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()
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)
173 If the method is called asynchronously,
174 returns the request thread.
176 kwargs[
'_return_http_data_only'] =
True
177 if kwargs.get(
'async_req'):
184 """Update the flash of a resource **if not used** # noqa: E501
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()
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)
198 If the method is called asynchronously,
199 returns the request thread.
202 all_params = [
'username',
'password',
'resource_id',
'pl_id']
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')
209 for key, val
in six.iteritems(params[
'kwargs']):
210 if key
not in all_params:
212 "Got an unexpected keyword argument '%s'"
213 " to method cf_manager_rest_api_admin_update_flash" % key
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`")
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`")
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`")
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`")
234 collection_formats = {}
237 if 'resource_id' in params:
238 path_params[
'resource_id'] = params[
'resource_id']
241 if 'username' in params:
242 query_params.append((
'username', params[
'username']))
243 if 'password' in params:
244 query_params.append((
'password', params[
'password']))
245 if 'pl_id' in params:
246 query_params.append((
'pl_id', params[
'pl_id']))
255 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
256 [
'application/json'])
262 '/administration/update_flash/{resource_id}',
'PUT',
267 post_params=form_params,
268 files=local_var_files,
269 response_type=
'Resource',
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)
278 """Remove a /24 subnet # noqa: E501
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()
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)
291 If the method is called asynchronously,
292 returns the request thread.
294 kwargs[
'_return_http_data_only'] =
True
295 if kwargs.get(
'async_req'):
302 """Remove a /24 subnet # noqa: E501
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()
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)
315 If the method is called asynchronously,
316 returns the request thread.
319 all_params = [
'username',
'password',
'subnet_string']
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')
326 for key, val
in six.iteritems(params[
'kwargs']):
327 if key
not in all_params:
329 "Got an unexpected keyword argument '%s'"
330 " to method cf_manager_rest_api_delete_ippool" % key
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`")
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`")
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`")
347 collection_formats = {}
352 if 'username' in params:
353 query_params.append((
'username', params[
'username']))
354 if 'password' in params:
355 query_params.append((
'password', params[
'password']))
356 if 'subnet_string' in params:
357 query_params.append((
'subnet_string', params[
'subnet_string']))
369 '/administration/ippool/',
'DELETE',
374 post_params=form_params,
375 files=local_var_files,
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)
385 """Get list of all composable logic # noqa: E501
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()
393 :param async_req bool
394 :param str username: OpenStack username (required)
395 :param str password: OpenStack password (required)
397 If the method is called asynchronously,
398 returns the request thread.
400 kwargs[
'_return_http_data_only'] =
True
401 if kwargs.get(
'async_req'):
408 """Get list of all composable logic # noqa: E501
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()
416 :param async_req bool
417 :param str username: OpenStack username (required)
418 :param str password: OpenStack password (required)
420 If the method is called asynchronously,
421 returns the request thread.
424 all_params = [
'username',
'password']
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')
431 for key, val
in six.iteritems(params[
'kwargs']):
432 if key
not in all_params:
434 "Got an unexpected keyword argument '%s'"
435 " to method cf_manager_rest_api_get_all_composable_logic" % key
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`")
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`")
448 collection_formats = {}
453 if 'username' in params:
454 query_params.append((
'username', params[
'username']))
455 if 'password' in params:
456 query_params.append((
'password', params[
'password']))
468 '/administration/composablelogic/all/',
'GET',
473 post_params=form_params,
474 files=local_var_files,
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)
484 """Get all registered build script versions # noqa: E501
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()
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.
498 kwargs[
'_return_http_data_only'] =
True
499 if kwargs.get(
'async_req'):
506 """Get all registered build script versions # noqa: E501
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()
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.
521 all_params = [
'username',
'password']
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')
528 for key, val
in six.iteritems(params[
'kwargs']):
529 if key
not in all_params:
531 "Got an unexpected keyword argument '%s'"
532 " to method cf_manager_rest_api_get_buildscripts_all" % key
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`")
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`")
545 collection_formats = {}
550 if 'username' in params:
551 query_params.append((
'username', params[
'username']))
552 if 'password' in params:
553 query_params.append((
'password', params[
'password']))
562 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
563 [
'application/json'])
569 '/administration/buildscripts',
'GET',
574 post_params=form_params,
575 files=local_var_files,
576 response_type=
'list[BuildScript]',
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)
585 """Get all ip addresses in the current pool # noqa: E501
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()
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.
600 kwargs[
'_return_http_data_only'] =
True
601 if kwargs.get(
'async_req'):
608 """Get all ip addresses in the current pool # noqa: E501
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()
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.
624 all_params = [
'username',
'password']
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')
631 for key, val
in six.iteritems(params[
'kwargs']):
632 if key
not in all_params:
634 "Got an unexpected keyword argument '%s'"
635 " to method cf_manager_rest_api_get_ippool" % key
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`")
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`")
648 collection_formats = {}
653 if 'username' in params:
654 query_params.append((
'username', params[
'username']))
655 if 'password' in params:
656 query_params.append((
'password', params[
'password']))
665 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
666 [
'application/json'])
672 '/administration/ippool/',
'GET',
677 post_params=form_params,
678 files=local_var_files,
679 response_type=
'list[InlineResponse200]',
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)
688 """Get all mantle logics # noqa: E501
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()
695 :param async_req bool
696 :param str username: OpenStack username (required)
697 :param str password: OpenStack password (required)
699 If the method is called asynchronously,
700 returns the request thread.
702 kwargs[
'_return_http_data_only'] =
True
703 if kwargs.get(
'async_req'):
710 """Get all mantle logics # noqa: E501
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()
717 :param async_req bool
718 :param str username: OpenStack username (required)
719 :param str password: OpenStack password (required)
721 If the method is called asynchronously,
722 returns the request thread.
725 all_params = [
'username',
'password']
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')
732 for key, val
in six.iteritems(params[
'kwargs']):
733 if key
not in all_params:
735 "Got an unexpected keyword argument '%s'"
736 " to method cf_manager_rest_api_get_mantle_logic_all" % key
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`")
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`")
749 collection_formats = {}
754 if 'username' in params:
755 query_params.append((
'username', params[
'username']))
756 if 'password' in params:
757 query_params.append((
'password', params[
'password']))
769 '/administration/mantle_logic',
'GET',
774 post_params=form_params,
775 files=local_var_files,
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)
785 """Get all platform logics # noqa: E501
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()
792 :param async_req bool
793 :param str username: OpenStack username (required)
794 :param str password: OpenStack password (required)
796 If the method is called asynchronously,
797 returns the request thread.
799 kwargs[
'_return_http_data_only'] =
True
800 if kwargs.get(
'async_req'):
807 """Get all platform logics # noqa: E501
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()
814 :param async_req bool
815 :param str username: OpenStack username (required)
816 :param str password: OpenStack password (required)
818 If the method is called asynchronously,
819 returns the request thread.
822 all_params = [
'username',
'password']
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')
829 for key, val
in six.iteritems(params[
'kwargs']):
830 if key
not in all_params:
832 "Got an unexpected keyword argument '%s'"
833 " to method cf_manager_rest_api_get_platform_logic_all" % key
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`")
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`")
846 collection_formats = {}
851 if 'username' in params:
852 query_params.append((
'username', params[
'username']))
853 if 'password' in params:
854 query_params.append((
'password', params[
'password']))
866 '/administration/platform_logic',
'GET',
871 post_params=form_params,
872 files=local_var_files,
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)
882 """Get details of one registered build script # noqa: E501
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()
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)
894 If the method is called asynchronously,
895 returns the request thread.
897 kwargs[
'_return_http_data_only'] =
True
898 if kwargs.get(
'async_req'):
905 """Get details of one registered build script # noqa: E501
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()
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)
917 If the method is called asynchronously,
918 returns the request thread.
921 all_params = [
'username',
'password',
'bs_id']
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')
928 for key, val
in six.iteritems(params[
'kwargs']):
929 if key
not in all_params:
931 "Got an unexpected keyword argument '%s'"
932 " to method cf_manager_rest_api_get_single_buildscript" % key
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`")
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`")
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`")
949 collection_formats = {}
952 if 'bs_id' in params:
953 path_params[
'bs_id'] = params[
'bs_id']
956 if 'username' in params:
957 query_params.append((
'username', params[
'username']))
958 if 'password' in params:
959 query_params.append((
'password', params[
'password']))
968 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
969 [
'application/json'])
975 '/administration/buildscripts/{bs_id}',
'GET',
980 post_params=form_params,
981 files=local_var_files,
982 response_type=
'BuildScript',
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)
991 """Get details of one composable logic # noqa: E501
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()
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)
1003 If the method is called asynchronously,
1004 returns the request thread.
1006 kwargs[
'_return_http_data_only'] =
True
1007 if kwargs.get(
'async_req'):
1014 """Get details of one composable logic # noqa: E501
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()
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)
1026 If the method is called asynchronously,
1027 returns the request thread.
1030 all_params = [
'username',
'password',
'cl_id']
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')
1037 for key, val
in six.iteritems(params[
'kwargs']):
1038 if key
not in all_params:
1040 "Got an unexpected keyword argument '%s'"
1041 " to method cf_manager_rest_api_get_single_composable_logic" % key
1044 del params[
'kwargs']
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`")
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`")
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`")
1058 collection_formats = {}
1061 if 'cl_id' in params:
1062 path_params[
'cl_id'] = params[
'cl_id']
1065 if 'username' in params:
1066 query_params.append((
'username', params[
'username']))
1067 if 'password' in params:
1068 query_params.append((
'password', params[
'password']))
1073 local_var_files = {}
1080 '/administration/composablelogic/{cl_id}/',
'GET',
1085 post_params=form_params,
1086 files=local_var_files,
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)
1096 """Register a new build script version # noqa: E501
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()
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.
1111 kwargs[
'_return_http_data_only'] =
True
1112 if kwargs.get(
'async_req'):
1119 """Register a new build script version # noqa: E501
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()
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.
1135 all_params = [
'username',
'password',
'body']
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')
1142 for key, val
in six.iteritems(params[
'kwargs']):
1143 if key
not in all_params:
1145 "Got an unexpected keyword argument '%s'"
1146 " to method cf_manager_rest_api_post_buildscript" % key
1149 del params[
'kwargs']
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`")
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`")
1159 collection_formats = {}
1164 if 'username' in params:
1165 query_params.append((
'username', params[
'username']))
1166 if 'password' in params:
1167 query_params.append((
'password', params[
'password']))
1172 local_var_files = {}
1175 if 'body' in params:
1176 body_params = params[
'body']
1178 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
1179 [
'application/json'])
1182 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
1183 [
'application/json'])
1189 '/administration/buildscripts',
'POST',
1194 post_params=form_params,
1195 files=local_var_files,
1196 response_type=
'BuildScript',
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)
1205 """Post a new `/24` ip pool (subnet) # noqa: E501
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()
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)
1220 If the method is called asynchronously,
1221 returns the request thread.
1223 kwargs[
'_return_http_data_only'] =
True
1224 if kwargs.get(
'async_req'):
1231 """Post a new `/24` ip pool (subnet) # noqa: E501
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()
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)
1246 If the method is called asynchronously,
1247 returns the request thread.
1250 all_params = [
'username',
'password',
'subnet_string',
'gateway_string',
'mask_string']
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')
1257 for key, val
in six.iteritems(params[
'kwargs']):
1258 if key
not in all_params:
1260 "Got an unexpected keyword argument '%s'"
1261 " to method cf_manager_rest_api_post_ippool" % key
1264 del params[
'kwargs']
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`")
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`")
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`")
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`")
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`")
1286 collection_formats = {}
1291 if 'username' in params:
1292 query_params.append((
'username', params[
'username']))
1293 if 'password' in params:
1294 query_params.append((
'password', params[
'password']))
1295 if 'subnet_string' in params:
1296 query_params.append((
'subnet_string', params[
'subnet_string']))
1297 if 'gateway_string' in params:
1298 query_params.append((
'gateway_string', params[
'gateway_string']))
1299 if 'mask_string' in params:
1300 query_params.append((
'mask_string', params[
'mask_string']))
1305 local_var_files = {}
1312 '/administration/ippool/',
'POST',
1317 post_params=form_params,
1318 files=local_var_files,
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)
1328 """Upload a new dynamic platform logic # noqa: E501
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()
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)
1344 If the method is called asynchronously,
1345 returns the request thread.
1347 kwargs[
'_return_http_data_only'] =
True
1348 if kwargs.get(
'async_req'):
1355 """Upload a new dynamic platform logic # noqa: E501
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()
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)
1371 If the method is called asynchronously,
1372 returns the request thread.
1375 all_params = [
'image_details',
'bin_file',
'sig_file',
'pr_verify_rpt',
'username',
'password']
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')
1382 for key, val
in six.iteritems(params[
'kwargs']):
1383 if key
not in all_params:
1385 "Got an unexpected keyword argument '%s'"
1386 " to method cf_manager_rest_api_post_mantle_logic" % key
1389 del params[
'kwargs']
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`")
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`")
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`")
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`")
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`")
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`")
1415 collection_formats = {}
1420 if 'username' in params:
1421 query_params.append((
'username', params[
'username']))
1422 if 'password' in params:
1423 query_params.append((
'password', params[
'password']))
1428 local_var_files = {}
1429 if 'image_details' in params:
1430 form_params.append((
'image_details', params[
'image_details']))
1431 if 'bin_file' in params:
1432 local_var_files[
'bin_file'] = params[
'bin_file']
1433 if 'sig_file' in params:
1434 local_var_files[
'sig_file'] = params[
'sig_file']
1435 if 'pr_verify_rpt' in params:
1436 local_var_files[
'pr_verify_rpt'] = params[
'pr_verify_rpt']
1440 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
1441 [
'multipart/form-data'])
1447 '/administration/mantle_logic',
'POST',
1452 post_params=form_params,
1453 files=local_var_files,
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)
1463 """Upload a new platform logic # noqa: E501
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()
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)
1481 If the method is called asynchronously,
1482 returns the request thread.
1484 kwargs[
'_return_http_data_only'] =
True
1485 if kwargs.get(
'async_req'):
1492 """Upload a new platform logic # noqa: E501
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()
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)
1510 If the method is called asynchronously,
1511 returns the request thread.
1514 all_params = [
'image_details',
'dcp_file',
'bit_file',
'mcs_file',
'sig_file',
'pr_verify_rpt',
'username',
'password']
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')
1521 for key, val
in six.iteritems(params[
'kwargs']):
1522 if key
not in all_params:
1524 "Got an unexpected keyword argument '%s'"
1525 " to method cf_manager_rest_api_post_platform_logic" % key
1528 del params[
'kwargs']
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`")
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`")
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`")
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`")
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`")
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`")
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`")
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`")
1562 collection_formats = {}
1567 if 'username' in params:
1568 query_params.append((
'username', params[
'username']))
1569 if 'password' in params:
1570 query_params.append((
'password', params[
'password']))
1575 local_var_files = {}
1576 if 'image_details' in params:
1577 form_params.append((
'image_details', params[
'image_details']))
1578 if 'dcp_file' in params:
1579 local_var_files[
'dcp_file'] = params[
'dcp_file']
1580 if 'bit_file' in params:
1581 local_var_files[
'bit_file'] = params[
'bit_file']
1582 if 'mcs_file' in params:
1583 local_var_files[
'mcs_file'] = params[
'mcs_file']
1584 if 'sig_file' in params:
1585 local_var_files[
'sig_file'] = params[
'sig_file']
1586 if 'pr_verify_rpt' in params:
1587 local_var_files[
'pr_verify_rpt'] = params[
'pr_verify_rpt']
1591 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
1592 [
'multipart/form-data'])
1598 '/administration/platform_logic',
'POST',
1603 post_params=form_params,
1604 files=local_var_files,
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)
1614 """Update a registered build script # noqa: E501
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()
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:
1627 If the method is called asynchronously,
1628 returns the request thread.
1630 kwargs[
'_return_http_data_only'] =
True
1631 if kwargs.get(
'async_req'):
1638 """Update a registered build script # noqa: E501
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()
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:
1651 If the method is called asynchronously,
1652 returns the request thread.
1655 all_params = [
'username',
'password',
'bs_id',
'body']
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')
1662 for key, val
in six.iteritems(params[
'kwargs']):
1663 if key
not in all_params:
1665 "Got an unexpected keyword argument '%s'"
1666 " to method cf_manager_rest_api_put_buildscript" % key
1669 del params[
'kwargs']
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`")
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`")
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`")
1683 collection_formats = {}
1686 if 'bs_id' in params:
1687 path_params[
'bs_id'] = params[
'bs_id']
1690 if 'username' in params:
1691 query_params.append((
'username', params[
'username']))
1692 if 'password' in params:
1693 query_params.append((
'password', params[
'password']))
1698 local_var_files = {}
1701 if 'body' in params:
1702 body_params = params[
'body']
1704 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
1705 [
'application/json'])
1711 '/administration/buildscripts/{bs_id}',
'PUT',
1716 post_params=form_params,
1717 files=local_var_files,
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)
1727 """Update status of a composable logic # noqa: E501
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()
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)
1741 If the method is called asynchronously,
1742 returns the request thread.
1744 kwargs[
'_return_http_data_only'] =
True
1745 if kwargs.get(
'async_req'):
1752 """Update status of a composable logic # noqa: E501
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()
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)
1766 If the method is called asynchronously,
1767 returns the request thread.
1770 all_params = [
'username',
'password',
'cl_id',
'new_status']
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')
1777 for key, val
in six.iteritems(params[
'kwargs']):
1778 if key
not in all_params:
1780 "Got an unexpected keyword argument '%s'"
1781 " to method cf_manager_rest_api_put_composable_logic_status" % key
1784 del params[
'kwargs']
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`")
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`")
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`")
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`")
1802 collection_formats = {}
1805 if 'cl_id' in params:
1806 path_params[
'cl_id'] = params[
'cl_id']
1809 if 'username' in params:
1810 query_params.append((
'username', params[
'username']))
1811 if 'password' in params:
1812 query_params.append((
'password', params[
'password']))
1813 if 'new_status' in params:
1814 query_params.append((
'new_status', params[
'new_status']))
1819 local_var_files = {}
1826 '/administration/composablelogic/{cl_id}/status/',
'PUT',
1831 post_params=form_params,
1832 files=local_var_files,
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_get_single_buildscript_with_http_info(self, username, password, bs_id, **kwargs)
def cf_manager_rest_api_put_buildscript(self, username, password, bs_id, **kwargs)
def cf_manager_rest_api_admin_test_instance(self, username, password, instance_id, image_id, **kwargs)
def cf_manager_rest_api_get_single_composable_logic(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_single_composable_logic_with_http_info(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_platform_logic_all_with_http_info(self, username, password, **kwargs)
def cf_manager_rest_api_get_single_buildscript(self, username, password, bs_id, **kwargs)
def cf_manager_rest_api_post_buildscript(self, username, password, **kwargs)
def cf_manager_rest_api_put_composable_logic_status_with_http_info(self, username, password, cl_id, new_status, **kwargs)
def cf_manager_rest_api_get_all_composable_logic_with_http_info(self, username, password, **kwargs)
def cf_manager_rest_api_post_ippool(self, username, password, subnet_string, gateway_string, mask_string, **kwargs)
def cf_manager_rest_api_get_mantle_logic_all(self, username, password, **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_put_composable_logic_status(self, username, password, cl_id, new_status, **kwargs)
def cf_manager_rest_api_post_buildscript_with_http_info(self, 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_get_mantle_logic_all_with_http_info(self, username, password, **kwargs)
def cf_manager_rest_api_get_all_composable_logic(self, username, password, **kwargs)
def cf_manager_rest_api_get_platform_logic_all(self, username, password, **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_delete_ippool(self, username, password, subnet_string, **kwargs)
def cf_manager_rest_api_get_buildscripts_all(self, username, password, **kwargs)
def cf_manager_rest_api_delete_ippool_with_http_info(self, username, password, subnet_string, **kwargs)
def cf_manager_rest_api_get_ippool_with_http_info(self, username, password, **kwargs)
def cf_manager_rest_api_get_buildscripts_all_with_http_info(self, username, password, **kwargs)
def cf_manager_rest_api_put_buildscript_with_http_info(self, username, password, bs_id, **kwargs)
def cf_manager_rest_api_admin_update_flash_with_http_info(self, username, password, resource_id, pl_id, **kwargs)
def __init__(self, api_client=None)
def cf_manager_rest_api_post_ippool_with_http_info(self, username, password, subnet_string, gateway_string, mask_string, **kwargs)
def cf_manager_rest_api_admin_update_flash(self, username, password, resource_id, pl_id, **kwargs)
def cf_manager_rest_api_get_ippool(self, username, password, **kwargs)