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 """Triggers app restart of this instance # noqa: E501
38 This method makes a synchronous HTTP request by default. To make an
39 asynchronous HTTP request, please pass async_req=True
40 >>> thread = api.cf_manager_rest_api_app_restart_instance(username, password, instance_id, async_req=True)
41 >>> result = thread.get()
44 :param str username: OpenStack username (required)
45 :param str password: OpenStack password (required)
46 :param str instance_id: ROLE instance unique identifier (required)
48 If the method is called asynchronously,
49 returns the request thread.
51 kwargs[
'_return_http_data_only'] =
True
52 if kwargs.get(
'async_req'):
59 """Triggers app restart of this instance # noqa: E501
61 This method makes a synchronous HTTP request by default. To make an
62 asynchronous HTTP request, please pass async_req=True
63 >>> thread = api.cf_manager_rest_api_app_restart_instance_with_http_info(username, password, instance_id, async_req=True)
64 >>> result = thread.get()
67 :param str username: OpenStack username (required)
68 :param str password: OpenStack password (required)
69 :param str instance_id: ROLE instance unique identifier (required)
71 If the method is called asynchronously,
72 returns the request thread.
75 all_params = [
'username',
'password',
'instance_id']
76 all_params.append(
'async_req')
77 all_params.append(
'_return_http_data_only')
78 all_params.append(
'_preload_content')
79 all_params.append(
'_request_timeout')
82 for key, val
in six.iteritems(params[
'kwargs']):
83 if key
not in all_params:
85 "Got an unexpected keyword argument '%s'"
86 " to method cf_manager_rest_api_app_restart_instance" % key
91 if (
'username' not in params
or
92 params[
'username']
is None):
93 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_app_restart_instance`")
95 if (
'password' not in params
or
96 params[
'password']
is None):
97 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_app_restart_instance`")
99 if (
'instance_id' not in params
or
100 params[
'instance_id']
is None):
101 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_app_restart_instance`")
103 collection_formats = {}
106 if 'instance_id' in params:
107 path_params[
'instance_id'] = params[
'instance_id']
110 if 'username' in params:
111 query_params.append((
'username', params[
'username']))
112 if 'password' in params:
113 query_params.append((
'password', params[
'password']))
125 '/instances/{instance_id}/app_restart',
'PATCH',
130 post_params=form_params,
131 files=local_var_files,
133 auth_settings=auth_settings,
134 async_req=params.get(
'async_req'),
135 _return_http_data_only=params.get(
'_return_http_data_only'),
136 _preload_content=params.get(
'_preload_content',
True),
137 _request_timeout=params.get(
'_request_timeout'),
138 collection_formats=collection_formats)
141 """Remove an instance # noqa: E501
143 This method makes a synchronous HTTP request by default. To make an
144 asynchronous HTTP request, please pass async_req=True
145 >>> thread = api.cf_manager_rest_api_delete_instance(username, password, instance_id, async_req=True)
146 >>> result = thread.get()
148 :param async_req bool
149 :param str username: OpenStack username (required)
150 :param str password: OpenStack password (required)
151 :param str instance_id: ROLE instance unique identifier (required)
153 If the method is called asynchronously,
154 returns the request thread.
156 kwargs[
'_return_http_data_only'] =
True
157 if kwargs.get(
'async_req'):
164 """Remove an instance # noqa: E501
166 This method makes a synchronous HTTP request by default. To make an
167 asynchronous HTTP request, please pass async_req=True
168 >>> thread = api.cf_manager_rest_api_delete_instance_with_http_info(username, password, instance_id, async_req=True)
169 >>> result = thread.get()
171 :param async_req bool
172 :param str username: OpenStack username (required)
173 :param str password: OpenStack password (required)
174 :param str instance_id: ROLE instance unique identifier (required)
176 If the method is called asynchronously,
177 returns the request thread.
180 all_params = [
'username',
'password',
'instance_id']
181 all_params.append(
'async_req')
182 all_params.append(
'_return_http_data_only')
183 all_params.append(
'_preload_content')
184 all_params.append(
'_request_timeout')
187 for key, val
in six.iteritems(params[
'kwargs']):
188 if key
not in all_params:
190 "Got an unexpected keyword argument '%s'"
191 " to method cf_manager_rest_api_delete_instance" % key
196 if (
'username' not in params
or
197 params[
'username']
is None):
198 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_delete_instance`")
200 if (
'password' not in params
or
201 params[
'password']
is None):
202 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_delete_instance`")
204 if (
'instance_id' not in params
or
205 params[
'instance_id']
is None):
206 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_delete_instance`")
208 collection_formats = {}
211 if 'instance_id' in params:
212 path_params[
'instance_id'] = params[
'instance_id']
215 if 'username' in params:
216 query_params.append((
'username', params[
'username']))
217 if 'password' in params:
218 query_params.append((
'password', params[
'password']))
230 '/instances/{instance_id}',
'DELETE',
235 post_params=form_params,
236 files=local_var_files,
238 auth_settings=auth_settings,
239 async_req=params.get(
'async_req'),
240 _return_http_data_only=params.get(
'_return_http_data_only'),
241 _preload_content=params.get(
'_preload_content',
True),
242 _request_timeout=params.get(
'_request_timeout'),
243 collection_formats=collection_formats)
246 """Get a single instance # noqa: E501
248 This method makes a synchronous HTTP request by default. To make an
249 asynchronous HTTP request, please pass async_req=True
250 >>> thread = api.cf_manager_rest_api_get_instance(username, password, instance_id, async_req=True)
251 >>> result = thread.get()
253 :param async_req bool
254 :param str username: OpenStack username (required)
255 :param str password: OpenStack password (required)
256 :param str instance_id: ROLE instance unique identifier (required)
258 If the method is called asynchronously,
259 returns the request thread.
261 kwargs[
'_return_http_data_only'] =
True
262 if kwargs.get(
'async_req'):
269 """Get a single instance # noqa: E501
271 This method makes a synchronous HTTP request by default. To make an
272 asynchronous HTTP request, please pass async_req=True
273 >>> thread = api.cf_manager_rest_api_get_instance_with_http_info(username, password, instance_id, async_req=True)
274 >>> result = thread.get()
276 :param async_req bool
277 :param str username: OpenStack username (required)
278 :param str password: OpenStack password (required)
279 :param str instance_id: ROLE instance unique identifier (required)
281 If the method is called asynchronously,
282 returns the request thread.
285 all_params = [
'username',
'password',
'instance_id']
286 all_params.append(
'async_req')
287 all_params.append(
'_return_http_data_only')
288 all_params.append(
'_preload_content')
289 all_params.append(
'_request_timeout')
292 for key, val
in six.iteritems(params[
'kwargs']):
293 if key
not in all_params:
295 "Got an unexpected keyword argument '%s'"
296 " to method cf_manager_rest_api_get_instance" % key
301 if (
'username' not in params
or
302 params[
'username']
is None):
303 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_instance`")
305 if (
'password' not in params
or
306 params[
'password']
is None):
307 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_instance`")
309 if (
'instance_id' not in params
or
310 params[
'instance_id']
is None):
311 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_get_instance`")
313 collection_formats = {}
316 if 'instance_id' in params:
317 path_params[
'instance_id'] = params[
'instance_id']
320 if 'username' in params:
321 query_params.append((
'username', params[
'username']))
322 if 'password' in params:
323 query_params.append((
'password', params[
'password']))
332 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
333 [
'application/json'])
339 '/instances/{instance_id}',
'GET',
344 post_params=form_params,
345 files=local_var_files,
346 response_type=
'Instance',
347 auth_settings=auth_settings,
348 async_req=params.get(
'async_req'),
349 _return_http_data_only=params.get(
'_return_http_data_only'),
350 _preload_content=params.get(
'_preload_content',
True),
351 _request_timeout=params.get(
'_request_timeout'),
352 collection_formats=collection_formats)
355 """Get all instances of a user # noqa: E501
357 This method makes a synchronous HTTP request by default. To make an
358 asynchronous HTTP request, please pass async_req=True
359 >>> thread = api.cf_manager_rest_api_get_instances(username, password, async_req=True)
360 >>> result = thread.get()
362 :param async_req bool
363 :param str username: OpenStack username (required)
364 :param str password: OpenStack password (required)
366 :return: list[Instance]
367 If the method is called asynchronously,
368 returns the request thread.
370 kwargs[
'_return_http_data_only'] =
True
371 if kwargs.get(
'async_req'):
378 """Get all instances of a user # noqa: E501
380 This method makes a synchronous HTTP request by default. To make an
381 asynchronous HTTP request, please pass async_req=True
382 >>> thread = api.cf_manager_rest_api_get_instances_with_http_info(username, password, async_req=True)
383 >>> result = thread.get()
385 :param async_req bool
386 :param str username: OpenStack username (required)
387 :param str password: OpenStack password (required)
389 :return: list[Instance]
390 If the method is called asynchronously,
391 returns the request thread.
394 all_params = [
'username',
'password',
'limit']
395 all_params.append(
'async_req')
396 all_params.append(
'_return_http_data_only')
397 all_params.append(
'_preload_content')
398 all_params.append(
'_request_timeout')
401 for key, val
in six.iteritems(params[
'kwargs']):
402 if key
not in all_params:
404 "Got an unexpected keyword argument '%s'"
405 " to method cf_manager_rest_api_get_instances" % key
410 if (
'username' not in params
or
411 params[
'username']
is None):
412 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_instances`")
414 if (
'password' not in params
or
415 params[
'password']
is None):
416 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_instances`")
418 collection_formats = {}
423 if 'username' in params:
424 query_params.append((
'username', params[
'username']))
425 if 'password' in params:
426 query_params.append((
'password', params[
'password']))
427 if 'limit' in params:
428 query_params.append((
'limit', params[
'limit']))
437 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
438 [
'application/json'])
449 post_params=form_params,
450 files=local_var_files,
451 response_type=
'list[Instance]',
452 auth_settings=auth_settings,
453 async_req=params.get(
'async_req'),
454 _return_http_data_only=params.get(
'_return_http_data_only'),
455 _preload_content=params.get(
'_preload_content',
True),
456 _request_timeout=params.get(
'_request_timeout'),
457 collection_formats=collection_formats)
460 """Forwards a custom HTTP API request # noqa: E501
462 Forwards a custom HTTP API request to the FMC/Middleware (management interface) and returns the answer. Before forwarding the request, a filter will be applied to block unauthorized access. # noqa: E501
463 This method makes a synchronous HTTP request by default. To make an
464 asynchronous HTTP request, please pass async_req=True
465 >>> thread = api.cf_manager_rest_api_instance_api_gateway(body, username, password, instance_id, async_req=True)
466 >>> result = thread.get()
468 :param async_req bool
469 :param InstanceIdApiGatewayBody body: (required)
470 :param str username: OpenStack username (required)
471 :param str password: OpenStack password (required)
472 :param str instance_id: ROLE instance unique identifier (required)
474 If the method is called asynchronously,
475 returns the request thread.
477 kwargs[
'_return_http_data_only'] =
True
478 if kwargs.get(
'async_req'):
485 """Forwards a custom HTTP API request # noqa: E501
487 Forwards a custom HTTP API request to the FMC/Middleware (management interface) and returns the answer. Before forwarding the request, a filter will be applied to block unauthorized access. # noqa: E501
488 This method makes a synchronous HTTP request by default. To make an
489 asynchronous HTTP request, please pass async_req=True
490 >>> thread = api.cf_manager_rest_api_instance_api_gateway_with_http_info(body, username, password, instance_id, async_req=True)
491 >>> result = thread.get()
493 :param async_req bool
494 :param InstanceIdApiGatewayBody body: (required)
495 :param str username: OpenStack username (required)
496 :param str password: OpenStack password (required)
497 :param str instance_id: ROLE instance unique identifier (required)
499 If the method is called asynchronously,
500 returns the request thread.
503 all_params = [
'body',
'username',
'password',
'instance_id']
504 all_params.append(
'async_req')
505 all_params.append(
'_return_http_data_only')
506 all_params.append(
'_preload_content')
507 all_params.append(
'_request_timeout')
510 for key, val
in six.iteritems(params[
'kwargs']):
511 if key
not in all_params:
513 "Got an unexpected keyword argument '%s'"
514 " to method cf_manager_rest_api_instance_api_gateway" % key
519 if (
'body' not in params
or
520 params[
'body']
is None):
521 raise ValueError(
"Missing the required parameter `body` when calling `cf_manager_rest_api_instance_api_gateway`")
523 if (
'username' not in params
or
524 params[
'username']
is None):
525 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_instance_api_gateway`")
527 if (
'password' not in params
or
528 params[
'password']
is None):
529 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_instance_api_gateway`")
531 if (
'instance_id' not in params
or
532 params[
'instance_id']
is None):
533 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_instance_api_gateway`")
535 collection_formats = {}
538 if 'instance_id' in params:
539 path_params[
'instance_id'] = params[
'instance_id']
542 if 'username' in params:
543 query_params.append((
'username', params[
'username']))
544 if 'password' in params:
545 query_params.append((
'password', params[
'password']))
554 body_params = params[
'body']
556 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
557 [
'application/json'])
563 '/instances/{instance_id}/api_gateway',
'POST',
568 post_params=form_params,
569 files=local_var_files,
571 auth_settings=auth_settings,
572 async_req=params.get(
'async_req'),
573 _return_http_data_only=params.get(
'_return_http_data_only'),
574 _preload_content=params.get(
'_preload_content',
True),
575 _request_timeout=params.get(
'_request_timeout'),
576 collection_formats=collection_formats)
579 """Changes the `runlevel` of the instance (stack developers only) # noqa: E501
581 This method makes a synchronous HTTP request by default. To make an
582 asynchronous HTTP request, please pass async_req=True
583 >>> thread = api.cf_manager_rest_api_instance_change_runlevel(new_runlevel, username, password, instance_id, async_req=True)
584 >>> result = thread.get()
586 :param async_req bool
587 :param int new_runlevel: (required)
588 :param str username: OpenStack username (required)
589 :param str password: OpenStack password (required)
590 :param str instance_id: ROLE instance unique identifier (required)
592 If the method is called asynchronously,
593 returns the request thread.
595 kwargs[
'_return_http_data_only'] =
True
596 if kwargs.get(
'async_req'):
603 """Changes the `runlevel` of the instance (stack developers only) # noqa: E501
605 This method makes a synchronous HTTP request by default. To make an
606 asynchronous HTTP request, please pass async_req=True
607 >>> thread = api.cf_manager_rest_api_instance_change_runlevel_with_http_info(new_runlevel, username, password, instance_id, async_req=True)
608 >>> result = thread.get()
610 :param async_req bool
611 :param int new_runlevel: (required)
612 :param str username: OpenStack username (required)
613 :param str password: OpenStack password (required)
614 :param str instance_id: ROLE instance unique identifier (required)
616 If the method is called asynchronously,
617 returns the request thread.
620 all_params = [
'new_runlevel',
'username',
'password',
'instance_id']
621 all_params.append(
'async_req')
622 all_params.append(
'_return_http_data_only')
623 all_params.append(
'_preload_content')
624 all_params.append(
'_request_timeout')
627 for key, val
in six.iteritems(params[
'kwargs']):
628 if key
not in all_params:
630 "Got an unexpected keyword argument '%s'"
631 " to method cf_manager_rest_api_instance_change_runlevel" % key
636 if (
'new_runlevel' not in params
or
637 params[
'new_runlevel']
is None):
638 raise ValueError(
"Missing the required parameter `new_runlevel` when calling `cf_manager_rest_api_instance_change_runlevel`")
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_instance_change_runlevel`")
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_instance_change_runlevel`")
648 if (
'instance_id' not in params
or
649 params[
'instance_id']
is None):
650 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_instance_change_runlevel`")
652 collection_formats = {}
655 if 'instance_id' in params:
656 path_params[
'instance_id'] = params[
'instance_id']
659 if 'username' in params:
660 query_params.append((
'username', params[
'username']))
661 if 'password' in params:
662 query_params.append((
'password', params[
'password']))
668 if 'new_runlevel' in params:
669 form_params.append((
'new_runlevel', params[
'new_runlevel']))
673 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
674 [
'multipart/form-data'])
680 '/instances/{instance_id}/runlevel',
'POST',
685 post_params=form_params,
686 files=local_var_files,
688 auth_settings=auth_settings,
689 async_req=params.get(
'async_req'),
690 _return_http_data_only=params.get(
'_return_http_data_only'),
691 _preload_content=params.get(
'_preload_content',
True),
692 _request_timeout=params.get(
'_request_timeout'),
693 collection_formats=collection_formats)
696 """Returns the current `runlevel` of the instance (stack developers only) # noqa: E501
698 This method makes a synchronous HTTP request by default. To make an
699 asynchronous HTTP request, please pass async_req=True
700 >>> thread = api.cf_manager_rest_api_instance_get_runlevel(username, password, instance_id, async_req=True)
701 >>> result = thread.get()
703 :param async_req bool
704 :param str username: OpenStack username (required)
705 :param str password: OpenStack password (required)
706 :param str instance_id: ROLE instance unique identifier (required)
707 :return: InlineResponse2005
708 If the method is called asynchronously,
709 returns the request thread.
711 kwargs[
'_return_http_data_only'] =
True
712 if kwargs.get(
'async_req'):
719 """Returns the current `runlevel` of the instance (stack developers only) # noqa: E501
721 This method makes a synchronous HTTP request by default. To make an
722 asynchronous HTTP request, please pass async_req=True
723 >>> thread = api.cf_manager_rest_api_instance_get_runlevel_with_http_info(username, password, instance_id, async_req=True)
724 >>> result = thread.get()
726 :param async_req bool
727 :param str username: OpenStack username (required)
728 :param str password: OpenStack password (required)
729 :param str instance_id: ROLE instance unique identifier (required)
730 :return: InlineResponse2005
731 If the method is called asynchronously,
732 returns the request thread.
735 all_params = [
'username',
'password',
'instance_id']
736 all_params.append(
'async_req')
737 all_params.append(
'_return_http_data_only')
738 all_params.append(
'_preload_content')
739 all_params.append(
'_request_timeout')
742 for key, val
in six.iteritems(params[
'kwargs']):
743 if key
not in all_params:
745 "Got an unexpected keyword argument '%s'"
746 " to method cf_manager_rest_api_instance_get_runlevel" % key
751 if (
'username' not in params
or
752 params[
'username']
is None):
753 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_instance_get_runlevel`")
755 if (
'password' not in params
or
756 params[
'password']
is None):
757 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_instance_get_runlevel`")
759 if (
'instance_id' not in params
or
760 params[
'instance_id']
is None):
761 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_instance_get_runlevel`")
763 collection_formats = {}
766 if 'instance_id' in params:
767 path_params[
'instance_id'] = params[
'instance_id']
770 if 'username' in params:
771 query_params.append((
'username', params[
'username']))
772 if 'password' in params:
773 query_params.append((
'password', params[
'password']))
782 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
783 [
'application/json'])
789 '/instances/{instance_id}/runlevel',
'GET',
794 post_params=form_params,
795 files=local_var_files,
796 response_type=
'InlineResponse2005',
797 auth_settings=auth_settings,
798 async_req=params.get(
'async_req'),
799 _return_http_data_only=params.get(
'_return_http_data_only'),
800 _preload_content=params.get(
'_preload_content',
True),
801 _request_timeout=params.get(
'_request_timeout'),
802 collection_formats=collection_formats)
805 """Create an instance # noqa: E501
807 This configures an FPGA of type `fpga_board` (from the image metadata) with the given image and sets up the network accordingly. Please contact the administrators, if this request failed several times with `500` or `507`. If a user belongs to multiple projects, the Quota of the first project (in alphabetical order) is used. If another Quota should be used, the parameter `project_name` must be set accordingly. If the given image is a partial bitstream, the partial reconfiguration flow is applied automatically (`breed` is `\"ROLE\"`). In that case, this request tries to find a resource with the corresponding `shell_type` as defined by the image. If no board with the requested `shell_type` is available, one board gets configured with the newest `shell_type` SHELL image. # noqa: E501
808 This method makes a synchronous HTTP request by default. To make an
809 asynchronous HTTP request, please pass async_req=True
810 >>> thread = api.cf_manager_rest_api_post_instances(image_id, username, password, async_req=True)
811 >>> result = thread.get()
813 :param async_req bool
814 :param str image_id: (required)
815 :param str username: OpenStack username (required)
816 :param str password: OpenStack password (required)
817 :param str project_name: Name of the OpenStack project the quota should be acounted to, if a user has multiple projects.
818 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
819 :return: InlineResponse2001
820 If the method is called asynchronously,
821 returns the request thread.
823 kwargs[
'_return_http_data_only'] =
True
824 if kwargs.get(
'async_req'):
831 """Create an instance # noqa: E501
833 This configures an FPGA of type `fpga_board` (from the image metadata) with the given image and sets up the network accordingly. Please contact the administrators, if this request failed several times with `500` or `507`. If a user belongs to multiple projects, the Quota of the first project (in alphabetical order) is used. If another Quota should be used, the parameter `project_name` must be set accordingly. If the given image is a partial bitstream, the partial reconfiguration flow is applied automatically (`breed` is `\"ROLE\"`). In that case, this request tries to find a resource with the corresponding `shell_type` as defined by the image. If no board with the requested `shell_type` is available, one board gets configured with the newest `shell_type` SHELL image. # noqa: E501
834 This method makes a synchronous HTTP request by default. To make an
835 asynchronous HTTP request, please pass async_req=True
836 >>> thread = api.cf_manager_rest_api_post_instances_with_http_info(image_id, username, password, async_req=True)
837 >>> result = thread.get()
839 :param async_req bool
840 :param str image_id: (required)
841 :param str username: OpenStack username (required)
842 :param str password: OpenStack password (required)
843 :param str project_name: Name of the OpenStack project the quota should be acounted to, if a user has multiple projects.
844 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
845 :return: InlineResponse2001
846 If the method is called asynchronously,
847 returns the request thread.
850 all_params = [
'image_id',
'username',
'password',
'project_name',
'dont_verify_memory']
851 all_params.append(
'async_req')
852 all_params.append(
'_return_http_data_only')
853 all_params.append(
'_preload_content')
854 all_params.append(
'_request_timeout')
857 for key, val
in six.iteritems(params[
'kwargs']):
858 if key
not in all_params:
860 "Got an unexpected keyword argument '%s'"
861 " to method cf_manager_rest_api_post_instances" % key
866 if (
'image_id' not in params
or
867 params[
'image_id']
is None):
868 raise ValueError(
"Missing the required parameter `image_id` when calling `cf_manager_rest_api_post_instances`")
870 if (
'username' not in params
or
871 params[
'username']
is None):
872 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_post_instances`")
874 if (
'password' not in params
or
875 params[
'password']
is None):
876 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_post_instances`")
878 collection_formats = {}
883 if 'username' in params:
884 query_params.append((
'username', params[
'username']))
885 if 'password' in params:
886 query_params.append((
'password', params[
'password']))
887 if 'project_name' in params:
888 query_params.append((
'project_name', params[
'project_name']))
889 if 'dont_verify_memory' in params:
890 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
896 if 'image_id' in params:
897 form_params.append((
'image_id', params[
'image_id']))
901 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
902 [
'application/json'])
905 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
906 [
'multipart/form-data'])
912 '/instances',
'POST',
917 post_params=form_params,
918 files=local_var_files,
919 response_type=
'InlineResponse2001',
920 auth_settings=auth_settings,
921 async_req=params.get(
'async_req'),
922 _return_http_data_only=params.get(
'_return_http_data_only'),
923 _preload_content=params.get(
'_preload_content',
True),
924 _request_timeout=params.get(
'_request_timeout'),
925 collection_formats=collection_formats)
928 """Reprogramm an instance # noqa: E501
930 Reprogram an instance with the submitted image and configure all current settings again afterwards. Hence, this call reuses the same FPGA again (in opposition to DELETE and POST again). 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). # noqa: E501
931 This method makes a synchronous HTTP request by default. To make an
932 asynchronous HTTP request, please pass async_req=True
933 >>> thread = api.cf_manager_rest_api_update_instance(image_id, username, password, instance_id, async_req=True)
934 >>> result = thread.get()
936 :param async_req bool
937 :param str image_id: (required)
938 :param str username: OpenStack username (required)
939 :param str password: OpenStack password (required)
940 :param str instance_id: ROLE instance unique identifier (required)
941 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
942 :return: InlineResponse2001
943 If the method is called asynchronously,
944 returns the request thread.
946 kwargs[
'_return_http_data_only'] =
True
947 if kwargs.get(
'async_req'):
954 """Reprogramm an instance # noqa: E501
956 Reprogram an instance with the submitted image and configure all current settings again afterwards. Hence, this call reuses the same FPGA again (in opposition to DELETE and POST again). 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). # noqa: E501
957 This method makes a synchronous HTTP request by default. To make an
958 asynchronous HTTP request, please pass async_req=True
959 >>> thread = api.cf_manager_rest_api_update_instance_with_http_info(image_id, username, password, instance_id, async_req=True)
960 >>> result = thread.get()
962 :param async_req bool
963 :param str image_id: (required)
964 :param str username: OpenStack username (required)
965 :param str password: OpenStack password (required)
966 :param str instance_id: ROLE instance unique identifier (required)
967 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
968 :return: InlineResponse2001
969 If the method is called asynchronously,
970 returns the request thread.
973 all_params = [
'image_id',
'username',
'password',
'instance_id',
'dont_verify_memory']
974 all_params.append(
'async_req')
975 all_params.append(
'_return_http_data_only')
976 all_params.append(
'_preload_content')
977 all_params.append(
'_request_timeout')
980 for key, val
in six.iteritems(params[
'kwargs']):
981 if key
not in all_params:
983 "Got an unexpected keyword argument '%s'"
984 " to method cf_manager_rest_api_update_instance" % key
989 if (
'image_id' not in params
or
990 params[
'image_id']
is None):
991 raise ValueError(
"Missing the required parameter `image_id` when calling `cf_manager_rest_api_update_instance`")
993 if (
'username' not in params
or
994 params[
'username']
is None):
995 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_update_instance`")
997 if (
'password' not in params
or
998 params[
'password']
is None):
999 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_update_instance`")
1001 if (
'instance_id' not in params
or
1002 params[
'instance_id']
is None):
1003 raise ValueError(
"Missing the required parameter `instance_id` when calling `cf_manager_rest_api_update_instance`")
1005 collection_formats = {}
1008 if 'instance_id' in params:
1009 path_params[
'instance_id'] = params[
'instance_id']
1012 if 'username' in params:
1013 query_params.append((
'username', params[
'username']))
1014 if 'password' in params:
1015 query_params.append((
'password', params[
'password']))
1016 if 'dont_verify_memory' in params:
1017 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
1022 local_var_files = {}
1023 if 'image_id' in params:
1024 form_params.append((
'image_id', params[
'image_id']))
1028 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
1029 [
'application/json'])
1032 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
1033 [
'multipart/form-data'])
1039 '/instances/{instance_id}',
'PUT',
1044 post_params=form_params,
1045 files=local_var_files,
1046 response_type=
'InlineResponse2001',
1047 auth_settings=auth_settings,
1048 async_req=params.get(
'async_req'),
1049 _return_http_data_only=params.get(
'_return_http_data_only'),
1050 _preload_content=params.get(
'_preload_content',
True),
1051 _request_timeout=params.get(
'_request_timeout'),
1052 collection_formats=collection_formats)
def __init__(self, api_client=None)
def cf_manager_rest_api_update_instance_with_http_info(self, image_id, username, password, instance_id, **kwargs)
def cf_manager_rest_api_app_restart_instance_with_http_info(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_app_restart_instance(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_instance_change_runlevel_with_http_info(self, new_runlevel, username, password, instance_id, **kwargs)
def cf_manager_rest_api_instance_change_runlevel(self, new_runlevel, username, password, instance_id, **kwargs)
def cf_manager_rest_api_delete_instance_with_http_info(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_post_instances_with_http_info(self, image_id, username, password, **kwargs)
def cf_manager_rest_api_instance_get_runlevel(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_get_instances(self, username, password, **kwargs)
def cf_manager_rest_api_delete_instance(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_get_instance_with_http_info(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_instance_api_gateway_with_http_info(self, body, username, password, instance_id, **kwargs)
def cf_manager_rest_api_get_instance(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_post_instances(self, image_id, username, password, **kwargs)
def cf_manager_rest_api_update_instance(self, image_id, username, password, instance_id, **kwargs)
def cf_manager_rest_api_instance_get_runlevel_with_http_info(self, username, password, instance_id, **kwargs)
def cf_manager_rest_api_instance_api_gateway(self, body, username, password, instance_id, **kwargs)
def cf_manager_rest_api_get_instances_with_http_info(self, username, password, **kwargs)