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 """Delete a cluster # 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_delete_cluster(username, password, cluster_id, async_req=True)
41 >>> result = thread.get()
44 :param str username: OpenStack username (required)
45 :param str password: OpenStack password (required)
46 :param int cluster_id: ID of a cluster (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 """Delete a cluster # 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_delete_cluster_with_http_info(username, password, cluster_id, async_req=True)
64 >>> result = thread.get()
67 :param str username: OpenStack username (required)
68 :param str password: OpenStack password (required)
69 :param int cluster_id: ID of a cluster (required)
71 If the method is called asynchronously,
72 returns the request thread.
75 all_params = [
'username',
'password',
'cluster_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_delete_cluster" % 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_delete_cluster`")
95 if (
'password' not in params
or
96 params[
'password']
is None):
97 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_delete_cluster`")
99 if (
'cluster_id' not in params
or
100 params[
'cluster_id']
is None):
101 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_delete_cluster`")
103 collection_formats = {}
106 if 'cluster_id' in params:
107 path_params[
'cluster_id'] = params[
'cluster_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 '/clusters/{cluster_id}',
'DELETE',
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 """Add nodes to an existing cluster # noqa: E501
143 This adds nodes to an existing cluster, as specified in the parameter `cluster_details`. **Details** on how to describe a cluster can be found at the **Implementation Notes of the `POST /clusters` API call**. All mentioned rules apply for this method as well. After creating all new nodes, the runtime information of all nodes will be updated. The Roles of the already existing FPGA nodes are **not** reset during this method. If errors occur during this method (e.g. 424 or 507), the original cluster will be unaffected. # noqa: E501
144 This method makes a synchronous HTTP request by default. To make an
145 asynchronous HTTP request, please pass async_req=True
146 >>> thread = api.cf_manager_rest_api_extend_cluster(body, username, password, cluster_id, async_req=True)
147 >>> result = thread.get()
149 :param async_req bool
150 :param list[ClustersBody] body: Mapping of Node-IDs to Images (required)
151 :param str username: OpenStack username (required)
152 :param str password: OpenStack password (required)
153 :param int cluster_id: ID of a cluster (required)
154 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
156 If the method is called asynchronously,
157 returns the request thread.
159 kwargs[
'_return_http_data_only'] =
True
160 if kwargs.get(
'async_req'):
167 """Add nodes to an existing cluster # noqa: E501
169 This adds nodes to an existing cluster, as specified in the parameter `cluster_details`. **Details** on how to describe a cluster can be found at the **Implementation Notes of the `POST /clusters` API call**. All mentioned rules apply for this method as well. After creating all new nodes, the runtime information of all nodes will be updated. The Roles of the already existing FPGA nodes are **not** reset during this method. If errors occur during this method (e.g. 424 or 507), the original cluster will be unaffected. # noqa: E501
170 This method makes a synchronous HTTP request by default. To make an
171 asynchronous HTTP request, please pass async_req=True
172 >>> thread = api.cf_manager_rest_api_extend_cluster_with_http_info(body, username, password, cluster_id, async_req=True)
173 >>> result = thread.get()
175 :param async_req bool
176 :param list[ClustersBody] body: Mapping of Node-IDs to Images (required)
177 :param str username: OpenStack username (required)
178 :param str password: OpenStack password (required)
179 :param int cluster_id: ID of a cluster (required)
180 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
182 If the method is called asynchronously,
183 returns the request thread.
186 all_params = [
'body',
'username',
'password',
'cluster_id',
'dont_verify_memory']
187 all_params.append(
'async_req')
188 all_params.append(
'_return_http_data_only')
189 all_params.append(
'_preload_content')
190 all_params.append(
'_request_timeout')
193 for key, val
in six.iteritems(params[
'kwargs']):
194 if key
not in all_params:
196 "Got an unexpected keyword argument '%s'"
197 " to method cf_manager_rest_api_extend_cluster" % key
202 if (
'body' not in params
or
203 params[
'body']
is None):
204 raise ValueError(
"Missing the required parameter `body` when calling `cf_manager_rest_api_extend_cluster`")
206 if (
'username' not in params
or
207 params[
'username']
is None):
208 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_extend_cluster`")
210 if (
'password' not in params
or
211 params[
'password']
is None):
212 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_extend_cluster`")
214 if (
'cluster_id' not in params
or
215 params[
'cluster_id']
is None):
216 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_extend_cluster`")
218 collection_formats = {}
221 if 'cluster_id' in params:
222 path_params[
'cluster_id'] = params[
'cluster_id']
225 if 'username' in params:
226 query_params.append((
'username', params[
'username']))
227 if 'password' in params:
228 query_params.append((
'password', params[
'password']))
229 if 'dont_verify_memory' in params:
230 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
239 body_params = params[
'body']
241 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
242 [
'application/json'])
245 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
246 [
'application/json'])
252 '/clusters/{cluster_id}/extend',
'PUT',
257 post_params=form_params,
258 files=local_var_files,
259 response_type=
'Cluster',
260 auth_settings=auth_settings,
261 async_req=params.get(
'async_req'),
262 _return_http_data_only=params.get(
'_return_http_data_only'),
263 _preload_content=params.get(
'_preload_content',
True),
264 _request_timeout=params.get(
'_request_timeout'),
265 collection_formats=collection_formats)
268 """Get a cluster # noqa: E501
270 This method makes a synchronous HTTP request by default. To make an
271 asynchronous HTTP request, please pass async_req=True
272 >>> thread = api.cf_manager_rest_api_get_cluster_single(username, password, cluster_id, async_req=True)
273 >>> result = thread.get()
275 :param async_req bool
276 :param str username: OpenStack username (required)
277 :param str password: OpenStack password (required)
278 :param int cluster_id: ID of a cluster (required)
280 If the method is called asynchronously,
281 returns the request thread.
283 kwargs[
'_return_http_data_only'] =
True
284 if kwargs.get(
'async_req'):
291 """Get a cluster # noqa: E501
293 This method makes a synchronous HTTP request by default. To make an
294 asynchronous HTTP request, please pass async_req=True
295 >>> thread = api.cf_manager_rest_api_get_cluster_single_with_http_info(username, password, cluster_id, async_req=True)
296 >>> result = thread.get()
298 :param async_req bool
299 :param str username: OpenStack username (required)
300 :param str password: OpenStack password (required)
301 :param int cluster_id: ID of a cluster (required)
303 If the method is called asynchronously,
304 returns the request thread.
307 all_params = [
'username',
'password',
'cluster_id']
308 all_params.append(
'async_req')
309 all_params.append(
'_return_http_data_only')
310 all_params.append(
'_preload_content')
311 all_params.append(
'_request_timeout')
314 for key, val
in six.iteritems(params[
'kwargs']):
315 if key
not in all_params:
317 "Got an unexpected keyword argument '%s'"
318 " to method cf_manager_rest_api_get_cluster_single" % key
323 if (
'username' not in params
or
324 params[
'username']
is None):
325 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_cluster_single`")
327 if (
'password' not in params
or
328 params[
'password']
is None):
329 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_cluster_single`")
331 if (
'cluster_id' not in params
or
332 params[
'cluster_id']
is None):
333 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_get_cluster_single`")
335 collection_formats = {}
338 if 'cluster_id' in params:
339 path_params[
'cluster_id'] = params[
'cluster_id']
342 if 'username' in params:
343 query_params.append((
'username', params[
'username']))
344 if 'password' in params:
345 query_params.append((
'password', params[
'password']))
354 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
355 [
'application/json'])
361 '/clusters/{cluster_id}',
'GET',
366 post_params=form_params,
367 files=local_var_files,
368 response_type=
'Cluster',
369 auth_settings=auth_settings,
370 async_req=params.get(
'async_req'),
371 _return_http_data_only=params.get(
'_return_http_data_only'),
372 _preload_content=params.get(
'_preload_content',
True),
373 _request_timeout=params.get(
'_request_timeout'),
374 collection_formats=collection_formats)
377 """Get all clusters of a user # noqa: E501
379 This method makes a synchronous HTTP request by default. To make an
380 asynchronous HTTP request, please pass async_req=True
381 >>> thread = api.cf_manager_rest_api_get_clusters(username, password, async_req=True)
382 >>> result = thread.get()
384 :param async_req bool
385 :param str username: OpenStack username (required)
386 :param str password: OpenStack password (required)
388 :return: list[Cluster]
389 If the method is called asynchronously,
390 returns the request thread.
392 kwargs[
'_return_http_data_only'] =
True
393 if kwargs.get(
'async_req'):
400 """Get all clusters of a user # noqa: E501
402 This method makes a synchronous HTTP request by default. To make an
403 asynchronous HTTP request, please pass async_req=True
404 >>> thread = api.cf_manager_rest_api_get_clusters_with_http_info(username, password, async_req=True)
405 >>> result = thread.get()
407 :param async_req bool
408 :param str username: OpenStack username (required)
409 :param str password: OpenStack password (required)
411 :return: list[Cluster]
412 If the method is called asynchronously,
413 returns the request thread.
416 all_params = [
'username',
'password',
'limit']
417 all_params.append(
'async_req')
418 all_params.append(
'_return_http_data_only')
419 all_params.append(
'_preload_content')
420 all_params.append(
'_request_timeout')
423 for key, val
in six.iteritems(params[
'kwargs']):
424 if key
not in all_params:
426 "Got an unexpected keyword argument '%s'"
427 " to method cf_manager_rest_api_get_clusters" % key
432 if (
'username' not in params
or
433 params[
'username']
is None):
434 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_clusters`")
436 if (
'password' not in params
or
437 params[
'password']
is None):
438 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_clusters`")
440 collection_formats = {}
445 if 'username' in params:
446 query_params.append((
'username', params[
'username']))
447 if 'password' in params:
448 query_params.append((
'password', params[
'password']))
449 if 'limit' in params:
450 query_params.append((
'limit', params[
'limit']))
459 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
460 [
'application/json'])
471 post_params=form_params,
472 files=local_var_files,
473 response_type=
'list[Cluster]',
474 auth_settings=auth_settings,
475 async_req=params.get(
'async_req'),
476 _return_http_data_only=params.get(
'_return_http_data_only'),
477 _preload_content=params.get(
'_preload_content',
True),
478 _request_timeout=params.get(
'_request_timeout'),
479 collection_formats=collection_formats)
482 """Request a cluster # noqa: E501
484 This triggers the configuration of all *FPGA nodes* of a cluster as specified in the parameter `cluster_details`. The entry for an FPGA node must look like: ```json { \"node_id\": unique integer, \"image_id\": \"XXX-XX-XXX\" } ``` The parameters `instance_id` and `node_ip` are set by the Resource Manager. The `node_id`s must be unique for the whole cluster (FPGAs and CPUs). It is necessary to submit the information about the CPU nodes of a heterogeneous cluster to compile and distribute the *network routing configuration for the FPGAs correctly*. Hence, the entry for a CPU must look like: ```json { \"node_id\": unique integer, \"image_id\": \"NON_FPGA\", \"node_ip\": \"10.12.47.11\" } ``` The setup of the CPU nodes must be done by the users themselves. The `node_ip` of a CPU must be in the OpenStack user subnetwork (i.e. `10.12.X.Y`). Currently, the maximum supported size of a cluster is 64 (FPGA + CPU nodes). # noqa: E501
485 This method makes a synchronous HTTP request by default. To make an
486 asynchronous HTTP request, please pass async_req=True
487 >>> thread = api.cf_manager_rest_api_post_clusters(body, username, password, async_req=True)
488 >>> result = thread.get()
490 :param async_req bool
491 :param list[ClustersBody] body: Mapping of Node-IDs to Images (required)
492 :param str username: OpenStack username (required)
493 :param str password: OpenStack password (required)
494 :param str project_name: Name of the OpenStack project the quota should be acounted to, if a user has multiple projects.
495 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
497 If the method is called asynchronously,
498 returns the request thread.
500 kwargs[
'_return_http_data_only'] =
True
501 if kwargs.get(
'async_req'):
508 """Request a cluster # noqa: E501
510 This triggers the configuration of all *FPGA nodes* of a cluster as specified in the parameter `cluster_details`. The entry for an FPGA node must look like: ```json { \"node_id\": unique integer, \"image_id\": \"XXX-XX-XXX\" } ``` The parameters `instance_id` and `node_ip` are set by the Resource Manager. The `node_id`s must be unique for the whole cluster (FPGAs and CPUs). It is necessary to submit the information about the CPU nodes of a heterogeneous cluster to compile and distribute the *network routing configuration for the FPGAs correctly*. Hence, the entry for a CPU must look like: ```json { \"node_id\": unique integer, \"image_id\": \"NON_FPGA\", \"node_ip\": \"10.12.47.11\" } ``` The setup of the CPU nodes must be done by the users themselves. The `node_ip` of a CPU must be in the OpenStack user subnetwork (i.e. `10.12.X.Y`). Currently, the maximum supported size of a cluster is 64 (FPGA + CPU nodes). # noqa: E501
511 This method makes a synchronous HTTP request by default. To make an
512 asynchronous HTTP request, please pass async_req=True
513 >>> thread = api.cf_manager_rest_api_post_clusters_with_http_info(body, username, password, async_req=True)
514 >>> result = thread.get()
516 :param async_req bool
517 :param list[ClustersBody] body: Mapping of Node-IDs to Images (required)
518 :param str username: OpenStack username (required)
519 :param str password: OpenStack password (required)
520 :param str project_name: Name of the OpenStack project the quota should be acounted to, if a user has multiple projects.
521 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
523 If the method is called asynchronously,
524 returns the request thread.
527 all_params = [
'body',
'username',
'password',
'project_name',
'dont_verify_memory']
528 all_params.append(
'async_req')
529 all_params.append(
'_return_http_data_only')
530 all_params.append(
'_preload_content')
531 all_params.append(
'_request_timeout')
534 for key, val
in six.iteritems(params[
'kwargs']):
535 if key
not in all_params:
537 "Got an unexpected keyword argument '%s'"
538 " to method cf_manager_rest_api_post_clusters" % key
543 if (
'body' not in params
or
544 params[
'body']
is None):
545 raise ValueError(
"Missing the required parameter `body` when calling `cf_manager_rest_api_post_clusters`")
547 if (
'username' not in params
or
548 params[
'username']
is None):
549 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_post_clusters`")
551 if (
'password' not in params
or
552 params[
'password']
is None):
553 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_post_clusters`")
555 collection_formats = {}
560 if 'username' in params:
561 query_params.append((
'username', params[
'username']))
562 if 'password' in params:
563 query_params.append((
'password', params[
'password']))
564 if 'project_name' in params:
565 query_params.append((
'project_name', params[
'project_name']))
566 if 'dont_verify_memory' in params:
567 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
576 body_params = params[
'body']
578 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
579 [
'application/json'])
582 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
583 [
'application/json'])
594 post_params=form_params,
595 files=local_var_files,
596 response_type=
'Cluster',
597 auth_settings=auth_settings,
598 async_req=params.get(
'async_req'),
599 _return_http_data_only=params.get(
'_return_http_data_only'),
600 _preload_content=params.get(
'_preload_content',
True),
601 _request_timeout=params.get(
'_request_timeout'),
602 collection_formats=collection_formats)
605 """Remove nodes from an existing cluster # noqa: E501
607 This remove nodes the nodes in the `nodes_to_remove` list from an existing cluster. The `nodes_to_remove` list must contain the `node_id`s of the nodes that should be removed. After removing all specified nodes, the runtime information of all remaining nodes will be updated. The Roles of the remaining FPGA nodes are **not** reset during this method. If the last remaining FPGA node is removed, the complete cluster will be deleted (like `DELETE /cluster/{cluster_id}`). If errors occur during this method, the original/remaining cluster will be unaffected. # noqa: E501
608 This method makes a synchronous HTTP request by default. To make an
609 asynchronous HTTP request, please pass async_req=True
610 >>> thread = api.cf_manager_rest_api_reduce_cluster(body, username, password, cluster_id, async_req=True)
611 >>> result = thread.get()
613 :param async_req bool
614 :param list[int] body: List of Node-IDs that should be removed (required)
615 :param str username: OpenStack username (required)
616 :param str password: OpenStack password (required)
617 :param int cluster_id: ID of a cluster (required)
619 If the method is called asynchronously,
620 returns the request thread.
622 kwargs[
'_return_http_data_only'] =
True
623 if kwargs.get(
'async_req'):
630 """Remove nodes from an existing cluster # noqa: E501
632 This remove nodes the nodes in the `nodes_to_remove` list from an existing cluster. The `nodes_to_remove` list must contain the `node_id`s of the nodes that should be removed. After removing all specified nodes, the runtime information of all remaining nodes will be updated. The Roles of the remaining FPGA nodes are **not** reset during this method. If the last remaining FPGA node is removed, the complete cluster will be deleted (like `DELETE /cluster/{cluster_id}`). If errors occur during this method, the original/remaining cluster will be unaffected. # noqa: E501
633 This method makes a synchronous HTTP request by default. To make an
634 asynchronous HTTP request, please pass async_req=True
635 >>> thread = api.cf_manager_rest_api_reduce_cluster_with_http_info(body, username, password, cluster_id, async_req=True)
636 >>> result = thread.get()
638 :param async_req bool
639 :param list[int] body: List of Node-IDs that should be removed (required)
640 :param str username: OpenStack username (required)
641 :param str password: OpenStack password (required)
642 :param int cluster_id: ID of a cluster (required)
644 If the method is called asynchronously,
645 returns the request thread.
648 all_params = [
'body',
'username',
'password',
'cluster_id']
649 all_params.append(
'async_req')
650 all_params.append(
'_return_http_data_only')
651 all_params.append(
'_preload_content')
652 all_params.append(
'_request_timeout')
655 for key, val
in six.iteritems(params[
'kwargs']):
656 if key
not in all_params:
658 "Got an unexpected keyword argument '%s'"
659 " to method cf_manager_rest_api_reduce_cluster" % key
664 if (
'body' not in params
or
665 params[
'body']
is None):
666 raise ValueError(
"Missing the required parameter `body` when calling `cf_manager_rest_api_reduce_cluster`")
668 if (
'username' not in params
or
669 params[
'username']
is None):
670 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_reduce_cluster`")
672 if (
'password' not in params
or
673 params[
'password']
is None):
674 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_reduce_cluster`")
676 if (
'cluster_id' not in params
or
677 params[
'cluster_id']
is None):
678 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_reduce_cluster`")
680 collection_formats = {}
683 if 'cluster_id' in params:
684 path_params[
'cluster_id'] = params[
'cluster_id']
687 if 'username' in params:
688 query_params.append((
'username', params[
'username']))
689 if 'password' in params:
690 query_params.append((
'password', params[
'password']))
699 body_params = params[
'body']
701 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
702 [
'application/json'])
705 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
706 [
'application/json'])
712 '/clusters/{cluster_id}/reduce',
'PUT',
717 post_params=form_params,
718 files=local_var_files,
719 response_type=
'Cluster',
720 auth_settings=auth_settings,
721 async_req=params.get(
'async_req'),
722 _return_http_data_only=params.get(
'_return_http_data_only'),
723 _preload_content=params.get(
'_preload_content',
True),
724 _request_timeout=params.get(
'_request_timeout'),
725 collection_formats=collection_formats)
728 """Restart all application on FPGAs in this cluster # noqa: E501
730 This method makes a synchronous HTTP request by default. To make an
731 asynchronous HTTP request, please pass async_req=True
732 >>> thread = api.cf_manager_rest_api_restart_cluster(username, password, cluster_id, async_req=True)
733 >>> result = thread.get()
735 :param async_req bool
736 :param str username: OpenStack username (required)
737 :param str password: OpenStack password (required)
738 :param int cluster_id: ID of a cluster (required)
740 If the method is called asynchronously,
741 returns the request thread.
743 kwargs[
'_return_http_data_only'] =
True
744 if kwargs.get(
'async_req'):
751 """Restart all application on FPGAs in this cluster # noqa: E501
753 This method makes a synchronous HTTP request by default. To make an
754 asynchronous HTTP request, please pass async_req=True
755 >>> thread = api.cf_manager_rest_api_restart_cluster_with_http_info(username, password, cluster_id, async_req=True)
756 >>> result = thread.get()
758 :param async_req bool
759 :param str username: OpenStack username (required)
760 :param str password: OpenStack password (required)
761 :param int cluster_id: ID of a cluster (required)
763 If the method is called asynchronously,
764 returns the request thread.
767 all_params = [
'username',
'password',
'cluster_id']
768 all_params.append(
'async_req')
769 all_params.append(
'_return_http_data_only')
770 all_params.append(
'_preload_content')
771 all_params.append(
'_request_timeout')
774 for key, val
in six.iteritems(params[
'kwargs']):
775 if key
not in all_params:
777 "Got an unexpected keyword argument '%s'"
778 " to method cf_manager_rest_api_restart_cluster" % key
783 if (
'username' not in params
or
784 params[
'username']
is None):
785 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_restart_cluster`")
787 if (
'password' not in params
or
788 params[
'password']
is None):
789 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_restart_cluster`")
791 if (
'cluster_id' not in params
or
792 params[
'cluster_id']
is None):
793 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_restart_cluster`")
795 collection_formats = {}
798 if 'cluster_id' in params:
799 path_params[
'cluster_id'] = params[
'cluster_id']
802 if 'username' in params:
803 query_params.append((
'username', params[
'username']))
804 if 'password' in params:
805 query_params.append((
'password', params[
'password']))
817 '/clusters/{cluster_id}/restart',
'PATCH',
822 post_params=form_params,
823 files=local_var_files,
825 auth_settings=auth_settings,
826 async_req=params.get(
'async_req'),
827 _return_http_data_only=params.get(
'_return_http_data_only'),
828 _preload_content=params.get(
'_preload_content',
True),
829 _request_timeout=params.get(
'_request_timeout'),
830 collection_formats=collection_formats)
833 """Reconfigure one FPGA node of an existing cluster # noqa: E501
835 This method re-configures the given FPGA node in the given cluster. All settings remain the same and the runtime information of the cluster will be written to the updated instance again. The Roles of the other FPGA nodes are **not** reset during this method. If errors occur during this method, the other nodes of the cluster will be unaffected. **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
836 This method makes a synchronous HTTP request by default. To make an
837 asynchronous HTTP request, please pass async_req=True
838 >>> thread = api.cf_manager_rest_api_update_node_of_cluster(image_id, username, password, cluster_id, node_id, async_req=True)
839 >>> result = thread.get()
841 :param async_req bool
842 :param str image_id: (required)
843 :param str username: OpenStack username (required)
844 :param str password: OpenStack password (required)
845 :param int cluster_id: ID of a cluster (required)
846 :param int node_id: ID of a node within a cluster (required)
847 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
849 If the method is called asynchronously,
850 returns the request thread.
852 kwargs[
'_return_http_data_only'] =
True
853 if kwargs.get(
'async_req'):
860 """Reconfigure one FPGA node of an existing cluster # noqa: E501
862 This method re-configures the given FPGA node in the given cluster. All settings remain the same and the runtime information of the cluster will be written to the updated instance again. The Roles of the other FPGA nodes are **not** reset during this method. If errors occur during this method, the other nodes of the cluster will be unaffected. **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
863 This method makes a synchronous HTTP request by default. To make an
864 asynchronous HTTP request, please pass async_req=True
865 >>> thread = api.cf_manager_rest_api_update_node_of_cluster_with_http_info(image_id, username, password, cluster_id, node_id, async_req=True)
866 >>> result = thread.get()
868 :param async_req bool
869 :param str image_id: (required)
870 :param str username: OpenStack username (required)
871 :param str password: OpenStack password (required)
872 :param int cluster_id: ID of a cluster (required)
873 :param int node_id: ID of a node within a cluster (required)
874 :param int dont_verify_memory: If 1, don't verify the DDR4 memory during setup
876 If the method is called asynchronously,
877 returns the request thread.
880 all_params = [
'image_id',
'username',
'password',
'cluster_id',
'node_id',
'dont_verify_memory']
881 all_params.append(
'async_req')
882 all_params.append(
'_return_http_data_only')
883 all_params.append(
'_preload_content')
884 all_params.append(
'_request_timeout')
887 for key, val
in six.iteritems(params[
'kwargs']):
888 if key
not in all_params:
890 "Got an unexpected keyword argument '%s'"
891 " to method cf_manager_rest_api_update_node_of_cluster" % key
896 if (
'image_id' not in params
or
897 params[
'image_id']
is None):
898 raise ValueError(
"Missing the required parameter `image_id` when calling `cf_manager_rest_api_update_node_of_cluster`")
900 if (
'username' not in params
or
901 params[
'username']
is None):
902 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_update_node_of_cluster`")
904 if (
'password' not in params
or
905 params[
'password']
is None):
906 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_update_node_of_cluster`")
908 if (
'cluster_id' not in params
or
909 params[
'cluster_id']
is None):
910 raise ValueError(
"Missing the required parameter `cluster_id` when calling `cf_manager_rest_api_update_node_of_cluster`")
912 if (
'node_id' not in params
or
913 params[
'node_id']
is None):
914 raise ValueError(
"Missing the required parameter `node_id` when calling `cf_manager_rest_api_update_node_of_cluster`")
916 collection_formats = {}
919 if 'cluster_id' in params:
920 path_params[
'cluster_id'] = params[
'cluster_id']
921 if 'node_id' in params:
922 path_params[
'node_id'] = params[
'node_id']
925 if 'username' in params:
926 query_params.append((
'username', params[
'username']))
927 if 'password' in params:
928 query_params.append((
'password', params[
'password']))
929 if 'dont_verify_memory' in params:
930 query_params.append((
'dont_verify_memory', params[
'dont_verify_memory']))
936 if 'image_id' in params:
937 form_params.append((
'image_id', params[
'image_id']))
941 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
942 [
'application/json'])
945 header_params[
'Content-Type'] = self.
api_clientapi_client.select_header_content_type(
946 [
'multipart/form-data'])
952 '/clusters/{cluster_id}/{node_id}',
'PUT',
957 post_params=form_params,
958 files=local_var_files,
959 response_type=
'Cluster',
960 auth_settings=auth_settings,
961 async_req=params.get(
'async_req'),
962 _return_http_data_only=params.get(
'_return_http_data_only'),
963 _preload_content=params.get(
'_preload_content',
True),
964 _request_timeout=params.get(
'_request_timeout'),
965 collection_formats=collection_formats)
def cf_manager_rest_api_post_clusters(self, body, username, password, **kwargs)
def __init__(self, api_client=None)
def cf_manager_rest_api_post_clusters_with_http_info(self, body, username, password, **kwargs)
def cf_manager_rest_api_get_cluster_single_with_http_info(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_get_cluster_single(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_extend_cluster(self, body, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_delete_cluster_with_http_info(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_reduce_cluster(self, body, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_reduce_cluster_with_http_info(self, body, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_update_node_of_cluster_with_http_info(self, image_id, username, password, cluster_id, node_id, **kwargs)
def cf_manager_rest_api_restart_cluster_with_http_info(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_restart_cluster(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_delete_cluster(self, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_extend_cluster_with_http_info(self, body, username, password, cluster_id, **kwargs)
def cf_manager_rest_api_get_clusters(self, username, password, **kwargs)
def cf_manager_rest_api_update_node_of_cluster(self, image_id, username, password, cluster_id, node_id, **kwargs)
def cf_manager_rest_api_get_clusters_with_http_info(self, username, password, **kwargs)