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 """Returns all composable logics of the given part that are `IN_USE` # 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_get_composable_logic_all_part(username, password, part, async_req=True)
41 >>> result = thread.get()
44 :param str username: OpenStack username (required)
45 :param str password: OpenStack password (required)
46 :param str part: The part of the composable logics (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 """Returns all composable logics of the given part that are `IN_USE` # 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_get_composable_logic_all_part_with_http_info(username, password, part, async_req=True)
64 >>> result = thread.get()
67 :param str username: OpenStack username (required)
68 :param str password: OpenStack password (required)
69 :param str part: The part of the composable logics (required)
71 If the method is called asynchronously,
72 returns the request thread.
75 all_params = [
'username',
'password',
'part']
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_get_composable_logic_all_part" % 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_get_composable_logic_all_part`")
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_get_composable_logic_all_part`")
99 if (
'part' not in params
or
100 params[
'part']
is None):
101 raise ValueError(
"Missing the required parameter `part` when calling `cf_manager_rest_api_get_composable_logic_all_part`")
103 collection_formats = {}
107 path_params[
'part'] = params[
'part']
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 '/composablelogic/by_part/{part}',
'GET',
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 """Returns all composable logics of the given prp-type that are `IN_USE` # 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_get_composable_logic_all_prp(username, password, prp, 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 int prp: The prp-level of the composable logics (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 """Returns all composable logics of the given prp-type that are `IN_USE` # 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_get_composable_logic_all_prp_with_http_info(username, password, prp, 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 int prp: The prp-level of the composable logics (required)
176 If the method is called asynchronously,
177 returns the request thread.
180 all_params = [
'username',
'password',
'prp']
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_get_composable_logic_all_prp" % 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_get_composable_logic_all_prp`")
200 if (
'password' not in params
or
201 params[
'password']
is None):
202 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_composable_logic_all_prp`")
204 if (
'prp' not in params
or
205 params[
'prp']
is None):
206 raise ValueError(
"Missing the required parameter `prp` when calling `cf_manager_rest_api_get_composable_logic_all_prp`")
208 collection_formats = {}
212 path_params[
'prp'] = params[
'prp']
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 '/composablelogic/by_prp/{prp}',
'GET',
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 """Returns all composable logics of the given shell-type that are `IN_USE` # noqa: E501
248 If the resulting list is empty, the shell_type is invalid (or no such composalbe logics exist). # noqa: E501
249 This method makes a synchronous HTTP request by default. To make an
250 asynchronous HTTP request, please pass async_req=True
251 >>> thread = api.cf_manager_rest_api_get_composable_logic_all_shell_type(username, password, shell_type, async_req=True)
252 >>> result = thread.get()
254 :param async_req bool
255 :param str username: OpenStack username (required)
256 :param str password: OpenStack password (required)
257 :param str shell_type: Name of cloudFPGA Shell (required)
259 If the method is called asynchronously,
260 returns the request thread.
262 kwargs[
'_return_http_data_only'] =
True
263 if kwargs.get(
'async_req'):
270 """Returns all composable logics of the given shell-type that are `IN_USE` # noqa: E501
272 If the resulting list is empty, the shell_type is invalid (or no such composalbe logics exist). # noqa: E501
273 This method makes a synchronous HTTP request by default. To make an
274 asynchronous HTTP request, please pass async_req=True
275 >>> thread = api.cf_manager_rest_api_get_composable_logic_all_shell_type_with_http_info(username, password, shell_type, async_req=True)
276 >>> result = thread.get()
278 :param async_req bool
279 :param str username: OpenStack username (required)
280 :param str password: OpenStack password (required)
281 :param str shell_type: Name of cloudFPGA Shell (required)
283 If the method is called asynchronously,
284 returns the request thread.
287 all_params = [
'username',
'password',
'shell_type']
288 all_params.append(
'async_req')
289 all_params.append(
'_return_http_data_only')
290 all_params.append(
'_preload_content')
291 all_params.append(
'_request_timeout')
294 for key, val
in six.iteritems(params[
'kwargs']):
295 if key
not in all_params:
297 "Got an unexpected keyword argument '%s'"
298 " to method cf_manager_rest_api_get_composable_logic_all_shell_type" % key
303 if (
'username' not in params
or
304 params[
'username']
is None):
305 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_composable_logic_all_shell_type`")
307 if (
'password' not in params
or
308 params[
'password']
is None):
309 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_composable_logic_all_shell_type`")
311 if (
'shell_type' not in params
or
312 params[
'shell_type']
is None):
313 raise ValueError(
"Missing the required parameter `shell_type` when calling `cf_manager_rest_api_get_composable_logic_all_shell_type`")
315 collection_formats = {}
318 if 'shell_type' in params:
319 path_params[
'shell_type'] = params[
'shell_type']
322 if 'username' in params:
323 query_params.append((
'username', params[
'username']))
324 if 'password' in params:
325 query_params.append((
'password', params[
'password']))
337 '/composablelogic/by_shell/{shell_type}',
'GET',
342 post_params=form_params,
343 files=local_var_files,
345 auth_settings=auth_settings,
346 async_req=params.get(
'async_req'),
347 _return_http_data_only=params.get(
'_return_http_data_only'),
348 _preload_content=params.get(
'_preload_content',
True),
349 _request_timeout=params.get(
'_request_timeout'),
350 collection_formats=collection_formats)
353 """Get the dcp file of a composable logic # noqa: E501
355 This method makes a synchronous HTTP request by default. To make an
356 asynchronous HTTP request, please pass async_req=True
357 >>> thread = api.cf_manager_rest_api_get_composable_logic_dcp(username, password, cl_id, async_req=True)
358 >>> result = thread.get()
360 :param async_req bool
361 :param str username: OpenStack username (required)
362 :param str password: OpenStack password (required)
363 :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
365 If the method is called asynchronously,
366 returns the request thread.
368 kwargs[
'_return_http_data_only'] =
True
369 if kwargs.get(
'async_req'):
376 """Get the dcp file of a composable logic # noqa: E501
378 This method makes a synchronous HTTP request by default. To make an
379 asynchronous HTTP request, please pass async_req=True
380 >>> thread = api.cf_manager_rest_api_get_composable_logic_dcp_with_http_info(username, password, cl_id, async_req=True)
381 >>> result = thread.get()
383 :param async_req bool
384 :param str username: OpenStack username (required)
385 :param str password: OpenStack password (required)
386 :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
388 If the method is called asynchronously,
389 returns the request thread.
392 all_params = [
'username',
'password',
'cl_id']
393 all_params.append(
'async_req')
394 all_params.append(
'_return_http_data_only')
395 all_params.append(
'_preload_content')
396 all_params.append(
'_request_timeout')
399 for key, val
in six.iteritems(params[
'kwargs']):
400 if key
not in all_params:
402 "Got an unexpected keyword argument '%s'"
403 " to method cf_manager_rest_api_get_composable_logic_dcp" % key
408 if (
'username' not in params
or
409 params[
'username']
is None):
410 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_composable_logic_dcp`")
412 if (
'password' not in params
or
413 params[
'password']
is None):
414 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_composable_logic_dcp`")
416 if (
'cl_id' not in params
or
417 params[
'cl_id']
is None):
418 raise ValueError(
"Missing the required parameter `cl_id` when calling `cf_manager_rest_api_get_composable_logic_dcp`")
420 collection_formats = {}
423 if 'cl_id' in params:
424 path_params[
'cl_id'] = params[
'cl_id']
427 if 'username' in params:
428 query_params.append((
'username', params[
'username']))
429 if 'password' in params:
430 query_params.append((
'password', params[
'password']))
442 '/composablelogic/{cl_id}/dcp',
'GET',
447 post_params=form_params,
448 files=local_var_files,
450 auth_settings=auth_settings,
451 async_req=params.get(
'async_req'),
452 _return_http_data_only=params.get(
'_return_http_data_only'),
453 _preload_content=params.get(
'_preload_content',
True),
454 _request_timeout=params.get(
'_request_timeout'),
455 collection_formats=collection_formats)
458 """Get the meta data of a composable logic # noqa: E501
460 This method makes a synchronous HTTP request by default. To make an
461 asynchronous HTTP request, please pass async_req=True
462 >>> thread = api.cf_manager_rest_api_get_composable_logic_meta(username, password, cl_id, async_req=True)
463 >>> result = thread.get()
465 :param async_req bool
466 :param str username: OpenStack username (required)
467 :param str password: OpenStack password (required)
468 :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
470 If the method is called asynchronously,
471 returns the request thread.
473 kwargs[
'_return_http_data_only'] =
True
474 if kwargs.get(
'async_req'):
481 """Get the meta data of a composable logic # noqa: E501
483 This method makes a synchronous HTTP request by default. To make an
484 asynchronous HTTP request, please pass async_req=True
485 >>> thread = api.cf_manager_rest_api_get_composable_logic_meta_with_http_info(username, password, cl_id, async_req=True)
486 >>> result = thread.get()
488 :param async_req bool
489 :param str username: OpenStack username (required)
490 :param str password: OpenStack password (required)
491 :param int cl_id: ID of a composable logic (Static Shell or Mantles) (required)
493 If the method is called asynchronously,
494 returns the request thread.
497 all_params = [
'username',
'password',
'cl_id']
498 all_params.append(
'async_req')
499 all_params.append(
'_return_http_data_only')
500 all_params.append(
'_preload_content')
501 all_params.append(
'_request_timeout')
504 for key, val
in six.iteritems(params[
'kwargs']):
505 if key
not in all_params:
507 "Got an unexpected keyword argument '%s'"
508 " to method cf_manager_rest_api_get_composable_logic_meta" % key
513 if (
'username' not in params
or
514 params[
'username']
is None):
515 raise ValueError(
"Missing the required parameter `username` when calling `cf_manager_rest_api_get_composable_logic_meta`")
517 if (
'password' not in params
or
518 params[
'password']
is None):
519 raise ValueError(
"Missing the required parameter `password` when calling `cf_manager_rest_api_get_composable_logic_meta`")
521 if (
'cl_id' not in params
or
522 params[
'cl_id']
is None):
523 raise ValueError(
"Missing the required parameter `cl_id` when calling `cf_manager_rest_api_get_composable_logic_meta`")
525 collection_formats = {}
528 if 'cl_id' in params:
529 path_params[
'cl_id'] = params[
'cl_id']
532 if 'username' in params:
533 query_params.append((
'username', params[
'username']))
534 if 'password' in params:
535 query_params.append((
'password', params[
'password']))
544 header_params[
'Accept'] = self.
api_clientapi_client.select_header_accept(
545 [
'application/json'])
551 '/composablelogic/{cl_id}/meta',
'GET',
556 post_params=form_params,
557 files=local_var_files,
558 response_type=
'Image',
559 auth_settings=auth_settings,
560 async_req=params.get(
'async_req'),
561 _return_http_data_only=params.get(
'_return_http_data_only'),
562 _preload_content=params.get(
'_preload_content',
True),
563 _request_timeout=params.get(
'_request_timeout'),
564 collection_formats=collection_formats)
def cf_manager_rest_api_get_composable_logic_all_prp(self, username, password, prp, **kwargs)
def cf_manager_rest_api_get_composable_logic_all_part(self, username, password, part, **kwargs)
def __init__(self, api_client=None)
def cf_manager_rest_api_get_composable_logic_dcp(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_composable_logic_dcp_with_http_info(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_composable_logic_meta_with_http_info(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_composable_logic_all_prp_with_http_info(self, username, password, prp, **kwargs)
def cf_manager_rest_api_get_composable_logic_all_part_with_http_info(self, username, password, part, **kwargs)
def cf_manager_rest_api_get_composable_logic_meta(self, username, password, cl_id, **kwargs)
def cf_manager_rest_api_get_composable_logic_all_shell_type_with_http_info(self, username, password, shell_type, **kwargs)
def cf_manager_rest_api_get_composable_logic_all_shell_type(self, username, password, shell_type, **kwargs)