6 This is the initial REST API for RIC subscription # noqa: E501
8 OpenAPI spec version: 0.0.4
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
14 from __future__ import absolute_import
16 import re # noqa: F401
18 # python 2 and python 3 compatibility library
21 from ricxappframe.subsclient.api_client import ApiClient
24 class XappApi(object):
25 """NOTE: This class is auto generated by the swagger code generator program.
27 Do not edit the class manually.
28 Ref: https://github.com/swagger-api/swagger-codegen
31 def __init__(self, api_client=None):
32 if api_client is None:
33 api_client = ApiClient()
34 self.api_client = api_client
36 def get_xapp_config_list(self, **kwargs): # noqa: E501
37 """Returns the configuration of all xapps # 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.get_xapp_config_list(async_req=True)
42 >>> result = thread.get()
45 :return: XappConfigList
46 If the method is called asynchronously,
47 returns the request thread.
49 kwargs['_return_http_data_only'] = True
50 if kwargs.get('async_req'):
51 return self.get_xapp_config_list_with_http_info(**kwargs) # noqa: E501
53 (data) = self.get_xapp_config_list_with_http_info(**kwargs) # noqa: E501
56 def get_xapp_config_list_with_http_info(self, **kwargs): # noqa: E501
57 """Returns the configuration of all xapps # noqa: E501
59 This method makes a synchronous HTTP request by default. To make an
60 asynchronous HTTP request, please pass async_req=True
61 >>> thread = api.get_xapp_config_list_with_http_info(async_req=True)
62 >>> result = thread.get()
65 :return: XappConfigList
66 If the method is called asynchronously,
67 returns the request thread.
70 all_params = [] # noqa: E501
71 all_params.append('async_req')
72 all_params.append('_return_http_data_only')
73 all_params.append('_preload_content')
74 all_params.append('_request_timeout')
77 for key, val in six.iteritems(params['kwargs']):
78 if key not in all_params:
80 "Got an unexpected keyword argument '%s'"
81 " to method get_xapp_config_list" % key
86 collection_formats = {}
98 # HTTP header `Accept`
99 header_params['Accept'] = self.api_client.select_header_accept(
100 ['application/json', 'application/xml']) # noqa: E501
102 # Authentication setting
103 auth_settings = [] # noqa: E501
105 return self.api_client.call_api(
111 post_params=form_params,
112 files=local_var_files,
113 response_type='XappConfigList', # noqa: E501
114 auth_settings=auth_settings,
115 async_req=params.get('async_req'),
116 _return_http_data_only=params.get('_return_http_data_only'),
117 _preload_content=params.get('_preload_content', True),
118 _request_timeout=params.get('_request_timeout'),
119 collection_formats=collection_formats)