f4b01a5f0c71f0b6d3ad98f3a41fccd2cd26b2db
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / oof / oof.py
1 #!/usr/bin/env python3
2 ###
3 # ============LICENSE_START=======================================================
4 # ORAN SMO PACKAGE - PYTHONSDK TESTS
5 # ================================================================================
6 # Copyright (C) 2022 AT&T Intellectual Property. All rights
7 #                             reserved.
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 # http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END============================================
21 # ===================================================================
22 #
23 ###
24 """Onap OOF module."""
25 from onapsdk.configuration import settings
26 from onapsdk.onap_service import OnapService
27
28 class Oof(OnapService):
29     """OOF class."""
30
31     def get_versions(self) -> dict:
32         """
33         Get OOF HAS API supported versions.
34
35         Returns:
36            the list of supported versions
37
38         """
39         response = self.send_message_json('GET', 'Get OOF supported version', settings.OOF_URL)
40         return response