RIC-642 related changes: REST subscription, rnib enhancements, symptomdata, rest...
[ric-plt/xapp-frame-py.git] / ricxappframe / subsclient / api / xapp_api.py
1 # coding: utf-8
2
3 """
4     RIC subscription
5
6     This is the initial REST API for RIC subscription  # noqa: E501
7
8     OpenAPI spec version: 0.0.4
9     
10     Generated by: https://github.com/swagger-api/swagger-codegen.git
11 """
12
13
14 from __future__ import absolute_import
15
16 import re  # noqa: F401
17
18 # python 2 and python 3 compatibility library
19 import six
20
21 from ricxappframe.subsclient.api_client import ApiClient
22
23
24 class XappApi(object):
25     """NOTE: This class is auto generated by the swagger code generator program.
26
27     Do not edit the class manually.
28     Ref: https://github.com/swagger-api/swagger-codegen
29     """
30
31     def __init__(self, api_client=None):
32         if api_client is None:
33             api_client = ApiClient()
34         self.api_client = api_client
35
36     def get_xapp_config_list(self, **kwargs):  # noqa: E501
37         """Returns the configuration of all xapps  # noqa: E501
38
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()
43
44         :param async_req bool
45         :return: XappConfigList
46                  If the method is called asynchronously,
47                  returns the request thread.
48         """
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
52         else:
53             (data) = self.get_xapp_config_list_with_http_info(**kwargs)  # noqa: E501
54             return data
55
56     def get_xapp_config_list_with_http_info(self, **kwargs):  # noqa: E501
57         """Returns the configuration of all xapps  # noqa: E501
58
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()
63
64         :param async_req bool
65         :return: XappConfigList
66                  If the method is called asynchronously,
67                  returns the request thread.
68         """
69
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')
75
76         params = locals()
77         for key, val in six.iteritems(params['kwargs']):
78             if key not in all_params:
79                 raise TypeError(
80                     "Got an unexpected keyword argument '%s'"
81                     " to method get_xapp_config_list" % key
82                 )
83             params[key] = val
84         del params['kwargs']
85
86         collection_formats = {}
87
88         path_params = {}
89
90         query_params = []
91
92         header_params = {}
93
94         form_params = []
95         local_var_files = {}
96
97         body_params = None
98         # HTTP header `Accept`
99         header_params['Accept'] = self.api_client.select_header_accept(
100             ['application/json', 'application/xml'])  # noqa: E501
101
102         # Authentication setting
103         auth_settings = []  # noqa: E501
104
105         return self.api_client.call_api(
106             '/config', 'GET',
107             path_params,
108             query_params,
109             header_params,
110             body=body_params,
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)