diff --git a/.gitignore b/.gitignore index e9a1c35..f4df818 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ __pycache__/ # C extensions *.so -.idea + # Distribution / packaging .Python env/ diff --git a/README.rst b/README.rst index cf9dcfd..b37dcda 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ ************* -Evolved5G CLI & SDK +Evolved5G_CLI ************* @@ -14,7 +14,7 @@ Evolved5G CLI & SDK -Evolved5G CLI prototype +Evolved5G CLI prototype * Free software: Apache Software License 2.0 @@ -26,7 +26,6 @@ Features * Generate a new python NetApp from a template * Assist in connecting the new NetApp & repo with EVOLVED-5G CI/CD pipeline -* SDK Libraries for interacting with the 5G-API ============ Installation @@ -79,9 +78,10 @@ Once you have a copy of the source, you can install it with: .. _tarball: https://github.com/EVOLVED-5G/SDK-CLI/tarball/master ============ -CLI Usage +Usage ============ + Run the following command to access the documentation/help page and read about the various options .. code-block:: console @@ -96,51 +96,13 @@ To generate a new NetApp project run the following command. You will be asked fo .. code-block:: console $ evolved5g generate - + or to learn more about the available options - + .. code-block:: console $ evolved5g generate --help - - -============ -SDK - Libraries -============ - -At the current release the SDK contains one class "**LocationSubscriber**" -that allows you to track devices and retrieve updates about their location. -You can use LocationSubscriber to create subscriptions, where each one of them can be used to track a device. - -Examples of usage /Have a look at the code ----- -Have a look at the examples folder for code samples on how to use the SDK Library. - -`Location subscriber example `_ - -Prerequisites / How to start ----- - -Install the requirements_dev.txt - - pip install -r requirements_dev.txt - -Make sure you have initiated the NEF_EMULATOR at url http://localhost:8888 (See `here `_ for instructions), -you have logged in to the interface, clicked on the map and have started the simulation. -Then run a webserver in order to capture the callback post requests from NEF EMULATOR: On the terminal run the following commands to initiaze the webserver. - - - export FLASK_APP=/home/user/evolved-5g/SDK-CLI/examples/api.py - - export FLASK_ENV=development - - python -m flask run --host=0.0.0.0 - -where FLASK_APP should point to the absolute path of the SDK-CLI/examples/api.py file. -These commands will initialize a web server at http://127.0.0.1:5000/ - -Now you can run `Location subscriber example `_ -You should be able to view the location updates, printed in the terminal that runs the FLASK webserver + Credits ------- @@ -148,4 +110,4 @@ Credits This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. .. _Cookiecutter: https://github.com/audreyr/cookiecutter -.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage +.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 25e7f56..ff0e527 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -7,8 +7,7 @@ Welcome to Evolved5G_CLI's documentation! readme installation - cli - libraries + usage modules contributing history diff --git a/docs/libraries.rst b/docs/libraries.rst deleted file mode 100644 index 7dd3d2a..0000000 --- a/docs/libraries.rst +++ /dev/null @@ -1,37 +0,0 @@ -SDK - Libraries -============ - -At the current release the SDK contains one class "**LocationSubscriber**" -that allows you to track devices and retrieve updates about their location. -You can use LocationSubscriber to create subscriptions, where each one of them can be used to track a device. - -Examples of usage /Have a look at the code ----- -Have a look at the examples folder for code samples on how to use the SDK Library. - -`Location subscriber example `_ - -Prerequisites / How to start ----- - -Install the requirements_dev.txt - - pip install -r requirements_dev.txt - -Make sure you have initiated the NEF_EMULATOR at url http://localhost:8888 (See `here `_ for instructions), -you have logged in to the interface, clicked on the map and have started the simulation. - -Then run a webserver in order to capture the callback post requests from NEF EMULATOR: On the terminal run the following commands to initialize the webserver. - - - export FLASK_APP=/home/user/evolved-5g/SDK-CLI/examples/api.py - - export FLASK_ENV=development - - python -m flask run --host=0.0.0.0 - -where FLASK_APP should point to the absolute path of the SDK-CLI/examples/api.py file. -These commands will initialize a web server at http://127.0.0.1:5000/ - -Now you can run `Location subscriber example `_ -You should be able to view the location updates, printed in the terminal that runs the FLASK webserver diff --git a/docs/cli.rst b/docs/usage.rst similarity index 96% rename from docs/cli.rst rename to docs/usage.rst index a21b066..386c099 100644 --- a/docs/cli.rst +++ b/docs/usage.rst @@ -1,5 +1,5 @@ ============ -CLI +Usage ============ @@ -17,9 +17,10 @@ To generate a new NetApp project run the following command. You will be asked fo .. code-block:: console $ evolved5g generate - + or to learn more about the available options - + .. code-block:: console $ evolved5g generate --help + \ No newline at end of file diff --git a/evolved5g/sdk.py b/evolved5g/sdk.py index 1c3b8e7..3e583dd 100644 --- a/evolved5g/sdk.py +++ b/evolved5g/sdk.py @@ -1,149 +1 @@ -"""SDK module""" -from evolved5g import swagger_client -from evolved5g.swagger_client import MonitoringEventAPIApi, \ - MonitoringEventSubscriptionCreate, MonitoringEventSubscription - -""" - This SKD class allows you to track devices and retrieve updates about their location. - You can create subscriptions where each one of them can be used to track a device. - A notification is sent to a callback url you will provide, everytime the user device changes Cell -""" - - -class LocationSubscriber: - - def __init__(self, host: str, bearer_access_token: str): - """ - Initializes class LocationSubscriber - - :param str host: The url of the 5G-API - :param str bearer_access_token: The beared access token that will be used to authenticate with the 5G-API - """ - configuration = swagger_client.Configuration() - configuration.host = host - configuration.access_token = bearer_access_token - api_client = swagger_client.ApiClient(configuration=configuration) - self.monitoring_event_api = MonitoringEventAPIApi(api_client) - - def __create_subscription_request(self, - external_id, - msisdn, - ipv4_addr, - ipv6_addr, - notification_destination, - maximum_number_of_reports, - monitor_expire_time) -> MonitoringEventSubscriptionCreate: - monitoring_type = "LOCATION_REPORTING" - return MonitoringEventSubscriptionCreate(external_id, - msisdn, - ipv4_addr, - ipv6_addr, - notification_destination, - monitoring_type, - maximum_number_of_reports, - monitor_expire_time) - - def create_subscription(self, - netapp_id: str, - external_id, - misisdn, - ipv4_addr, - ipv6_addr, - notification_destination, - maximum_number_of_reports, - monitor_expire_time): - """ - Creates a subscription that will be used to retrieve Location information about a device. - - :param str external_id: string (The ID of the Netapp that creates a subscription) - :param str external_id: Globally unique identifier containing a Domain Identifier and a Local Identifier. @ - :param str misisdn: Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. - :param str ipv4_addr: String identifying an Ipv4 address - :param ipv6_addr: String identifying an Ipv6 address. - :param notification_destination: The url that you will notifications about the location of the user - :param maximum_number_of_reports: Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request - :param monitor_expire_time: Identifies the absolute time at which the related monitoring event request is considered to expire - """ - body = self.__create_subscription_request(external_id, - misisdn, - ipv4_addr, - ipv6_addr, - notification_destination, - maximum_number_of_reports, - monitor_expire_time) - - # a monitoring event report - response = self.monitoring_event_api.create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post( - body, - netapp_id) - return response - - def update_subscription(self, - netapp_id: str, - subscription_id: str, - external_id, - misisd, - ipv4_addr, - ipv6_addr, - notification_destination, - maximum_number_of_reports, - monitor_expire_time) -> MonitoringEventSubscription: - """ - Creates a subscription that will be used to retrieve Location information about a device. - - :param str netapp_id: string (The ID of the Netapp that creates a subscription) - :param str subscription_id: string (Identifier of the subscription resource) - :param str external_id: Globally unique identifier containing a Domain Identifier and a Local Identifier. @ - :param str misisdn: Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. - :param str ipv4_addr: String identifying an Ipv4 address - :param ipv6_addr: String identifying an Ipv6 address. - :param notification_destination: The url that you will notifications about the location of the user - :param maximum_number_of_reports: Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request - :param monitor_expire_time: Identifies the absolute time at which the related monitoring event request is considered to expire - """ - body = self.__create_subscription_request(external_id, - misisd, - ipv4_addr, - ipv6_addr, - notification_destination, - maximum_number_of_reports, - monitor_expire_time) - - return self.monitoring_event_api.update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put( - body, netapp_id, subscription_id) - - def get_all_subscriptions(self, netapp_id: str,skip:int =0, limit: int=100): - """ - Reads all active subscriptions - - :param skip: The number of subscriptions to skip - :param limit: The maximum number of transcriptions to return - :param str netapp_id: string (The ID of the Netapp that creates a subscription) - """ - - return self.monitoring_event_api.read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get( - netapp_id, - skip=skip, - limit=limit) - - def get_subscription(self, netapp_id: str, subscription_id: str) -> MonitoringEventSubscription: - """ - Gets subscription by id - - :param str netapp_id: string (The ID of the Netapp that creates a subscription) - :param str subscription_id: string (Identifier of the subscription resource) - """ - return self.monitoring_event_api.read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get( - netapp_id, - subscription_id) - - def delete_subscription(self, netapp_id: str, subscription_id: str): - """ - Delete a subscription - - :param str netapp_id: string (The ID of the Netapp that creates a subscription) - :param str subscription_id: string (Identifier of the subscription resource) - """ - return self.monitoring_event_api.delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete( - netapp_id, - subscription_id) +"""SDK module""" \ No newline at end of file diff --git a/evolved5g/swagger_client/__init__.py b/evolved5g/swagger_client/__init__.py deleted file mode 100644 index 125ab06..0000000 --- a/evolved5g/swagger_client/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from evolved5g.swagger_client.api.cells_api import CellsApi -from evolved5g.swagger_client.api.location_frontend_api import LocationFrontendApi -from evolved5g.swagger_client.api.monitoring_event_api_api import MonitoringEventAPIApi -from evolved5g.swagger_client.api.session_with_qo_s_api_api import SessionWithQoSAPIApi -from evolved5g.swagger_client.api.u_es_api import UEsApi -from evolved5g.swagger_client.api.default_api import DefaultApi -from evolved5g.swagger_client.api.g_n_bs_api import GNBsApi -from evolved5g.swagger_client.api.login_api import LoginApi -from evolved5g.swagger_client.api.users_api import UsersApi -from evolved5g.swagger_client.api.utils_api import UtilsApi -# import ApiClient -from evolved5g.swagger_client.api_client import ApiClient -from evolved5g.swagger_client.configuration import Configuration -# import models into sdk package -from evolved5g.swagger_client.models.all_of_ue_create_speed import AllOfUECreateSpeed -from evolved5g.swagger_client.models.all_of_ue_speed import AllOfUESpeed -from evolved5g.swagger_client.models.all_of_ue_update_speed import AllOfUEUpdateSpeed -from evolved5g.swagger_client.models.all_of_u_es_speed import AllOfUEsSpeed -from evolved5g.swagger_client.models.as_session_with_qo_s_subscription import AsSessionWithQoSSubscription -from evolved5g.swagger_client.models.body_create_user_open_api_v1_users_open_post import BodyCreateUserOpenApiV1UsersOpenPost -from evolved5g.swagger_client.models.body_login_access_token_api_v1_login_access_token_post import BodyLoginAccessTokenApiV1LoginAccessTokenPost -from evolved5g.swagger_client.models.body_reset_password_api_v1_reset_password_post import BodyResetPasswordApiV1ResetPasswordPost -from evolved5g.swagger_client.models.body_update_user_me_api_v1_users_me_put import BodyUpdateUserMeApiV1UsersMePut -from evolved5g.swagger_client.models.cell import Cell -from evolved5g.swagger_client.models.cell_create import CellCreate -from evolved5g.swagger_client.models.cell_update import CellUpdate -from evolved5g.swagger_client.models.gnb import GNB -from evolved5g.swagger_client.models.gnb_create import GNBCreate -from evolved5g.swagger_client.models.gnb_update import GNBUpdate -from evolved5g.swagger_client.models.http_validation_error import HTTPValidationError -from evolved5g.swagger_client.models.location_info import LocationInfo -from evolved5g.swagger_client.models.monitoring_event_report import MonitoringEventReport -from evolved5g.swagger_client.models.monitoring_event_report_received import MonitoringEventReportReceived -from evolved5g.swagger_client.models.monitoring_event_subscription import MonitoringEventSubscription -from evolved5g.swagger_client.models.monitoring_event_subscription_create import MonitoringEventSubscriptionCreate -from evolved5g.swagger_client.models.monitoring_type import MonitoringType -from evolved5g.swagger_client.models.msg import Msg -from evolved5g.swagger_client.models.path import Path -from evolved5g.swagger_client.models.path_create import PathCreate -from evolved5g.swagger_client.models.path_update import PathUpdate -from evolved5g.swagger_client.models.point import Point -from evolved5g.swagger_client.models.qos_monitoring_information import QosMonitoringInformation -from evolved5g.swagger_client.models.reporting_frequency import ReportingFrequency -from evolved5g.swagger_client.models.requested_qo_s_monitoring_parameters import RequestedQoSMonitoringParameters -from evolved5g.swagger_client.models.snssai import Snssai -from evolved5g.swagger_client.models.speed import Speed -from evolved5g.swagger_client.models.token import Token -from evolved5g.swagger_client.models.ue import UE -from evolved5g.swagger_client.models.ue_create import UECreate -from evolved5g.swagger_client.models.ue_update import UEUpdate -from evolved5g.swagger_client.models.u_es import UEs -from evolved5g.swagger_client.models.usage_threshold import UsageThreshold -from evolved5g.swagger_client.models.user import User -from evolved5g.swagger_client.models.user_create import UserCreate -from evolved5g.swagger_client.models.user_update import UserUpdate -from evolved5g.swagger_client.models.validation_error import ValidationError diff --git a/evolved5g/swagger_client/api/__init__.py b/evolved5g/swagger_client/api/__init__.py deleted file mode 100644 index c2546be..0000000 --- a/evolved5g/swagger_client/api/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from evolved5g.swagger_client.api.cells_api import CellsApi -from evolved5g.swagger_client.api.location_frontend_api import LocationFrontendApi -from evolved5g.swagger_client.api.monitoring_event_api_api import MonitoringEventAPIApi -from evolved5g.swagger_client.api.session_with_qo_s_api_api import SessionWithQoSAPIApi -from evolved5g.swagger_client.api.u_es_api import UEsApi -from evolved5g.swagger_client.api.default_api import DefaultApi -from evolved5g.swagger_client.api.g_n_bs_api import GNBsApi -from evolved5g.swagger_client.api.login_api import LoginApi -from evolved5g.swagger_client.api.users_api import UsersApi -from evolved5g.swagger_client.api.utils_api import UtilsApi diff --git a/evolved5g/swagger_client/api/cells_api.py b/evolved5g/swagger_client/api/cells_api.py deleted file mode 100644 index 0f0ba9a..0000000 --- a/evolved5g/swagger_client/api/cells_api.py +++ /dev/null @@ -1,627 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class CellsApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_cell_api_v1_cells_post(self, body, **kwargs): # noqa: E501 - """Create Cell # noqa: E501 - - Create new cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_cell_api_v1_cells_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CellCreate body: (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cell_api_v1_cells_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cell_api_v1_cells_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_cell_api_v1_cells_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create Cell # noqa: E501 - - Create new cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_cell_api_v1_cells_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CellCreate body: (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_cell_api_v1_cells_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cell_api_v1_cells_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Cell', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cell_api_v1_cells_cell_id_delete(self, cell_id, **kwargs): # noqa: E501 - """Delete Cell # noqa: E501 - - Delete a cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cell_api_v1_cells_cell_id_delete(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str cell_id: The cell id of the cell you want to delete (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cell_api_v1_cells_cell_id_delete_with_http_info(cell_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_cell_api_v1_cells_cell_id_delete_with_http_info(cell_id, **kwargs) # noqa: E501 - return data - - def delete_cell_api_v1_cells_cell_id_delete_with_http_info(self, cell_id, **kwargs): # noqa: E501 - """Delete Cell # noqa: E501 - - Delete a cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cell_api_v1_cells_cell_id_delete_with_http_info(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str cell_id: The cell id of the cell you want to delete (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['cell_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_cell_api_v1_cells_cell_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'cell_id' is set - if ('cell_id' not in params or - params['cell_id'] is None): - raise ValueError("Missing the required parameter `cell_id` when calling `delete_cell_api_v1_cells_cell_id_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'cell_id' in params: - path_params['cell_id'] = params['cell_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/{cell_id}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Cell', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get(self, g_nb_id, **kwargs): # noqa: E501 - """Get By Gnb Id # noqa: E501 - - Get Cells of specifc gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int g_nb_id: (required) - :param int skip: - :param int limit: - :return: list[Cell] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - else: - (data) = self.get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - return data - - def get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get_with_http_info(self, g_nb_id, **kwargs): # noqa: E501 - """Get By Gnb Id # noqa: E501 - - Get Cells of specifc gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get_with_http_info(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int g_nb_id: (required) - :param int skip: - :param int limit: - :return: list[Cell] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['g_nb_id', 'skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'g_nb_id' is set - if ('g_nb_id' not in params or - params['g_nb_id'] is None): - raise ValueError("Missing the required parameter `g_nb_id` when calling `get_by_gnb_id_api_v1_cells_by_gnbgnb_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'g_nb_id' in params: - path_params['gNB_id'] = params['g_nb_id'] # noqa: E501 - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/by_gNB/{gNB_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Cell]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cell_api_v1_cells_cell_id_get(self, cell_id, **kwargs): # noqa: E501 - """Read Cell # noqa: E501 - - Get Cell by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cell_api_v1_cells_cell_id_get(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str cell_id: The cell id of the cell you want to retrieve (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cell_api_v1_cells_cell_id_get_with_http_info(cell_id, **kwargs) # noqa: E501 - else: - (data) = self.read_cell_api_v1_cells_cell_id_get_with_http_info(cell_id, **kwargs) # noqa: E501 - return data - - def read_cell_api_v1_cells_cell_id_get_with_http_info(self, cell_id, **kwargs): # noqa: E501 - """Read Cell # noqa: E501 - - Get Cell by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cell_api_v1_cells_cell_id_get_with_http_info(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str cell_id: The cell id of the cell you want to retrieve (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['cell_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cell_api_v1_cells_cell_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'cell_id' is set - if ('cell_id' not in params or - params['cell_id'] is None): - raise ValueError("Missing the required parameter `cell_id` when calling `read_cell_api_v1_cells_cell_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'cell_id' in params: - path_params['cell_id'] = params['cell_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/{cell_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Cell', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cells_api_v1_cells_get(self, **kwargs): # noqa: E501 - """Read Cells # noqa: E501 - - Retrieve Cells. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cells_api_v1_cells_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[Cell] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cells_api_v1_cells_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_cells_api_v1_cells_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_cells_api_v1_cells_get_with_http_info(self, **kwargs): # noqa: E501 - """Read Cells # noqa: E501 - - Retrieve Cells. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_cells_api_v1_cells_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[Cell] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_cells_api_v1_cells_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Cell]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_cell_api_v1_cells_cell_id_put(self, body, cell_id, **kwargs): # noqa: E501 - """Update Cell # noqa: E501 - - Update a cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_cell_api_v1_cells_cell_id_put(body, cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CellUpdate body: (required) - :param str cell_id: The cell id of the cell you want to update (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_cell_api_v1_cells_cell_id_put_with_http_info(body, cell_id, **kwargs) # noqa: E501 - else: - (data) = self.update_cell_api_v1_cells_cell_id_put_with_http_info(body, cell_id, **kwargs) # noqa: E501 - return data - - def update_cell_api_v1_cells_cell_id_put_with_http_info(self, body, cell_id, **kwargs): # noqa: E501 - """Update Cell # noqa: E501 - - Update a cell. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_cell_api_v1_cells_cell_id_put_with_http_info(body, cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CellUpdate body: (required) - :param str cell_id: The cell id of the cell you want to update (required) - :return: Cell - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'cell_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_cell_api_v1_cells_cell_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_cell_api_v1_cells_cell_id_put`") # noqa: E501 - # verify the required parameter 'cell_id' is set - if ('cell_id' not in params or - params['cell_id'] is None): - raise ValueError("Missing the required parameter `cell_id` when calling `update_cell_api_v1_cells_cell_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'cell_id' in params: - path_params['cell_id'] = params['cell_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/Cells/{cell_id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Cell', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/default_api.py b/evolved5g/swagger_client/api/default_api.py deleted file mode 100644 index 14e628e..0000000 --- a/evolved5g/swagger_client/api/default_api.py +++ /dev/null @@ -1,713 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class DefaultApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def dashboard_dashboard_get(self, **kwargs): # noqa: E501 - """Dashboard # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.dashboard_dashboard_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.dashboard_dashboard_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.dashboard_dashboard_get_with_http_info(**kwargs) # noqa: E501 - return data - - def dashboard_dashboard_get_with_http_info(self, **kwargs): # noqa: E501 - """Dashboard # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.dashboard_dashboard_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method dashboard_dashboard_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/dashboard', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def err404_err401_get(self, **kwargs): # noqa: E501 - """Err404 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err404_err401_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.err404_err401_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.err404_err401_get_with_http_info(**kwargs) # noqa: E501 - return data - - def err404_err401_get_with_http_info(self, **kwargs): # noqa: E501 - """Err404 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err404_err401_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method err404_err401_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/err401', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def err404_err404_get(self, **kwargs): # noqa: E501 - """Err404 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err404_err404_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.err404_err404_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.err404_err404_get_with_http_info(**kwargs) # noqa: E501 - return data - - def err404_err404_get_with_http_info(self, **kwargs): # noqa: E501 - """Err404 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err404_err404_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method err404_err404_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/err404', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def err500_err500_get(self, **kwargs): # noqa: E501 - """Err500 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err500_err500_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.err500_err500_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.err500_err500_get_with_http_info(**kwargs) # noqa: E501 - return data - - def err500_err500_get_with_http_info(self, **kwargs): # noqa: E501 - """Err500 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.err500_err500_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method err500_err500_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/err500', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def login_login_get(self, **kwargs): # noqa: E501 - """Login # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.login_login_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.login_login_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.login_login_get_with_http_info(**kwargs) # noqa: E501 - return data - - def login_login_get_with_http_info(self, **kwargs): # noqa: E501 - """Login # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.login_login_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method login_login_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/login', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def map_get(self, **kwargs): # noqa: E501 - """Map # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.map_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.map_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.map_get_with_http_info(**kwargs) # noqa: E501 - return data - - def map_get_with_http_info(self, **kwargs): # noqa: E501 - """Map # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.map_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method map_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def map_map_get(self, **kwargs): # noqa: E501 - """Map # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.map_map_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.map_map_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.map_map_get_with_http_info(**kwargs) # noqa: E501 - return data - - def map_map_get_with_http_info(self, **kwargs): # noqa: E501 - """Map # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.map_map_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method map_map_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/map', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def register_register_get(self, **kwargs): # noqa: E501 - """Register # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register_register_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.register_register_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.register_register_get_with_http_info(**kwargs) # noqa: E501 - return data - - def register_register_get_with_http_info(self, **kwargs): # noqa: E501 - """Register # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register_register_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method register_register_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/html']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/register', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/g_n_bs_api.py b/evolved5g/swagger_client/api/g_n_bs_api.py deleted file mode 100644 index c498a69..0000000 --- a/evolved5g/swagger_client/api/g_n_bs_api.py +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class GNBsApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_gnb_api_v1_gn_bs_post(self, body, **kwargs): # noqa: E501 - """Create Gnb # noqa: E501 - - Create new gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_gnb_api_v1_gn_bs_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GNBCreate body: (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_gnb_api_v1_gn_bs_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_gnb_api_v1_gn_bs_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_gnb_api_v1_gn_bs_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create Gnb # noqa: E501 - - Create new gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_gnb_api_v1_gn_bs_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GNBCreate body: (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_gnb_api_v1_gn_bs_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_gnb_api_v1_gn_bs_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/gNBs/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GNB', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_gnb_api_v1_gn_bs_gnb_id_delete(self, g_nb_id, **kwargs): # noqa: E501 - """Delete Gnb # noqa: E501 - - Delete a gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_gnb_api_v1_gn_bs_gnb_id_delete(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str g_nb_id: The gNB id of the gNB you want to delete (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_gnb_api_v1_gn_bs_gnb_id_delete_with_http_info(g_nb_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_gnb_api_v1_gn_bs_gnb_id_delete_with_http_info(g_nb_id, **kwargs) # noqa: E501 - return data - - def delete_gnb_api_v1_gn_bs_gnb_id_delete_with_http_info(self, g_nb_id, **kwargs): # noqa: E501 - """Delete Gnb # noqa: E501 - - Delete a gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_gnb_api_v1_gn_bs_gnb_id_delete_with_http_info(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str g_nb_id: The gNB id of the gNB you want to delete (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['g_nb_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_gnb_api_v1_gn_bs_gnb_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'g_nb_id' is set - if ('g_nb_id' not in params or - params['g_nb_id'] is None): - raise ValueError("Missing the required parameter `g_nb_id` when calling `delete_gnb_api_v1_gn_bs_gnb_id_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'g_nb_id' in params: - path_params['gNB_id'] = params['g_nb_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/gNBs/{gNB_id}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GNB', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_gn_bs_api_v1_gn_bs_get(self, **kwargs): # noqa: E501 - """Read Gnbs # noqa: E501 - - Retrieve gNBs. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gn_bs_api_v1_gn_bs_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[GNB] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_gn_bs_api_v1_gn_bs_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_gn_bs_api_v1_gn_bs_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_gn_bs_api_v1_gn_bs_get_with_http_info(self, **kwargs): # noqa: E501 - """Read Gnbs # noqa: E501 - - Retrieve gNBs. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gn_bs_api_v1_gn_bs_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[GNB] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_gn_bs_api_v1_gn_bs_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/gNBs/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[GNB]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_gnb_api_v1_gn_bs_gnb_id_get(self, g_nb_id, **kwargs): # noqa: E501 - """Read Gnb # noqa: E501 - - Get gNB by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gnb_api_v1_gn_bs_gnb_id_get(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str g_nb_id: The gNB id of the gNB you want to retrieve (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_gnb_api_v1_gn_bs_gnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - else: - (data) = self.read_gnb_api_v1_gn_bs_gnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - return data - - def read_gnb_api_v1_gn_bs_gnb_id_get_with_http_info(self, g_nb_id, **kwargs): # noqa: E501 - """Read Gnb # noqa: E501 - - Get gNB by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gnb_api_v1_gn_bs_gnb_id_get_with_http_info(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str g_nb_id: The gNB id of the gNB you want to retrieve (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['g_nb_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_gnb_api_v1_gn_bs_gnb_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'g_nb_id' is set - if ('g_nb_id' not in params or - params['g_nb_id'] is None): - raise ValueError("Missing the required parameter `g_nb_id` when calling `read_gnb_api_v1_gn_bs_gnb_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'g_nb_id' in params: - path_params['gNB_id'] = params['g_nb_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/gNBs/{gNB_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GNB', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_gnb_api_v1_gn_bs_gnb_id_put(self, body, g_nb_id, **kwargs): # noqa: E501 - """Update Gnb # noqa: E501 - - Update a gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_gnb_api_v1_gn_bs_gnb_id_put(body, g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GNBUpdate body: (required) - :param str g_nb_id: The gNB id of the gNB you want to update (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_gnb_api_v1_gn_bs_gnb_id_put_with_http_info(body, g_nb_id, **kwargs) # noqa: E501 - else: - (data) = self.update_gnb_api_v1_gn_bs_gnb_id_put_with_http_info(body, g_nb_id, **kwargs) # noqa: E501 - return data - - def update_gnb_api_v1_gn_bs_gnb_id_put_with_http_info(self, body, g_nb_id, **kwargs): # noqa: E501 - """Update Gnb # noqa: E501 - - Update a gNB. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_gnb_api_v1_gn_bs_gnb_id_put_with_http_info(body, g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GNBUpdate body: (required) - :param str g_nb_id: The gNB id of the gNB you want to update (required) - :return: GNB - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'g_nb_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_gnb_api_v1_gn_bs_gnb_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_gnb_api_v1_gn_bs_gnb_id_put`") # noqa: E501 - # verify the required parameter 'g_nb_id' is set - if ('g_nb_id' not in params or - params['g_nb_id'] is None): - raise ValueError("Missing the required parameter `g_nb_id` when calling `update_gnb_api_v1_gn_bs_gnb_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'g_nb_id' in params: - path_params['gNB_id'] = params['g_nb_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/gNBs/{gNB_id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GNB', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/location_frontend_api.py b/evolved5g/swagger_client/api/location_frontend_api.py deleted file mode 100644 index f73839e..0000000 --- a/evolved5g/swagger_client/api/location_frontend_api.py +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class LocationFrontendApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_path_api_v1_frontend_location_post(self, body, **kwargs): # noqa: E501 - """Create Path # noqa: E501 - - Create new path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_path_api_v1_frontend_location_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PathCreate body: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_path_api_v1_frontend_location_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_path_api_v1_frontend_location_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_path_api_v1_frontend_location_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create Path # noqa: E501 - - Create new path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_path_api_v1_frontend_location_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PathCreate body: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_path_api_v1_frontend_location_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_path_api_v1_frontend_location_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/frontend/location/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Path', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_path_api_v1_frontend_location_id_delete(self, id, **kwargs): # noqa: E501 - """Delete Path # noqa: E501 - - Delete an path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_path_api_v1_frontend_location_id_delete(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_path_api_v1_frontend_location_id_delete_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_path_api_v1_frontend_location_id_delete_with_http_info(id, **kwargs) # noqa: E501 - return data - - def delete_path_api_v1_frontend_location_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete Path # noqa: E501 - - Delete an path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_path_api_v1_frontend_location_id_delete_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_path_api_v1_frontend_location_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_path_api_v1_frontend_location_id_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/frontend/location/{id}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Path', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_path_api_v1_frontend_location_id_get(self, id, **kwargs): # noqa: E501 - """Read Path # noqa: E501 - - Get path by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_path_api_v1_frontend_location_id_get(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_path_api_v1_frontend_location_id_get_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.read_path_api_v1_frontend_location_id_get_with_http_info(id, **kwargs) # noqa: E501 - return data - - def read_path_api_v1_frontend_location_id_get_with_http_info(self, id, **kwargs): # noqa: E501 - """Read Path # noqa: E501 - - Get path by ID. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_path_api_v1_frontend_location_id_get_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_path_api_v1_frontend_location_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `read_path_api_v1_frontend_location_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/frontend/location/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Path', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_paths_api_v1_frontend_location_get(self, **kwargs): # noqa: E501 - """Read Paths # noqa: E501 - - Retrieve paths. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_paths_api_v1_frontend_location_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[Path] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_paths_api_v1_frontend_location_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_paths_api_v1_frontend_location_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_paths_api_v1_frontend_location_get_with_http_info(self, **kwargs): # noqa: E501 - """Read Paths # noqa: E501 - - Retrieve paths. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_paths_api_v1_frontend_location_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[Path] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_paths_api_v1_frontend_location_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/frontend/location/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Path]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_path_api_v1_frontend_location_id_put(self, body, id, **kwargs): # noqa: E501 - """Update Path # noqa: E501 - - Update an path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_path_api_v1_frontend_location_id_put(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PathUpdate body: (required) - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_path_api_v1_frontend_location_id_put_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_path_api_v1_frontend_location_id_put_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_path_api_v1_frontend_location_id_put_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update Path # noqa: E501 - - Update an path. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_path_api_v1_frontend_location_id_put_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PathUpdate body: (required) - :param int id: (required) - :return: Path - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_path_api_v1_frontend_location_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_path_api_v1_frontend_location_id_put`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_path_api_v1_frontend_location_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/frontend/location/{id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Path', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/login_api.py b/evolved5g/swagger_client/api/login_api.py deleted file mode 100644 index 9fe453b..0000000 --- a/evolved5g/swagger_client/api/login_api.py +++ /dev/null @@ -1,453 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class LoginApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def login_access_token_api_v1_login_access_token_post(self, grant_type, username, password, scope, client_id, client_secret, **kwargs): # noqa: E501 - """Login Access Token # noqa: E501 - - OAuth2 compatible token login, get an access token for future requests # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.login_access_token_api_v1_login_access_token_post(grant_type, username, password, scope, client_id, client_secret, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str grant_type: (required) - :param str username: (required) - :param str password: (required) - :param str scope: (required) - :param str client_id: (required) - :param str client_secret: (required) - :return: Token - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.login_access_token_api_v1_login_access_token_post_with_http_info(grant_type, username, password, scope, client_id, client_secret, **kwargs) # noqa: E501 - else: - (data) = self.login_access_token_api_v1_login_access_token_post_with_http_info(grant_type, username, password, scope, client_id, client_secret, **kwargs) # noqa: E501 - return data - - def login_access_token_api_v1_login_access_token_post_with_http_info(self, grant_type, username, password, scope, client_id, client_secret, **kwargs): # noqa: E501 - """Login Access Token # noqa: E501 - - OAuth2 compatible token login, get an access token for future requests # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.login_access_token_api_v1_login_access_token_post_with_http_info(grant_type, username, password, scope, client_id, client_secret, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str grant_type: (required) - :param str username: (required) - :param str password: (required) - :param str scope: (required) - :param str client_id: (required) - :param str client_secret: (required) - :return: Token - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['grant_type', 'username', 'password', 'scope', 'client_id', 'client_secret'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method login_access_token_api_v1_login_access_token_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'grant_type' is set - if ('grant_type' not in params or - params['grant_type'] is None): - raise ValueError("Missing the required parameter `grant_type` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - # verify the required parameter 'username' is set - if ('username' not in params or - params['username'] is None): - raise ValueError("Missing the required parameter `username` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - # verify the required parameter 'password' is set - if ('password' not in params or - params['password'] is None): - raise ValueError("Missing the required parameter `password` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - # verify the required parameter 'scope' is set - if ('scope' not in params or - params['scope'] is None): - raise ValueError("Missing the required parameter `scope` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): - raise ValueError("Missing the required parameter `client_id` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - # verify the required parameter 'client_secret' is set - if ('client_secret' not in params or - params['client_secret'] is None): - raise ValueError("Missing the required parameter `client_secret` when calling `login_access_token_api_v1_login_access_token_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - if 'grant_type' in params: - form_params.append(('grant_type', params['grant_type'])) # noqa: E501 - if 'username' in params: - form_params.append(('username', params['username'])) # noqa: E501 - if 'password' in params: - form_params.append(('password', params['password'])) # noqa: E501 - if 'scope' in params: - form_params.append(('scope', params['scope'])) # noqa: E501 - if 'client_id' in params: - form_params.append(('client_id', params['client_id'])) # noqa: E501 - if 'client_secret' in params: - form_params.append(('client_secret', params['client_secret'])) # noqa: E501 - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/x-www-form-urlencoded']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/login/access-token', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Token', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def recover_password_api_v1_password_recovery_email_post(self, email, **kwargs): # noqa: E501 - """Recover Password # noqa: E501 - - Password Recovery # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.recover_password_api_v1_password_recovery_email_post(email, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str email: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.recover_password_api_v1_password_recovery_email_post_with_http_info(email, **kwargs) # noqa: E501 - else: - (data) = self.recover_password_api_v1_password_recovery_email_post_with_http_info(email, **kwargs) # noqa: E501 - return data - - def recover_password_api_v1_password_recovery_email_post_with_http_info(self, email, **kwargs): # noqa: E501 - """Recover Password # noqa: E501 - - Password Recovery # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.recover_password_api_v1_password_recovery_email_post_with_http_info(email, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str email: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['email'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method recover_password_api_v1_password_recovery_email_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'email' is set - if ('email' not in params or - params['email'] is None): - raise ValueError("Missing the required parameter `email` when calling `recover_password_api_v1_password_recovery_email_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'email' in params: - path_params['email'] = params['email'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/password-recovery/{email}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Msg', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def reset_password_api_v1_reset_password_post(self, body, **kwargs): # noqa: E501 - """Reset Password # noqa: E501 - - Reset password # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reset_password_api_v1_reset_password_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyResetPasswordApiV1ResetPasswordPost body: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.reset_password_api_v1_reset_password_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.reset_password_api_v1_reset_password_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def reset_password_api_v1_reset_password_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Reset Password # noqa: E501 - - Reset password # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reset_password_api_v1_reset_password_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyResetPasswordApiV1ResetPasswordPost body: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method reset_password_api_v1_reset_password_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `reset_password_api_v1_reset_password_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/reset-password/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Msg', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def test_token_api_v1_login_test_token_post(self, **kwargs): # noqa: E501 - """Test Token # noqa: E501 - - Test access token # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_token_api_v1_login_test_token_post(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.test_token_api_v1_login_test_token_post_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.test_token_api_v1_login_test_token_post_with_http_info(**kwargs) # noqa: E501 - return data - - def test_token_api_v1_login_test_token_post_with_http_info(self, **kwargs): # noqa: E501 - """Test Token # noqa: E501 - - Test access token # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_token_api_v1_login_test_token_post_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method test_token_api_v1_login_test_token_post" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/login/test-token', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/monitoring_event_api_api.py b/evolved5g/swagger_client/api/monitoring_event_api_api.py deleted file mode 100644 index e422b9d..0000000 --- a/evolved5g/swagger_client/api/monitoring_event_api_api.py +++ /dev/null @@ -1,564 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class MonitoringEventAPIApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post(self, body, scs_as_id, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - Create new subscription. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post(body, scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventSubscriptionCreate body: (required) - :param str scs_as_id: (required) - :return: MonitoringEventReport - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, **kwargs) # noqa: E501 - else: - (data) = self.create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, **kwargs) # noqa: E501 - return data - - def create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post_with_http_info(self, body, scs_as_id, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - Create new subscription. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventSubscriptionCreate body: (required) - :param str scs_as_id: (required) - :return: MonitoringEventReport - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'scs_as_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post`") # noqa: E501 - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `create_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-monitoring-event/v1/{scsAsId}/subscriptions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='MonitoringEventSubscription', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Delete Item # noqa: E501 - - Delete a subscription # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Delete Item # noqa: E501 - - Delete a subscription # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `delete_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-monitoring-event/v1/{scsAsId}/subscriptions/{subscriptionId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='MonitoringEventSubscription', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get(self, scs_as_id, **kwargs): # noqa: E501 - """Read Active Subscriptions # noqa: E501 - - Read all active subscriptions # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get(scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param int skip: - :param int limit: - :return: list[MonitoringEventSubscription] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, **kwargs) # noqa: E501 - else: - (data) = self.read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, **kwargs) # noqa: E501 - return data - - def read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get_with_http_info(self, scs_as_id, **kwargs): # noqa: E501 - """Read Active Subscriptions # noqa: E501 - - Read all active subscriptions # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param int skip: - :param int limit: - :return: list[MonitoringEventSubscription] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `read_active_subscriptions_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-monitoring-event/v1/{scsAsId}/subscriptions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[MonitoringEventSubscription]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Read Item # noqa: E501 - - Get subscription by id # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Read Item # noqa: E501 - - Get subscription by id # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `read_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-monitoring-event/v1/{scsAsId}/subscriptions/{subscriptionId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='MonitoringEventSubscription', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put(self, body, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Update Item # noqa: E501 - - Update/Replace an existing subscription resource # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put(body, scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventSubscription body: (required) - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(self, body, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Update Item # noqa: E501 - - Update/Replace an existing subscription resource # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventSubscription body: (required) - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: MonitoringEventSubscription - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `update_item_api_v13gpp_monitoring_event_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-monitoring-event/v1/{scsAsId}/subscriptions/{subscriptionId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='MonitoringEventSubscription', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/session_with_qo_s_api_api.py b/evolved5g/swagger_client/api/session_with_qo_s_api_api.py deleted file mode 100644 index d1f50aa..0000000 --- a/evolved5g/swagger_client/api/session_with_qo_s_api_api.py +++ /dev/null @@ -1,564 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class SessionWithQoSAPIApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post(self, body, scs_as_id, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - Create new subscription. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post(body, scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AsSessionWithQoSSubscription body: (required) - :param str scs_as_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, **kwargs) # noqa: E501 - else: - (data) = self.create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, **kwargs) # noqa: E501 - return data - - def create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post_with_http_info(self, body, scs_as_id, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - Create new subscription. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post_with_http_info(body, scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AsSessionWithQoSSubscription body: (required) - :param str scs_as_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'scs_as_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post`") # noqa: E501 - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `create_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Delete Item # noqa: E501 - - Delete a subscription # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Delete Item # noqa: E501 - - Delete a subscription # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete_with_http_info(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `delete_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get(self, scs_as_id, **kwargs): # noqa: E501 - """Read Active Subscriptions # noqa: E501 - - Read all active subscriptions # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get(scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param int skip: - :param int limit: - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, **kwargs) # noqa: E501 - else: - (data) = self.read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, **kwargs) # noqa: E501 - return data - - def read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get_with_http_info(self, scs_as_id, **kwargs): # noqa: E501 - """Read Active Subscriptions # noqa: E501 - - Read all active subscriptions # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get_with_http_info(scs_as_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param int skip: - :param int limit: - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `read_active_subscriptions_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Read Item # noqa: E501 - - Get subscription by id # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(self, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Read Item # noqa: E501 - - Get subscription by id # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get_with_http_info(scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `read_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put(self, body, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Update Item # noqa: E501 - - Update/Replace an existing subscription resource # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put(body, scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AsSessionWithQoSSubscription body: (required) - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, **kwargs) # noqa: E501 - else: - (data) = self.update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, **kwargs) # noqa: E501 - return data - - def update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(self, body, scs_as_id, subscription_id, **kwargs): # noqa: E501 - """Update Item # noqa: E501 - - Update/Replace an existing subscription resource # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put_with_http_info(body, scs_as_id, subscription_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AsSessionWithQoSSubscription body: (required) - :param str scs_as_id: (required) - :param str subscription_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'scs_as_id', 'subscription_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - # verify the required parameter 'scs_as_id' is set - if ('scs_as_id' not in params or - params['scs_as_id'] is None): - raise ValueError("Missing the required parameter `scs_as_id` when calling `update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - # verify the required parameter 'subscription_id' is set - if ('subscription_id' not in params or - params['subscription_id'] is None): - raise ValueError("Missing the required parameter `subscription_id` when calling `update_item_api_v13gpp_as_session_with_qos_v1_scs_as_id_subscriptions_subscription_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scs_as_id' in params: - path_params['scsAsId'] = params['scs_as_id'] # noqa: E501 - if 'subscription_id' in params: - path_params['subscriptionId'] = params['subscription_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/u_es_api.py b/evolved5g/swagger_client/api/u_es_api.py deleted file mode 100644 index 26908a7..0000000 --- a/evolved5g/swagger_client/api/u_es_api.py +++ /dev/null @@ -1,714 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class UEsApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_ue_api_v1_u_es_post(self, body, **kwargs): # noqa: E501 - """Create Ue # noqa: E501 - - Create new UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_ue_api_v1_u_es_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UECreate body: (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_ue_api_v1_u_es_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_ue_api_v1_u_es_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_ue_api_v1_u_es_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create Ue # noqa: E501 - - Create new UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_ue_api_v1_u_es_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UECreate body: (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_ue_api_v1_u_es_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_ue_api_v1_u_es_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UE', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_ue_api_v1_u_es_supi_delete(self, supi, **kwargs): # noqa: E501 - """Delete Ue # noqa: E501 - - Delete a UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_ue_api_v1_u_es_supi_delete(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: The SUPI of the UE you want to delete (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_ue_api_v1_u_es_supi_delete_with_http_info(supi, **kwargs) # noqa: E501 - else: - (data) = self.delete_ue_api_v1_u_es_supi_delete_with_http_info(supi, **kwargs) # noqa: E501 - return data - - def delete_ue_api_v1_u_es_supi_delete_with_http_info(self, supi, **kwargs): # noqa: E501 - """Delete Ue # noqa: E501 - - Delete a UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_ue_api_v1_u_es_supi_delete_with_http_info(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: The SUPI of the UE you want to delete (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['supi'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_ue_api_v1_u_es_supi_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'supi' is set - if ('supi' not in params or - params['supi'] is None): - raise ValueError("Missing the required parameter `supi` when calling `delete_ue_api_v1_u_es_supi_delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'supi' in params: - path_params['supi'] = params['supi'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/{supi}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UE', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_gnb_id_api_v1_u_es_by_gnbgnb_id_get(self, g_nb_id, **kwargs): # noqa: E501 - """Read Gnb Id # noqa: E501 - - Get gNB of specific UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gnb_id_api_v1_u_es_by_gnbgnb_id_get(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int g_nb_id: (required) - :return: list[UE] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_gnb_id_api_v1_u_es_by_gnbgnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - else: - (data) = self.read_gnb_id_api_v1_u_es_by_gnbgnb_id_get_with_http_info(g_nb_id, **kwargs) # noqa: E501 - return data - - def read_gnb_id_api_v1_u_es_by_gnbgnb_id_get_with_http_info(self, g_nb_id, **kwargs): # noqa: E501 - """Read Gnb Id # noqa: E501 - - Get gNB of specific UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_gnb_id_api_v1_u_es_by_gnbgnb_id_get_with_http_info(g_nb_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int g_nb_id: (required) - :return: list[UE] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['g_nb_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_gnb_id_api_v1_u_es_by_gnbgnb_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'g_nb_id' is set - if ('g_nb_id' not in params or - params['g_nb_id'] is None): - raise ValueError("Missing the required parameter `g_nb_id` when calling `read_gnb_id_api_v1_u_es_by_gnbgnb_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'g_nb_id' in params: - path_params['gNB_id'] = params['g_nb_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/by_gNB/{gNB_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[UE]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_u_es_api_v1_u_es_get(self, **kwargs): # noqa: E501 - """Read Ues # noqa: E501 - - Retrieve UEs. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_u_es_api_v1_u_es_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[UEs] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_u_es_api_v1_u_es_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_u_es_api_v1_u_es_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_u_es_api_v1_u_es_get_with_http_info(self, **kwargs): # noqa: E501 - """Read Ues # noqa: E501 - - Retrieve UEs. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_u_es_api_v1_u_es_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[UEs] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_u_es_api_v1_u_es_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[UEs]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_ue_api_v1_u_es_supi_get(self, supi, **kwargs): # noqa: E501 - """Read Ue # noqa: E501 - - Get UE by supi. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_ue_api_v1_u_es_supi_get(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: The SUPI of the UE you want to retrieve (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_ue_api_v1_u_es_supi_get_with_http_info(supi, **kwargs) # noqa: E501 - else: - (data) = self.read_ue_api_v1_u_es_supi_get_with_http_info(supi, **kwargs) # noqa: E501 - return data - - def read_ue_api_v1_u_es_supi_get_with_http_info(self, supi, **kwargs): # noqa: E501 - """Read Ue # noqa: E501 - - Get UE by supi. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_ue_api_v1_u_es_supi_get_with_http_info(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: The SUPI of the UE you want to retrieve (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['supi'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_ue_api_v1_u_es_supi_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'supi' is set - if ('supi' not in params or - params['supi'] is None): - raise ValueError("Missing the required parameter `supi` when calling `read_ue_api_v1_u_es_supi_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'supi' in params: - path_params['supi'] = params['supi'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/{supi}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UE', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_ue_cell_api_v1_u_es_by_cell_cell_id_get(self, cell_id, **kwargs): # noqa: E501 - """Read Ue Cell # noqa: E501 - - Get Cell of specifc UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_ue_cell_api_v1_u_es_by_cell_cell_id_get(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int cell_id: (required) - :return: list[UE] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_ue_cell_api_v1_u_es_by_cell_cell_id_get_with_http_info(cell_id, **kwargs) # noqa: E501 - else: - (data) = self.read_ue_cell_api_v1_u_es_by_cell_cell_id_get_with_http_info(cell_id, **kwargs) # noqa: E501 - return data - - def read_ue_cell_api_v1_u_es_by_cell_cell_id_get_with_http_info(self, cell_id, **kwargs): # noqa: E501 - """Read Ue Cell # noqa: E501 - - Get Cell of specifc UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_ue_cell_api_v1_u_es_by_cell_cell_id_get_with_http_info(cell_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int cell_id: (required) - :return: list[UE] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['cell_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_ue_cell_api_v1_u_es_by_cell_cell_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'cell_id' is set - if ('cell_id' not in params or - params['cell_id'] is None): - raise ValueError("Missing the required parameter `cell_id` when calling `read_ue_cell_api_v1_u_es_by_cell_cell_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'cell_id' in params: - path_params['Cell_id'] = params['cell_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/by_Cell/{Cell_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[UE]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_ue_api_v1_u_es_supi_put(self, body, supi, **kwargs): # noqa: E501 - """Update Ue # noqa: E501 - - Update a UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_ue_api_v1_u_es_supi_put(body, supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UEUpdate body: (required) - :param str supi: The SUPI of the UE you want to update (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_ue_api_v1_u_es_supi_put_with_http_info(body, supi, **kwargs) # noqa: E501 - else: - (data) = self.update_ue_api_v1_u_es_supi_put_with_http_info(body, supi, **kwargs) # noqa: E501 - return data - - def update_ue_api_v1_u_es_supi_put_with_http_info(self, body, supi, **kwargs): # noqa: E501 - """Update Ue # noqa: E501 - - Update a UE. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_ue_api_v1_u_es_supi_put_with_http_info(body, supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UEUpdate body: (required) - :param str supi: The SUPI of the UE you want to update (required) - :return: UE - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'supi'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_ue_api_v1_u_es_supi_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_ue_api_v1_u_es_supi_put`") # noqa: E501 - # verify the required parameter 'supi' is set - if ('supi' not in params or - params['supi'] is None): - raise ValueError("Missing the required parameter `supi` when calling `update_ue_api_v1_u_es_supi_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'supi' in params: - path_params['supi'] = params['supi'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/UEs/{supi}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UE', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/users_api.py b/evolved5g/swagger_client/api/users_api.py deleted file mode 100644 index 090e1e8..0000000 --- a/evolved5g/swagger_client/api/users_api.py +++ /dev/null @@ -1,710 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class UsersApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_user_api_v1_users_post(self, body, **kwargs): # noqa: E501 - """Create User # noqa: E501 - - Create new user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_user_api_v1_users_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserCreate body: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_user_api_v1_users_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_user_api_v1_users_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_user_api_v1_users_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create User # noqa: E501 - - Create new user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_user_api_v1_users_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserCreate body: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_user_api_v1_users_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_user_api_v1_users_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_user_open_api_v1_users_open_post(self, body, **kwargs): # noqa: E501 - """Create User Open # noqa: E501 - - Create new user without the need to be logged in. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_user_open_api_v1_users_open_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyCreateUserOpenApiV1UsersOpenPost body: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_user_open_api_v1_users_open_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_user_open_api_v1_users_open_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_user_open_api_v1_users_open_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create User Open # noqa: E501 - - Create new user without the need to be logged in. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_user_open_api_v1_users_open_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyCreateUserOpenApiV1UsersOpenPost body: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_user_open_api_v1_users_open_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_user_open_api_v1_users_open_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/open', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_user_by_id_api_v1_users_user_id_get(self, user_id, **kwargs): # noqa: E501 - """Read User By Id # noqa: E501 - - Get a specific user by id. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_user_by_id_api_v1_users_user_id_get(user_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int user_id: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_user_by_id_api_v1_users_user_id_get_with_http_info(user_id, **kwargs) # noqa: E501 - else: - (data) = self.read_user_by_id_api_v1_users_user_id_get_with_http_info(user_id, **kwargs) # noqa: E501 - return data - - def read_user_by_id_api_v1_users_user_id_get_with_http_info(self, user_id, **kwargs): # noqa: E501 - """Read User By Id # noqa: E501 - - Get a specific user by id. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_user_by_id_api_v1_users_user_id_get_with_http_info(user_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int user_id: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['user_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_user_by_id_api_v1_users_user_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): - raise ValueError("Missing the required parameter `user_id` when calling `read_user_by_id_api_v1_users_user_id_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'user_id' in params: - path_params['user_id'] = params['user_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/{user_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_user_me_api_v1_users_me_get(self, **kwargs): # noqa: E501 - """Read User Me # noqa: E501 - - Get current user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_user_me_api_v1_users_me_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_user_me_api_v1_users_me_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_user_me_api_v1_users_me_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_user_me_api_v1_users_me_get_with_http_info(self, **kwargs): # noqa: E501 - """Read User Me # noqa: E501 - - Get current user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_user_me_api_v1_users_me_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_user_me_api_v1_users_me_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/me', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_users_api_v1_users_get(self, **kwargs): # noqa: E501 - """Read Users # noqa: E501 - - Retrieve users. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_users_api_v1_users_get(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[User] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_users_api_v1_users_get_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.read_users_api_v1_users_get_with_http_info(**kwargs) # noqa: E501 - return data - - def read_users_api_v1_users_get_with_http_info(self, **kwargs): # noqa: E501 - """Read Users # noqa: E501 - - Retrieve users. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.read_users_api_v1_users_get_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int skip: - :param int limit: - :return: list[User] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['skip', 'limit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method read_users_api_v1_users_get" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'skip' in params: - query_params.append(('skip', params['skip'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[User]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_user_api_v1_users_user_id_put(self, body, user_id, **kwargs): # noqa: E501 - """Update User # noqa: E501 - - Update a user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_user_api_v1_users_user_id_put(body, user_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserUpdate body: (required) - :param int user_id: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_user_api_v1_users_user_id_put_with_http_info(body, user_id, **kwargs) # noqa: E501 - else: - (data) = self.update_user_api_v1_users_user_id_put_with_http_info(body, user_id, **kwargs) # noqa: E501 - return data - - def update_user_api_v1_users_user_id_put_with_http_info(self, body, user_id, **kwargs): # noqa: E501 - """Update User # noqa: E501 - - Update a user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_user_api_v1_users_user_id_put_with_http_info(body, user_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserUpdate body: (required) - :param int user_id: (required) - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'user_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_user_api_v1_users_user_id_put" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_user_api_v1_users_user_id_put`") # noqa: E501 - # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): - raise ValueError("Missing the required parameter `user_id` when calling `update_user_api_v1_users_user_id_put`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'user_id' in params: - path_params['user_id'] = params['user_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/{user_id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_user_me_api_v1_users_me_put(self, **kwargs): # noqa: E501 - """Update User Me # noqa: E501 - - Update own user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_user_me_api_v1_users_me_put(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyUpdateUserMeApiV1UsersMePut body: - :return: User - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_user_me_api_v1_users_me_put_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.update_user_me_api_v1_users_me_put_with_http_info(**kwargs) # noqa: E501 - return data - - def update_user_me_api_v1_users_me_put_with_http_info(self, **kwargs): # noqa: E501 - """Update User Me # noqa: E501 - - Update own user. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_user_me_api_v1_users_me_put_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param BodyUpdateUserMeApiV1UsersMePut body: - :return: User - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_user_me_api_v1_users_me_put" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/users/me', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='User', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api/utils_api.py b/evolved5g/swagger_client/api/utils_api.py deleted file mode 100644 index dc524b4..0000000 --- a/evolved5g/swagger_client/api/utils_api.py +++ /dev/null @@ -1,617 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from evolved5g.swagger_client.api_client import ApiClient - - -class UtilsApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_item_api_v1_utils_monitoring_callback_post(self, body, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v1_utils_monitoring_callback_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventReport body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_item_api_v1_utils_monitoring_callback_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_item_api_v1_utils_monitoring_callback_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_item_api_v1_utils_monitoring_callback_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Create Item # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_item_api_v1_utils_monitoring_callback_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param MonitoringEventReport body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_item_api_v1_utils_monitoring_callback_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_item_api_v1_utils_monitoring_callback_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/monitoring/callback', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def initiate_movement_api_v1_utils_start_loop_post(self, body, **kwargs): # noqa: E501 - """Initiate Movement # noqa: E501 - - Start the loop. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.initiate_movement_api_v1_utils_start_loop_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.initiate_movement_api_v1_utils_start_loop_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.initiate_movement_api_v1_utils_start_loop_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def initiate_movement_api_v1_utils_start_loop_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Initiate Movement # noqa: E501 - - Start the loop. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.initiate_movement_api_v1_utils_start_loop_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method initiate_movement_api_v1_utils_start_loop_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `initiate_movement_api_v1_utils_start_loop_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/start-loop/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def state_movement_api_v1_utils_state_loop_supi_get(self, supi, **kwargs): # noqa: E501 - """State Movement # noqa: E501 - - Get the state # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.state_movement_api_v1_utils_state_loop_supi_get(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.state_movement_api_v1_utils_state_loop_supi_get_with_http_info(supi, **kwargs) # noqa: E501 - else: - (data) = self.state_movement_api_v1_utils_state_loop_supi_get_with_http_info(supi, **kwargs) # noqa: E501 - return data - - def state_movement_api_v1_utils_state_loop_supi_get_with_http_info(self, supi, **kwargs): # noqa: E501 - """State Movement # noqa: E501 - - Get the state # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.state_movement_api_v1_utils_state_loop_supi_get_with_http_info(supi, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str supi: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['supi'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method state_movement_api_v1_utils_state_loop_supi_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'supi' is set - if ('supi' not in params or - params['supi'] is None): - raise ValueError("Missing the required parameter `supi` when calling `state_movement_api_v1_utils_state_loop_supi_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'supi' in params: - path_params['supi'] = params['supi'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/state-loop/{supi}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def terminate_movement_api_v1_utils_stop_loop_post(self, body, **kwargs): # noqa: E501 - """Terminate Movement # noqa: E501 - - Stop the loop. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_movement_api_v1_utils_stop_loop_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.terminate_movement_api_v1_utils_stop_loop_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.terminate_movement_api_v1_utils_stop_loop_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def terminate_movement_api_v1_utils_stop_loop_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Terminate Movement # noqa: E501 - - Stop the loop. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_movement_api_v1_utils_stop_loop_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method terminate_movement_api_v1_utils_stop_loop_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `terminate_movement_api_v1_utils_stop_loop_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/stop-loop/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def test_celery_api_v1_utils_test_celery_post(self, body, **kwargs): # noqa: E501 - """Test Celery # noqa: E501 - - Test Celery worker. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_celery_api_v1_utils_test_celery_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.test_celery_api_v1_utils_test_celery_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.test_celery_api_v1_utils_test_celery_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def test_celery_api_v1_utils_test_celery_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Test Celery # noqa: E501 - - Test Celery worker. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_celery_api_v1_utils_test_celery_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Msg body: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method test_celery_api_v1_utils_test_celery_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `test_celery_api_v1_utils_test_celery_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/test-celery/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Msg', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def test_email_api_v1_utils_test_email_post(self, email_to, **kwargs): # noqa: E501 - """Test Email # noqa: E501 - - Test emails. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_email_api_v1_utils_test_email_post(email_to, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str email_to: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.test_email_api_v1_utils_test_email_post_with_http_info(email_to, **kwargs) # noqa: E501 - else: - (data) = self.test_email_api_v1_utils_test_email_post_with_http_info(email_to, **kwargs) # noqa: E501 - return data - - def test_email_api_v1_utils_test_email_post_with_http_info(self, email_to, **kwargs): # noqa: E501 - """Test Email # noqa: E501 - - Test emails. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_email_api_v1_utils_test_email_post_with_http_info(email_to, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str email_to: (required) - :return: Msg - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['email_to'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method test_email_api_v1_utils_test_email_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'email_to' is set - if ('email_to' not in params or - params['email_to'] is None): - raise ValueError("Missing the required parameter `email_to` when calling `test_email_api_v1_utils_test_email_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'email_to' in params: - query_params.append(('email_to', params['email_to'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['OAuth2PasswordBearer'] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/utils/test-email/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Msg', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/evolved5g/swagger_client/api_client.py b/evolved5g/swagger_client/api_client.py deleted file mode 100644 index df874a1..0000000 --- a/evolved5g/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from evolved5g.swagger_client.configuration import Configuration -import evolved5g.swagger_client.models -from evolved5g.swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(evolved5g.swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/evolved5g/swagger_client/configuration.py b/evolved5g/swagger_client/configuration.py deleted file mode 100644 index a00700a..0000000 --- a/evolved5g/swagger_client/configuration.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "/" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # access token for OAuth - self.access_token = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - 'OAuth2PasswordBearer': - { - 'type': 'oauth2', - 'in': 'header', - 'key': 'Authorization', - 'value': 'Bearer ' + self.access_token - }, - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 0.1.0\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/evolved5g/swagger_client/models/__init__.py b/evolved5g/swagger_client/models/__init__.py deleted file mode 100644 index 8ef68ea..0000000 --- a/evolved5g/swagger_client/models/__init__.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from evolved5g.swagger_client.models.all_of_ue_create_speed import AllOfUECreateSpeed -from evolved5g.swagger_client.models.all_of_ue_speed import AllOfUESpeed -from evolved5g.swagger_client.models.all_of_ue_update_speed import AllOfUEUpdateSpeed -from evolved5g.swagger_client.models.all_of_u_es_speed import AllOfUEsSpeed -from evolved5g.swagger_client.models.as_session_with_qo_s_subscription import AsSessionWithQoSSubscription -from evolved5g.swagger_client.models.body_create_user_open_api_v1_users_open_post import BodyCreateUserOpenApiV1UsersOpenPost -from evolved5g.swagger_client.models.body_login_access_token_api_v1_login_access_token_post import BodyLoginAccessTokenApiV1LoginAccessTokenPost -from evolved5g.swagger_client.models.body_reset_password_api_v1_reset_password_post import BodyResetPasswordApiV1ResetPasswordPost -from evolved5g.swagger_client.models.body_update_user_me_api_v1_users_me_put import BodyUpdateUserMeApiV1UsersMePut -from evolved5g.swagger_client.models.cell import Cell -from evolved5g.swagger_client.models.cell_create import CellCreate -from evolved5g.swagger_client.models.cell_update import CellUpdate -from evolved5g.swagger_client.models.gnb import GNB -from evolved5g.swagger_client.models.gnb_create import GNBCreate -from evolved5g.swagger_client.models.gnb_update import GNBUpdate -from evolved5g.swagger_client.models.http_validation_error import HTTPValidationError -from evolved5g.swagger_client.models.location_info import LocationInfo -from evolved5g.swagger_client.models.monitoring_event_report import MonitoringEventReport -from evolved5g.swagger_client.models.monitoring_event_report_received import MonitoringEventReportReceived -from evolved5g.swagger_client.models.monitoring_event_subscription import MonitoringEventSubscription -from evolved5g.swagger_client.models.monitoring_event_subscription_create import MonitoringEventSubscriptionCreate -from evolved5g.swagger_client.models.monitoring_type import MonitoringType -from evolved5g.swagger_client.models.msg import Msg -from evolved5g.swagger_client.models.path import Path -from evolved5g.swagger_client.models.path_create import PathCreate -from evolved5g.swagger_client.models.path_update import PathUpdate -from evolved5g.swagger_client.models.point import Point -from evolved5g.swagger_client.models.qos_monitoring_information import QosMonitoringInformation -from evolved5g.swagger_client.models.reporting_frequency import ReportingFrequency -from evolved5g.swagger_client.models.requested_qo_s_monitoring_parameters import RequestedQoSMonitoringParameters -from evolved5g.swagger_client.models.snssai import Snssai -from evolved5g.swagger_client.models.speed import Speed -from evolved5g.swagger_client.models.token import Token -from evolved5g.swagger_client.models.ue import UE -from evolved5g.swagger_client.models.ue_create import UECreate -from evolved5g.swagger_client.models.ue_update import UEUpdate -from evolved5g.swagger_client.models.u_es import UEs -from evolved5g.swagger_client.models.usage_threshold import UsageThreshold -from evolved5g.swagger_client.models.user import User -from evolved5g.swagger_client.models.user_create import UserCreate -from evolved5g.swagger_client.models.user_update import UserUpdate -from evolved5g.swagger_client.models.validation_error import ValidationError diff --git a/evolved5g/swagger_client/models/all_of_u_es_speed.py b/evolved5g/swagger_client/models/all_of_u_es_speed.py deleted file mode 100644 index 241a520..0000000 --- a/evolved5g/swagger_client/models/all_of_u_es_speed.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six -from evolved5g.swagger_client.models.speed import Speed # noqa: F401,E501 - -class AllOfUEsSpeed(Speed): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - if hasattr(Speed, "swagger_types"): - swagger_types.update(Speed.swagger_types) - - attribute_map = { - } - if hasattr(Speed, "attribute_map"): - attribute_map.update(Speed.attribute_map) - - def __init__(self, *args, **kwargs): # noqa: E501 - """AllOfUEsSpeed - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - Speed.__init__(self, *args, **kwargs) - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AllOfUEsSpeed, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AllOfUEsSpeed): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/all_of_ue_create_speed.py b/evolved5g/swagger_client/models/all_of_ue_create_speed.py deleted file mode 100644 index 08cca8b..0000000 --- a/evolved5g/swagger_client/models/all_of_ue_create_speed.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six -from evolved5g.swagger_client.models.speed import Speed # noqa: F401,E501 - -class AllOfUECreateSpeed(Speed): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - if hasattr(Speed, "swagger_types"): - swagger_types.update(Speed.swagger_types) - - attribute_map = { - } - if hasattr(Speed, "attribute_map"): - attribute_map.update(Speed.attribute_map) - - def __init__(self, *args, **kwargs): # noqa: E501 - """AllOfUECreateSpeed - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - Speed.__init__(self, *args, **kwargs) - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AllOfUECreateSpeed, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AllOfUECreateSpeed): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/all_of_ue_speed.py b/evolved5g/swagger_client/models/all_of_ue_speed.py deleted file mode 100644 index 7a188e5..0000000 --- a/evolved5g/swagger_client/models/all_of_ue_speed.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six -from evolved5g.swagger_client.models.speed import Speed # noqa: F401,E501 - -class AllOfUESpeed(Speed): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - if hasattr(Speed, "swagger_types"): - swagger_types.update(Speed.swagger_types) - - attribute_map = { - } - if hasattr(Speed, "attribute_map"): - attribute_map.update(Speed.attribute_map) - - def __init__(self, *args, **kwargs): # noqa: E501 - """AllOfUESpeed - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - Speed.__init__(self, *args, **kwargs) - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AllOfUESpeed, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AllOfUESpeed): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/all_of_ue_update_speed.py b/evolved5g/swagger_client/models/all_of_ue_update_speed.py deleted file mode 100644 index 0dd9233..0000000 --- a/evolved5g/swagger_client/models/all_of_ue_update_speed.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six -from evolved5g.swagger_client.models.speed import Speed # noqa: F401,E501 - -class AllOfUEUpdateSpeed(Speed): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - if hasattr(Speed, "swagger_types"): - swagger_types.update(Speed.swagger_types) - - attribute_map = { - } - if hasattr(Speed, "attribute_map"): - attribute_map.update(Speed.attribute_map) - - def __init__(self, *args, **kwargs): # noqa: E501 - """AllOfUEUpdateSpeed - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - Speed.__init__(self, *args, **kwargs) - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AllOfUEUpdateSpeed, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AllOfUEUpdateSpeed): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/as_session_with_qo_s_subscription.py b/evolved5g/swagger_client/models/as_session_with_qo_s_subscription.py deleted file mode 100644 index 614a75f..0000000 --- a/evolved5g/swagger_client/models/as_session_with_qo_s_subscription.py +++ /dev/null @@ -1,382 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AsSessionWithQoSSubscription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'link': 'str', - 'ipv4_addr': 'str', - 'ipv6_addr': 'str', - 'mac_addr': 'str', - 'notification_destination': 'str', - 'snssai': 'Snssai', - 'dnn': 'str', - 'qos_reference': 'int', - 'alt_qo_s_references': 'list[int]', - 'usage_threshold': 'UsageThreshold', - 'qos_mon_info': 'QosMonitoringInformation' - } - - attribute_map = { - 'link': 'link', - 'ipv4_addr': 'ipv4Addr', - 'ipv6_addr': 'ipv6Addr', - 'mac_addr': 'macAddr', - 'notification_destination': 'notificationDestination', - 'snssai': 'snssai', - 'dnn': 'dnn', - 'qos_reference': 'qosReference', - 'alt_qo_s_references': 'altQoSReferences', - 'usage_threshold': 'usageThreshold', - 'qos_mon_info': 'qosMonInfo' - } - - def __init__(self, link='https://myresource.com', ipv4_addr=None, ipv6_addr='0:0:0:0:0:0:0:1', mac_addr=None, notification_destination='https://example.com/mynetapp', snssai=None, dnn='province1.mnc01.mcc202.gprs', qos_reference=None, alt_qo_s_references=None, usage_threshold=None, qos_mon_info=None): # noqa: E501 - """AsSessionWithQoSSubscription - a model defined in Swagger""" # noqa: E501 - self._link = None - self._ipv4_addr = None - self._ipv6_addr = None - self._mac_addr = None - self._notification_destination = None - self._snssai = None - self._dnn = None - self._qos_reference = None - self._alt_qo_s_references = None - self._usage_threshold = None - self._qos_mon_info = None - self.discriminator = None - if link is not None: - self.link = link - if ipv4_addr is not None: - self.ipv4_addr = ipv4_addr - if ipv6_addr is not None: - self.ipv6_addr = ipv6_addr - if mac_addr is not None: - self.mac_addr = mac_addr - if notification_destination is not None: - self.notification_destination = notification_destination - if snssai is not None: - self.snssai = snssai - if dnn is not None: - self.dnn = dnn - if qos_reference is not None: - self.qos_reference = qos_reference - if alt_qo_s_references is not None: - self.alt_qo_s_references = alt_qo_s_references - if usage_threshold is not None: - self.usage_threshold = usage_threshold - if qos_mon_info is not None: - self.qos_mon_info = qos_mon_info - - @property - def link(self): - """Gets the link of this AsSessionWithQoSSubscription. # noqa: E501 - - String identifying a referenced resource. This is also returned as a location header in 201 Created Response # noqa: E501 - - :return: The link of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this AsSessionWithQoSSubscription. - - String identifying a referenced resource. This is also returned as a location header in 201 Created Response # noqa: E501 - - :param link: The link of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._link = link - - @property - def ipv4_addr(self): - """Gets the ipv4_addr of this AsSessionWithQoSSubscription. # noqa: E501 - - String identifying an Ipv4 address # noqa: E501 - - :return: The ipv4_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._ipv4_addr - - @ipv4_addr.setter - def ipv4_addr(self, ipv4_addr): - """Sets the ipv4_addr of this AsSessionWithQoSSubscription. - - String identifying an Ipv4 address # noqa: E501 - - :param ipv4_addr: The ipv4_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._ipv4_addr = ipv4_addr - - @property - def ipv6_addr(self): - """Gets the ipv6_addr of this AsSessionWithQoSSubscription. # noqa: E501 - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :return: The ipv6_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._ipv6_addr - - @ipv6_addr.setter - def ipv6_addr(self, ipv6_addr): - """Sets the ipv6_addr of this AsSessionWithQoSSubscription. - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :param ipv6_addr: The ipv6_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._ipv6_addr = ipv6_addr - - @property - def mac_addr(self): - """Gets the mac_addr of this AsSessionWithQoSSubscription. # noqa: E501 - - - :return: The mac_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._mac_addr - - @mac_addr.setter - def mac_addr(self, mac_addr): - """Sets the mac_addr of this AsSessionWithQoSSubscription. - - - :param mac_addr: The mac_addr of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._mac_addr = mac_addr - - @property - def notification_destination(self): - """Gets the notification_destination of this AsSessionWithQoSSubscription. # noqa: E501 - - - :return: The notification_destination of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._notification_destination - - @notification_destination.setter - def notification_destination(self, notification_destination): - """Sets the notification_destination of this AsSessionWithQoSSubscription. - - - :param notification_destination: The notification_destination of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._notification_destination = notification_destination - - @property - def snssai(self): - """Gets the snssai of this AsSessionWithQoSSubscription. # noqa: E501 - - - :return: The snssai of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: Snssai - """ - return self._snssai - - @snssai.setter - def snssai(self, snssai): - """Sets the snssai of this AsSessionWithQoSSubscription. - - - :param snssai: The snssai of this AsSessionWithQoSSubscription. # noqa: E501 - :type: Snssai - """ - - self._snssai = snssai - - @property - def dnn(self): - """Gets the dnn of this AsSessionWithQoSSubscription. # noqa: E501 - - String identifying the Data Network Name (i.e., Access Point Name in 4G) # noqa: E501 - - :return: The dnn of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: str - """ - return self._dnn - - @dnn.setter - def dnn(self, dnn): - """Sets the dnn of this AsSessionWithQoSSubscription. - - String identifying the Data Network Name (i.e., Access Point Name in 4G) # noqa: E501 - - :param dnn: The dnn of this AsSessionWithQoSSubscription. # noqa: E501 - :type: str - """ - - self._dnn = dnn - - @property - def qos_reference(self): - """Gets the qos_reference of this AsSessionWithQoSSubscription. # noqa: E501 - - Identifies a pre-defined QoS Information # noqa: E501 - - :return: The qos_reference of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: int - """ - return self._qos_reference - - @qos_reference.setter - def qos_reference(self, qos_reference): - """Sets the qos_reference of this AsSessionWithQoSSubscription. - - Identifies a pre-defined QoS Information # noqa: E501 - - :param qos_reference: The qos_reference of this AsSessionWithQoSSubscription. # noqa: E501 - :type: int - """ - - self._qos_reference = qos_reference - - @property - def alt_qo_s_references(self): - """Gets the alt_qo_s_references of this AsSessionWithQoSSubscription. # noqa: E501 - - Identifies an ordered list of pre-defined QoS information. The lower the index of the array the higher the priority. # noqa: E501 - - :return: The alt_qo_s_references of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: list[int] - """ - return self._alt_qo_s_references - - @alt_qo_s_references.setter - def alt_qo_s_references(self, alt_qo_s_references): - """Sets the alt_qo_s_references of this AsSessionWithQoSSubscription. - - Identifies an ordered list of pre-defined QoS information. The lower the index of the array the higher the priority. # noqa: E501 - - :param alt_qo_s_references: The alt_qo_s_references of this AsSessionWithQoSSubscription. # noqa: E501 - :type: list[int] - """ - - self._alt_qo_s_references = alt_qo_s_references - - @property - def usage_threshold(self): - """Gets the usage_threshold of this AsSessionWithQoSSubscription. # noqa: E501 - - - :return: The usage_threshold of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: UsageThreshold - """ - return self._usage_threshold - - @usage_threshold.setter - def usage_threshold(self, usage_threshold): - """Sets the usage_threshold of this AsSessionWithQoSSubscription. - - - :param usage_threshold: The usage_threshold of this AsSessionWithQoSSubscription. # noqa: E501 - :type: UsageThreshold - """ - - self._usage_threshold = usage_threshold - - @property - def qos_mon_info(self): - """Gets the qos_mon_info of this AsSessionWithQoSSubscription. # noqa: E501 - - - :return: The qos_mon_info of this AsSessionWithQoSSubscription. # noqa: E501 - :rtype: QosMonitoringInformation - """ - return self._qos_mon_info - - @qos_mon_info.setter - def qos_mon_info(self, qos_mon_info): - """Sets the qos_mon_info of this AsSessionWithQoSSubscription. - - - :param qos_mon_info: The qos_mon_info of this AsSessionWithQoSSubscription. # noqa: E501 - :type: QosMonitoringInformation - """ - - self._qos_mon_info = qos_mon_info - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AsSessionWithQoSSubscription, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AsSessionWithQoSSubscription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/body_create_user_open_api_v1_users_open_post.py b/evolved5g/swagger_client/models/body_create_user_open_api_v1_users_open_post.py deleted file mode 100644 index 38f379f..0000000 --- a/evolved5g/swagger_client/models/body_create_user_open_api_v1_users_open_post.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class BodyCreateUserOpenApiV1UsersOpenPost(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'password': 'str', - 'email': 'str', - 'full_name': 'str' - } - - attribute_map = { - 'password': 'password', - 'email': 'email', - 'full_name': 'full_name' - } - - def __init__(self, password=None, email=None, full_name=None): # noqa: E501 - """BodyCreateUserOpenApiV1UsersOpenPost - a model defined in Swagger""" # noqa: E501 - self._password = None - self._email = None - self._full_name = None - self.discriminator = None - self.password = password - self.email = email - if full_name is not None: - self.full_name = full_name - - @property - def password(self): - """Gets the password of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - - - :return: The password of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this BodyCreateUserOpenApiV1UsersOpenPost. - - - :param password: The password of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - @property - def email(self): - """Gets the email of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - - - :return: The email of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this BodyCreateUserOpenApiV1UsersOpenPost. - - - :param email: The email of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def full_name(self): - """Gets the full_name of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - - - :return: The full_name of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :rtype: str - """ - return self._full_name - - @full_name.setter - def full_name(self, full_name): - """Sets the full_name of this BodyCreateUserOpenApiV1UsersOpenPost. - - - :param full_name: The full_name of this BodyCreateUserOpenApiV1UsersOpenPost. # noqa: E501 - :type: str - """ - - self._full_name = full_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(BodyCreateUserOpenApiV1UsersOpenPost, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BodyCreateUserOpenApiV1UsersOpenPost): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/body_login_access_token_api_v1_login_access_token_post.py b/evolved5g/swagger_client/models/body_login_access_token_api_v1_login_access_token_post.py deleted file mode 100644 index 01a896a..0000000 --- a/evolved5g/swagger_client/models/body_login_access_token_api_v1_login_access_token_post.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class BodyLoginAccessTokenApiV1LoginAccessTokenPost(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'grant_type': 'str', - 'username': 'str', - 'password': 'str', - 'scope': 'str', - 'client_id': 'str', - 'client_secret': 'str' - } - - attribute_map = { - 'grant_type': 'grant_type', - 'username': 'username', - 'password': 'password', - 'scope': 'scope', - 'client_id': 'client_id', - 'client_secret': 'client_secret' - } - - def __init__(self, grant_type=None, username=None, password=None, scope='', client_id=None, client_secret=None): # noqa: E501 - """BodyLoginAccessTokenApiV1LoginAccessTokenPost - a model defined in Swagger""" # noqa: E501 - self._grant_type = None - self._username = None - self._password = None - self._scope = None - self._client_id = None - self._client_secret = None - self.discriminator = None - if grant_type is not None: - self.grant_type = grant_type - self.username = username - self.password = password - if scope is not None: - self.scope = scope - if client_id is not None: - self.client_id = client_id - if client_secret is not None: - self.client_secret = client_secret - - @property - def grant_type(self): - """Gets the grant_type of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The grant_type of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._grant_type - - @grant_type.setter - def grant_type(self, grant_type): - """Sets the grant_type of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param grant_type: The grant_type of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - - self._grant_type = grant_type - - @property - def username(self): - """Gets the username of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The username of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param username: The username of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def password(self): - """Gets the password of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The password of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param password: The password of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - @property - def scope(self): - """Gets the scope of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The scope of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._scope - - @scope.setter - def scope(self, scope): - """Sets the scope of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param scope: The scope of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - - self._scope = scope - - @property - def client_id(self): - """Gets the client_id of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The client_id of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._client_id - - @client_id.setter - def client_id(self, client_id): - """Sets the client_id of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param client_id: The client_id of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - - self._client_id = client_id - - @property - def client_secret(self): - """Gets the client_secret of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - - - :return: The client_secret of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :rtype: str - """ - return self._client_secret - - @client_secret.setter - def client_secret(self, client_secret): - """Sets the client_secret of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. - - - :param client_secret: The client_secret of this BodyLoginAccessTokenApiV1LoginAccessTokenPost. # noqa: E501 - :type: str - """ - - self._client_secret = client_secret - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(BodyLoginAccessTokenApiV1LoginAccessTokenPost, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BodyLoginAccessTokenApiV1LoginAccessTokenPost): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/body_reset_password_api_v1_reset_password_post.py b/evolved5g/swagger_client/models/body_reset_password_api_v1_reset_password_post.py deleted file mode 100644 index 09d19ce..0000000 --- a/evolved5g/swagger_client/models/body_reset_password_api_v1_reset_password_post.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class BodyResetPasswordApiV1ResetPasswordPost(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'token': 'str', - 'new_password': 'str' - } - - attribute_map = { - 'token': 'token', - 'new_password': 'new_password' - } - - def __init__(self, token=None, new_password=None): # noqa: E501 - """BodyResetPasswordApiV1ResetPasswordPost - a model defined in Swagger""" # noqa: E501 - self._token = None - self._new_password = None - self.discriminator = None - self.token = token - self.new_password = new_password - - @property - def token(self): - """Gets the token of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - - - :return: The token of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this BodyResetPasswordApiV1ResetPasswordPost. - - - :param token: The token of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - :type: str - """ - if token is None: - raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 - - self._token = token - - @property - def new_password(self): - """Gets the new_password of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - - - :return: The new_password of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - :rtype: str - """ - return self._new_password - - @new_password.setter - def new_password(self, new_password): - """Sets the new_password of this BodyResetPasswordApiV1ResetPasswordPost. - - - :param new_password: The new_password of this BodyResetPasswordApiV1ResetPasswordPost. # noqa: E501 - :type: str - """ - if new_password is None: - raise ValueError("Invalid value for `new_password`, must not be `None`") # noqa: E501 - - self._new_password = new_password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(BodyResetPasswordApiV1ResetPasswordPost, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BodyResetPasswordApiV1ResetPasswordPost): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/body_update_user_me_api_v1_users_me_put.py b/evolved5g/swagger_client/models/body_update_user_me_api_v1_users_me_put.py deleted file mode 100644 index 2ec65c2..0000000 --- a/evolved5g/swagger_client/models/body_update_user_me_api_v1_users_me_put.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class BodyUpdateUserMeApiV1UsersMePut(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'password': 'str', - 'full_name': 'str', - 'email': 'str' - } - - attribute_map = { - 'password': 'password', - 'full_name': 'full_name', - 'email': 'email' - } - - def __init__(self, password=None, full_name=None, email=None): # noqa: E501 - """BodyUpdateUserMeApiV1UsersMePut - a model defined in Swagger""" # noqa: E501 - self._password = None - self._full_name = None - self._email = None - self.discriminator = None - if password is not None: - self.password = password - if full_name is not None: - self.full_name = full_name - if email is not None: - self.email = email - - @property - def password(self): - """Gets the password of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - - - :return: The password of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this BodyUpdateUserMeApiV1UsersMePut. - - - :param password: The password of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :type: str - """ - - self._password = password - - @property - def full_name(self): - """Gets the full_name of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - - - :return: The full_name of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :rtype: str - """ - return self._full_name - - @full_name.setter - def full_name(self, full_name): - """Sets the full_name of this BodyUpdateUserMeApiV1UsersMePut. - - - :param full_name: The full_name of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :type: str - """ - - self._full_name = full_name - - @property - def email(self): - """Gets the email of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - - - :return: The email of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this BodyUpdateUserMeApiV1UsersMePut. - - - :param email: The email of this BodyUpdateUserMeApiV1UsersMePut. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(BodyUpdateUserMeApiV1UsersMePut, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BodyUpdateUserMeApiV1UsersMePut): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/cell.py b/evolved5g/swagger_client/models/cell.py deleted file mode 100644 index 845d32e..0000000 --- a/evolved5g/swagger_client/models/cell.py +++ /dev/null @@ -1,322 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Cell(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cell_id': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'latitude': 'float', - 'longitude': 'float', - 'radius': 'float', - 'owner_id': 'int', - 'id': 'int' - } - - attribute_map = { - 'cell_id': 'cell_id', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'radius': 'radius', - 'owner_id': 'owner_id', - 'id': 'id' - } - - def __init__(self, cell_id=None, name=None, description=None, g_nb_id=None, latitude=None, longitude=None, radius=None, owner_id=None, id=None): # noqa: E501 - """Cell - a model defined in Swagger""" # noqa: E501 - self._cell_id = None - self._name = None - self._description = None - self._g_nb_id = None - self._latitude = None - self._longitude = None - self._radius = None - self._owner_id = None - self._id = None - self.discriminator = None - self.cell_id = cell_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if g_nb_id is not None: - self.g_nb_id = g_nb_id - self.latitude = latitude - self.longitude = longitude - self.radius = radius - if owner_id is not None: - self.owner_id = owner_id - if id is not None: - self.id = id - - @property - def cell_id(self): - """Gets the cell_id of this Cell. # noqa: E501 - - - :return: The cell_id of this Cell. # noqa: E501 - :rtype: str - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this Cell. - - - :param cell_id: The cell_id of this Cell. # noqa: E501 - :type: str - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def name(self): - """Gets the name of this Cell. # noqa: E501 - - - :return: The name of this Cell. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this Cell. - - - :param name: The name of this Cell. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this Cell. # noqa: E501 - - - :return: The description of this Cell. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this Cell. - - - :param description: The description of this Cell. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this Cell. # noqa: E501 - - - :return: The g_nb_id of this Cell. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this Cell. - - - :param g_nb_id: The g_nb_id of this Cell. # noqa: E501 - :type: int - """ - - self._g_nb_id = g_nb_id - - @property - def latitude(self): - """Gets the latitude of this Cell. # noqa: E501 - - - :return: The latitude of this Cell. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this Cell. - - - :param latitude: The latitude of this Cell. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this Cell. # noqa: E501 - - - :return: The longitude of this Cell. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this Cell. - - - :param longitude: The longitude of this Cell. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def radius(self): - """Gets the radius of this Cell. # noqa: E501 - - - :return: The radius of this Cell. # noqa: E501 - :rtype: float - """ - return self._radius - - @radius.setter - def radius(self, radius): - """Sets the radius of this Cell. - - - :param radius: The radius of this Cell. # noqa: E501 - :type: float - """ - if radius is None: - raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501 - - self._radius = radius - - @property - def owner_id(self): - """Gets the owner_id of this Cell. # noqa: E501 - - - :return: The owner_id of this Cell. # noqa: E501 - :rtype: int - """ - return self._owner_id - - @owner_id.setter - def owner_id(self, owner_id): - """Sets the owner_id of this Cell. - - - :param owner_id: The owner_id of this Cell. # noqa: E501 - :type: int - """ - - self._owner_id = owner_id - - @property - def id(self): - """Gets the id of this Cell. # noqa: E501 - - - :return: The id of this Cell. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this Cell. - - - :param id: The id of this Cell. # noqa: E501 - :type: int - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Cell, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Cell): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/cell_create.py b/evolved5g/swagger_client/models/cell_create.py deleted file mode 100644 index d3b8ec2..0000000 --- a/evolved5g/swagger_client/models/cell_create.py +++ /dev/null @@ -1,271 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CellCreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cell_id': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'latitude': 'float', - 'longitude': 'float', - 'radius': 'float' - } - - attribute_map = { - 'cell_id': 'cell_id', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'radius': 'radius' - } - - def __init__(self, cell_id=None, name=None, description=None, g_nb_id=None, latitude=None, longitude=None, radius=None): # noqa: E501 - """CellCreate - a model defined in Swagger""" # noqa: E501 - self._cell_id = None - self._name = None - self._description = None - self._g_nb_id = None - self._latitude = None - self._longitude = None - self._radius = None - self.discriminator = None - self.cell_id = cell_id - self.name = name - if description is not None: - self.description = description - if g_nb_id is not None: - self.g_nb_id = g_nb_id - self.latitude = latitude - self.longitude = longitude - self.radius = radius - - @property - def cell_id(self): - """Gets the cell_id of this CellCreate. # noqa: E501 - - - :return: The cell_id of this CellCreate. # noqa: E501 - :rtype: str - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this CellCreate. - - - :param cell_id: The cell_id of this CellCreate. # noqa: E501 - :type: str - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def name(self): - """Gets the name of this CellCreate. # noqa: E501 - - - :return: The name of this CellCreate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CellCreate. - - - :param name: The name of this CellCreate. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def description(self): - """Gets the description of this CellCreate. # noqa: E501 - - - :return: The description of this CellCreate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this CellCreate. - - - :param description: The description of this CellCreate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this CellCreate. # noqa: E501 - - - :return: The g_nb_id of this CellCreate. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this CellCreate. - - - :param g_nb_id: The g_nb_id of this CellCreate. # noqa: E501 - :type: int - """ - - self._g_nb_id = g_nb_id - - @property - def latitude(self): - """Gets the latitude of this CellCreate. # noqa: E501 - - - :return: The latitude of this CellCreate. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this CellCreate. - - - :param latitude: The latitude of this CellCreate. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this CellCreate. # noqa: E501 - - - :return: The longitude of this CellCreate. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this CellCreate. - - - :param longitude: The longitude of this CellCreate. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def radius(self): - """Gets the radius of this CellCreate. # noqa: E501 - - - :return: The radius of this CellCreate. # noqa: E501 - :rtype: float - """ - return self._radius - - @radius.setter - def radius(self, radius): - """Sets the radius of this CellCreate. - - - :param radius: The radius of this CellCreate. # noqa: E501 - :type: float - """ - if radius is None: - raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501 - - self._radius = radius - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CellCreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CellCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/cell_update.py b/evolved5g/swagger_client/models/cell_update.py deleted file mode 100644 index 40610e7..0000000 --- a/evolved5g/swagger_client/models/cell_update.py +++ /dev/null @@ -1,270 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CellUpdate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cell_id': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'latitude': 'float', - 'longitude': 'float', - 'radius': 'float' - } - - attribute_map = { - 'cell_id': 'cell_id', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'radius': 'radius' - } - - def __init__(self, cell_id=None, name=None, description=None, g_nb_id=None, latitude=None, longitude=None, radius=None): # noqa: E501 - """CellUpdate - a model defined in Swagger""" # noqa: E501 - self._cell_id = None - self._name = None - self._description = None - self._g_nb_id = None - self._latitude = None - self._longitude = None - self._radius = None - self.discriminator = None - self.cell_id = cell_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if g_nb_id is not None: - self.g_nb_id = g_nb_id - self.latitude = latitude - self.longitude = longitude - self.radius = radius - - @property - def cell_id(self): - """Gets the cell_id of this CellUpdate. # noqa: E501 - - - :return: The cell_id of this CellUpdate. # noqa: E501 - :rtype: str - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this CellUpdate. - - - :param cell_id: The cell_id of this CellUpdate. # noqa: E501 - :type: str - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def name(self): - """Gets the name of this CellUpdate. # noqa: E501 - - - :return: The name of this CellUpdate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CellUpdate. - - - :param name: The name of this CellUpdate. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this CellUpdate. # noqa: E501 - - - :return: The description of this CellUpdate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this CellUpdate. - - - :param description: The description of this CellUpdate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this CellUpdate. # noqa: E501 - - - :return: The g_nb_id of this CellUpdate. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this CellUpdate. - - - :param g_nb_id: The g_nb_id of this CellUpdate. # noqa: E501 - :type: int - """ - - self._g_nb_id = g_nb_id - - @property - def latitude(self): - """Gets the latitude of this CellUpdate. # noqa: E501 - - - :return: The latitude of this CellUpdate. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this CellUpdate. - - - :param latitude: The latitude of this CellUpdate. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this CellUpdate. # noqa: E501 - - - :return: The longitude of this CellUpdate. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this CellUpdate. - - - :param longitude: The longitude of this CellUpdate. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def radius(self): - """Gets the radius of this CellUpdate. # noqa: E501 - - - :return: The radius of this CellUpdate. # noqa: E501 - :rtype: float - """ - return self._radius - - @radius.setter - def radius(self, radius): - """Sets the radius of this CellUpdate. - - - :param radius: The radius of this CellUpdate. # noqa: E501 - :type: float - """ - if radius is None: - raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501 - - self._radius = radius - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CellUpdate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CellUpdate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/gnb.py b/evolved5g/swagger_client/models/gnb.py deleted file mode 100644 index 4b6a167..0000000 --- a/evolved5g/swagger_client/models/gnb.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GNB(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'g_nb_id': 'str', - 'name': 'str', - 'description': 'str', - 'location': 'str', - 'owner_id': 'int', - 'id': 'int' - } - - attribute_map = { - 'g_nb_id': 'gNB_id', - 'name': 'name', - 'description': 'description', - 'location': 'location', - 'owner_id': 'owner_id', - 'id': 'id' - } - - def __init__(self, g_nb_id=None, name=None, description=None, location=None, owner_id=None, id=None): # noqa: E501 - """GNB - a model defined in Swagger""" # noqa: E501 - self._g_nb_id = None - self._name = None - self._description = None - self._location = None - self._owner_id = None - self._id = None - self.discriminator = None - self.g_nb_id = g_nb_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if location is not None: - self.location = location - if owner_id is not None: - self.owner_id = owner_id - if id is not None: - self.id = id - - @property - def g_nb_id(self): - """Gets the g_nb_id of this GNB. # noqa: E501 - - - :return: The g_nb_id of this GNB. # noqa: E501 - :rtype: str - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this GNB. - - - :param g_nb_id: The g_nb_id of this GNB. # noqa: E501 - :type: str - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def name(self): - """Gets the name of this GNB. # noqa: E501 - - - :return: The name of this GNB. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GNB. - - - :param name: The name of this GNB. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this GNB. # noqa: E501 - - - :return: The description of this GNB. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this GNB. - - - :param description: The description of this GNB. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def location(self): - """Gets the location of this GNB. # noqa: E501 - - - :return: The location of this GNB. # noqa: E501 - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """Sets the location of this GNB. - - - :param location: The location of this GNB. # noqa: E501 - :type: str - """ - - self._location = location - - @property - def owner_id(self): - """Gets the owner_id of this GNB. # noqa: E501 - - - :return: The owner_id of this GNB. # noqa: E501 - :rtype: int - """ - return self._owner_id - - @owner_id.setter - def owner_id(self, owner_id): - """Sets the owner_id of this GNB. - - - :param owner_id: The owner_id of this GNB. # noqa: E501 - :type: int - """ - - self._owner_id = owner_id - - @property - def id(self): - """Gets the id of this GNB. # noqa: E501 - - - :return: The id of this GNB. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GNB. - - - :param id: The id of this GNB. # noqa: E501 - :type: int - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GNB, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GNB): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/gnb_create.py b/evolved5g/swagger_client/models/gnb_create.py deleted file mode 100644 index 4857f9d..0000000 --- a/evolved5g/swagger_client/models/gnb_create.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GNBCreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'g_nb_id': 'str', - 'name': 'str', - 'description': 'str', - 'location': 'str' - } - - attribute_map = { - 'g_nb_id': 'gNB_id', - 'name': 'name', - 'description': 'description', - 'location': 'location' - } - - def __init__(self, g_nb_id=None, name=None, description=None, location=None): # noqa: E501 - """GNBCreate - a model defined in Swagger""" # noqa: E501 - self._g_nb_id = None - self._name = None - self._description = None - self._location = None - self.discriminator = None - self.g_nb_id = g_nb_id - self.name = name - if description is not None: - self.description = description - if location is not None: - self.location = location - - @property - def g_nb_id(self): - """Gets the g_nb_id of this GNBCreate. # noqa: E501 - - - :return: The g_nb_id of this GNBCreate. # noqa: E501 - :rtype: str - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this GNBCreate. - - - :param g_nb_id: The g_nb_id of this GNBCreate. # noqa: E501 - :type: str - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def name(self): - """Gets the name of this GNBCreate. # noqa: E501 - - - :return: The name of this GNBCreate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GNBCreate. - - - :param name: The name of this GNBCreate. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def description(self): - """Gets the description of this GNBCreate. # noqa: E501 - - - :return: The description of this GNBCreate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this GNBCreate. - - - :param description: The description of this GNBCreate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def location(self): - """Gets the location of this GNBCreate. # noqa: E501 - - - :return: The location of this GNBCreate. # noqa: E501 - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """Sets the location of this GNBCreate. - - - :param location: The location of this GNBCreate. # noqa: E501 - :type: str - """ - - self._location = location - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GNBCreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GNBCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/gnb_update.py b/evolved5g/swagger_client/models/gnb_update.py deleted file mode 100644 index 1645f40..0000000 --- a/evolved5g/swagger_client/models/gnb_update.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GNBUpdate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'g_nb_id': 'str', - 'name': 'str', - 'description': 'str', - 'location': 'str' - } - - attribute_map = { - 'g_nb_id': 'gNB_id', - 'name': 'name', - 'description': 'description', - 'location': 'location' - } - - def __init__(self, g_nb_id=None, name=None, description=None, location=None): # noqa: E501 - """GNBUpdate - a model defined in Swagger""" # noqa: E501 - self._g_nb_id = None - self._name = None - self._description = None - self._location = None - self.discriminator = None - self.g_nb_id = g_nb_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if location is not None: - self.location = location - - @property - def g_nb_id(self): - """Gets the g_nb_id of this GNBUpdate. # noqa: E501 - - - :return: The g_nb_id of this GNBUpdate. # noqa: E501 - :rtype: str - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this GNBUpdate. - - - :param g_nb_id: The g_nb_id of this GNBUpdate. # noqa: E501 - :type: str - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def name(self): - """Gets the name of this GNBUpdate. # noqa: E501 - - - :return: The name of this GNBUpdate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GNBUpdate. - - - :param name: The name of this GNBUpdate. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this GNBUpdate. # noqa: E501 - - - :return: The description of this GNBUpdate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this GNBUpdate. - - - :param description: The description of this GNBUpdate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def location(self): - """Gets the location of this GNBUpdate. # noqa: E501 - - - :return: The location of this GNBUpdate. # noqa: E501 - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """Sets the location of this GNBUpdate. - - - :param location: The location of this GNBUpdate. # noqa: E501 - :type: str - """ - - self._location = location - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GNBUpdate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GNBUpdate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/http_validation_error.py b/evolved5g/swagger_client/models/http_validation_error.py deleted file mode 100644 index 6c52845..0000000 --- a/evolved5g/swagger_client/models/http_validation_error.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class HTTPValidationError(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'detail': 'list[ValidationError]' - } - - attribute_map = { - 'detail': 'detail' - } - - def __init__(self, detail=None): # noqa: E501 - """HTTPValidationError - a model defined in Swagger""" # noqa: E501 - self._detail = None - self.discriminator = None - if detail is not None: - self.detail = detail - - @property - def detail(self): - """Gets the detail of this HTTPValidationError. # noqa: E501 - - - :return: The detail of this HTTPValidationError. # noqa: E501 - :rtype: list[ValidationError] - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this HTTPValidationError. - - - :param detail: The detail of this HTTPValidationError. # noqa: E501 - :type: list[ValidationError] - """ - - self._detail = detail - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(HTTPValidationError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, HTTPValidationError): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/location_info.py b/evolved5g/swagger_client/models/location_info.py deleted file mode 100644 index 5f523a8..0000000 --- a/evolved5g/swagger_client/models/location_info.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LocationInfo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cell_id': 'str', - 'enode_b_id': 'str' - } - - attribute_map = { - 'cell_id': 'cellId', - 'enode_b_id': 'enodeBId' - } - - def __init__(self, cell_id=None, enode_b_id=None): # noqa: E501 - """LocationInfo - a model defined in Swagger""" # noqa: E501 - self._cell_id = None - self._enode_b_id = None - self.discriminator = None - if cell_id is not None: - self.cell_id = cell_id - if enode_b_id is not None: - self.enode_b_id = enode_b_id - - @property - def cell_id(self): - """Gets the cell_id of this LocationInfo. # noqa: E501 - - - :return: The cell_id of this LocationInfo. # noqa: E501 - :rtype: str - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this LocationInfo. - - - :param cell_id: The cell_id of this LocationInfo. # noqa: E501 - :type: str - """ - - self._cell_id = cell_id - - @property - def enode_b_id(self): - """Gets the enode_b_id of this LocationInfo. # noqa: E501 - - - :return: The enode_b_id of this LocationInfo. # noqa: E501 - :rtype: str - """ - return self._enode_b_id - - @enode_b_id.setter - def enode_b_id(self, enode_b_id): - """Sets the enode_b_id of this LocationInfo. - - - :param enode_b_id: The enode_b_id of this LocationInfo. # noqa: E501 - :type: str - """ - - self._enode_b_id = enode_b_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LocationInfo, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LocationInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/monitoring_event_report.py b/evolved5g/swagger_client/models/monitoring_event_report.py deleted file mode 100644 index f49806b..0000000 --- a/evolved5g/swagger_client/models/monitoring_event_report.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MonitoringEventReport(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'monitoring_type': 'MonitoringType', - 'location_info': 'LocationInfo' - } - - attribute_map = { - 'monitoring_type': 'monitoringType', - 'location_info': 'locationInfo' - } - - def __init__(self, monitoring_type=None, location_info=None): # noqa: E501 - """MonitoringEventReport - a model defined in Swagger""" # noqa: E501 - self._monitoring_type = None - self._location_info = None - self.discriminator = None - self.monitoring_type = monitoring_type - if location_info is not None: - self.location_info = location_info - - @property - def monitoring_type(self): - """Gets the monitoring_type of this MonitoringEventReport. # noqa: E501 - - - :return: The monitoring_type of this MonitoringEventReport. # noqa: E501 - :rtype: MonitoringType - """ - return self._monitoring_type - - @monitoring_type.setter - def monitoring_type(self, monitoring_type): - """Sets the monitoring_type of this MonitoringEventReport. - - - :param monitoring_type: The monitoring_type of this MonitoringEventReport. # noqa: E501 - :type: MonitoringType - """ - if monitoring_type is None: - raise ValueError("Invalid value for `monitoring_type`, must not be `None`") # noqa: E501 - - self._monitoring_type = monitoring_type - - @property - def location_info(self): - """Gets the location_info of this MonitoringEventReport. # noqa: E501 - - - :return: The location_info of this MonitoringEventReport. # noqa: E501 - :rtype: LocationInfo - """ - return self._location_info - - @location_info.setter - def location_info(self, location_info): - """Sets the location_info of this MonitoringEventReport. - - - :param location_info: The location_info of this MonitoringEventReport. # noqa: E501 - :type: LocationInfo - """ - - self._location_info = location_info - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MonitoringEventReport, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MonitoringEventReport): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/monitoring_event_report_received.py b/evolved5g/swagger_client/models/monitoring_event_report_received.py deleted file mode 100644 index bbc0e05..0000000 --- a/evolved5g/swagger_client/models/monitoring_event_report_received.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MonitoringEventReportReceived(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ok': 'bool' - } - - attribute_map = { - 'ok': 'ok' - } - - def __init__(self, ok=None): # noqa: E501 - """MonitoringEventReportReceived - a model defined in Swagger""" # noqa: E501 - self._ok = None - self.discriminator = None - self.ok = ok - - @property - def ok(self): - """Gets the ok of this MonitoringEventReportReceived. # noqa: E501 - - - :return: The ok of this MonitoringEventReportReceived. # noqa: E501 - :rtype: bool - """ - return self._ok - - @ok.setter - def ok(self, ok): - """Sets the ok of this MonitoringEventReportReceived. - - - :param ok: The ok of this MonitoringEventReportReceived. # noqa: E501 - :type: bool - """ - if ok is None: - raise ValueError("Invalid value for `ok`, must not be `None`") # noqa: E501 - - self._ok = ok - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MonitoringEventReportReceived, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MonitoringEventReportReceived): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/monitoring_event_subscription.py b/evolved5g/swagger_client/models/monitoring_event_subscription.py deleted file mode 100644 index b2498a0..0000000 --- a/evolved5g/swagger_client/models/monitoring_event_subscription.py +++ /dev/null @@ -1,333 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MonitoringEventSubscription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'external_id': 'str', - 'msisdn': 'str', - 'ipv4_addr': 'str', - 'ipv6_addr': 'str', - 'notification_destination': 'str', - 'monitoring_type': 'MonitoringType', - 'maximum_number_of_reports': 'int', - 'monitor_expire_time': 'datetime', - 'link': 'str' - } - - attribute_map = { - 'external_id': 'externalId', - 'msisdn': 'msisdn', - 'ipv4_addr': 'ipv4Addr', - 'ipv6_addr': 'ipv6Addr', - 'notification_destination': 'notificationDestination', - 'monitoring_type': 'monitoringType', - 'maximum_number_of_reports': 'maximumNumberOfReports', - 'monitor_expire_time': 'monitorExpireTime', - 'link': 'link' - } - - def __init__(self, external_id='123456789@domain.com', msisdn='918369110173', ipv4_addr=None, ipv6_addr='0:0:0:0:0:0:0:1', notification_destination='http://localhost:80/api/v1/utils/monitoring/callback', monitoring_type=None, maximum_number_of_reports=None, monitor_expire_time=None, link='https://myresource.com'): # noqa: E501 - """MonitoringEventSubscription - a model defined in Swagger""" # noqa: E501 - self._external_id = None - self._msisdn = None - self._ipv4_addr = None - self._ipv6_addr = None - self._notification_destination = None - self._monitoring_type = None - self._maximum_number_of_reports = None - self._monitor_expire_time = None - self._link = None - self.discriminator = None - if external_id is not None: - self.external_id = external_id - if msisdn is not None: - self.msisdn = msisdn - if ipv4_addr is not None: - self.ipv4_addr = ipv4_addr - if ipv6_addr is not None: - self.ipv6_addr = ipv6_addr - if notification_destination is not None: - self.notification_destination = notification_destination - self.monitoring_type = monitoring_type - if maximum_number_of_reports is not None: - self.maximum_number_of_reports = maximum_number_of_reports - if monitor_expire_time is not None: - self.monitor_expire_time = monitor_expire_time - if link is not None: - self.link = link - - @property - def external_id(self): - """Gets the external_id of this MonitoringEventSubscription. # noqa: E501 - - Globally unique identifier containing a Domain Identifier and a Local Identifier. \\@\\ # noqa: E501 - - :return: The external_id of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._external_id - - @external_id.setter - def external_id(self, external_id): - """Sets the external_id of this MonitoringEventSubscription. - - Globally unique identifier containing a Domain Identifier and a Local Identifier. \\@\\ # noqa: E501 - - :param external_id: The external_id of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._external_id = external_id - - @property - def msisdn(self): - """Gets the msisdn of this MonitoringEventSubscription. # noqa: E501 - - Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. # noqa: E501 - - :return: The msisdn of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._msisdn - - @msisdn.setter - def msisdn(self, msisdn): - """Sets the msisdn of this MonitoringEventSubscription. - - Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. # noqa: E501 - - :param msisdn: The msisdn of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._msisdn = msisdn - - @property - def ipv4_addr(self): - """Gets the ipv4_addr of this MonitoringEventSubscription. # noqa: E501 - - String identifying an Ipv4 address # noqa: E501 - - :return: The ipv4_addr of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._ipv4_addr - - @ipv4_addr.setter - def ipv4_addr(self, ipv4_addr): - """Sets the ipv4_addr of this MonitoringEventSubscription. - - String identifying an Ipv4 address # noqa: E501 - - :param ipv4_addr: The ipv4_addr of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._ipv4_addr = ipv4_addr - - @property - def ipv6_addr(self): - """Gets the ipv6_addr of this MonitoringEventSubscription. # noqa: E501 - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :return: The ipv6_addr of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._ipv6_addr - - @ipv6_addr.setter - def ipv6_addr(self, ipv6_addr): - """Sets the ipv6_addr of this MonitoringEventSubscription. - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :param ipv6_addr: The ipv6_addr of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._ipv6_addr = ipv6_addr - - @property - def notification_destination(self): - """Gets the notification_destination of this MonitoringEventSubscription. # noqa: E501 - - - :return: The notification_destination of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._notification_destination - - @notification_destination.setter - def notification_destination(self, notification_destination): - """Sets the notification_destination of this MonitoringEventSubscription. - - - :param notification_destination: The notification_destination of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._notification_destination = notification_destination - - @property - def monitoring_type(self): - """Gets the monitoring_type of this MonitoringEventSubscription. # noqa: E501 - - - :return: The monitoring_type of this MonitoringEventSubscription. # noqa: E501 - :rtype: MonitoringType - """ - return self._monitoring_type - - @monitoring_type.setter - def monitoring_type(self, monitoring_type): - """Sets the monitoring_type of this MonitoringEventSubscription. - - - :param monitoring_type: The monitoring_type of this MonitoringEventSubscription. # noqa: E501 - :type: MonitoringType - """ - if monitoring_type is None: - raise ValueError("Invalid value for `monitoring_type`, must not be `None`") # noqa: E501 - - self._monitoring_type = monitoring_type - - @property - def maximum_number_of_reports(self): - """Gets the maximum_number_of_reports of this MonitoringEventSubscription. # noqa: E501 - - Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request # noqa: E501 - - :return: The maximum_number_of_reports of this MonitoringEventSubscription. # noqa: E501 - :rtype: int - """ - return self._maximum_number_of_reports - - @maximum_number_of_reports.setter - def maximum_number_of_reports(self, maximum_number_of_reports): - """Sets the maximum_number_of_reports of this MonitoringEventSubscription. - - Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request # noqa: E501 - - :param maximum_number_of_reports: The maximum_number_of_reports of this MonitoringEventSubscription. # noqa: E501 - :type: int - """ - - self._maximum_number_of_reports = maximum_number_of_reports - - @property - def monitor_expire_time(self): - """Gets the monitor_expire_time of this MonitoringEventSubscription. # noqa: E501 - - Identifies the absolute time at which the related monitoring event request is considered to expire # noqa: E501 - - :return: The monitor_expire_time of this MonitoringEventSubscription. # noqa: E501 - :rtype: datetime - """ - return self._monitor_expire_time - - @monitor_expire_time.setter - def monitor_expire_time(self, monitor_expire_time): - """Sets the monitor_expire_time of this MonitoringEventSubscription. - - Identifies the absolute time at which the related monitoring event request is considered to expire # noqa: E501 - - :param monitor_expire_time: The monitor_expire_time of this MonitoringEventSubscription. # noqa: E501 - :type: datetime - """ - - self._monitor_expire_time = monitor_expire_time - - @property - def link(self): - """Gets the link of this MonitoringEventSubscription. # noqa: E501 - - String identifying a referenced resource. This is also returned as a location header in 201 Created Response # noqa: E501 - - :return: The link of this MonitoringEventSubscription. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this MonitoringEventSubscription. - - String identifying a referenced resource. This is also returned as a location header in 201 Created Response # noqa: E501 - - :param link: The link of this MonitoringEventSubscription. # noqa: E501 - :type: str - """ - - self._link = link - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MonitoringEventSubscription, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MonitoringEventSubscription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/monitoring_event_subscription_create.py b/evolved5g/swagger_client/models/monitoring_event_subscription_create.py deleted file mode 100644 index 1a0b06c..0000000 --- a/evolved5g/swagger_client/models/monitoring_event_subscription_create.py +++ /dev/null @@ -1,305 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MonitoringEventSubscriptionCreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'external_id': 'str', - 'msisdn': 'str', - 'ipv4_addr': 'str', - 'ipv6_addr': 'str', - 'notification_destination': 'str', - 'monitoring_type': 'MonitoringType', - 'maximum_number_of_reports': 'int', - 'monitor_expire_time': 'datetime' - } - - attribute_map = { - 'external_id': 'externalId', - 'msisdn': 'msisdn', - 'ipv4_addr': 'ipv4Addr', - 'ipv6_addr': 'ipv6Addr', - 'notification_destination': 'notificationDestination', - 'monitoring_type': 'monitoringType', - 'maximum_number_of_reports': 'maximumNumberOfReports', - 'monitor_expire_time': 'monitorExpireTime' - } - - def __init__(self, external_id='123456789@domain.com', msisdn='918369110173', ipv4_addr=None, ipv6_addr='0:0:0:0:0:0:0:1', notification_destination='http://localhost:80/api/v1/utils/monitoring/callback', monitoring_type=None, maximum_number_of_reports=None, monitor_expire_time=None): # noqa: E501 - """MonitoringEventSubscriptionCreate - a model defined in Swagger""" # noqa: E501 - self._external_id = None - self._msisdn = None - self._ipv4_addr = None - self._ipv6_addr = None - self._notification_destination = None - self._monitoring_type = None - self._maximum_number_of_reports = None - self._monitor_expire_time = None - self.discriminator = None - if external_id is not None: - self.external_id = external_id - if msisdn is not None: - self.msisdn = msisdn - if ipv4_addr is not None: - self.ipv4_addr = ipv4_addr - if ipv6_addr is not None: - self.ipv6_addr = ipv6_addr - if notification_destination is not None: - self.notification_destination = notification_destination - self.monitoring_type = monitoring_type - if maximum_number_of_reports is not None: - self.maximum_number_of_reports = maximum_number_of_reports - if monitor_expire_time is not None: - self.monitor_expire_time = monitor_expire_time - - @property - def external_id(self): - """Gets the external_id of this MonitoringEventSubscriptionCreate. # noqa: E501 - - Globally unique identifier containing a Domain Identifier and a Local Identifier. \\@\\ # noqa: E501 - - :return: The external_id of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: str - """ - return self._external_id - - @external_id.setter - def external_id(self, external_id): - """Sets the external_id of this MonitoringEventSubscriptionCreate. - - Globally unique identifier containing a Domain Identifier and a Local Identifier. \\@\\ # noqa: E501 - - :param external_id: The external_id of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: str - """ - - self._external_id = external_id - - @property - def msisdn(self): - """Gets the msisdn of this MonitoringEventSubscriptionCreate. # noqa: E501 - - Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. # noqa: E501 - - :return: The msisdn of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: str - """ - return self._msisdn - - @msisdn.setter - def msisdn(self, msisdn): - """Sets the msisdn of this MonitoringEventSubscriptionCreate. - - Mobile Subscriber ISDN number that consists of Country Code, National Destination Code and Subscriber Number. # noqa: E501 - - :param msisdn: The msisdn of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: str - """ - - self._msisdn = msisdn - - @property - def ipv4_addr(self): - """Gets the ipv4_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - - String identifying an Ipv4 address # noqa: E501 - - :return: The ipv4_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: str - """ - return self._ipv4_addr - - @ipv4_addr.setter - def ipv4_addr(self, ipv4_addr): - """Sets the ipv4_addr of this MonitoringEventSubscriptionCreate. - - String identifying an Ipv4 address # noqa: E501 - - :param ipv4_addr: The ipv4_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: str - """ - - self._ipv4_addr = ipv4_addr - - @property - def ipv6_addr(self): - """Gets the ipv6_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :return: The ipv6_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: str - """ - return self._ipv6_addr - - @ipv6_addr.setter - def ipv6_addr(self, ipv6_addr): - """Sets the ipv6_addr of this MonitoringEventSubscriptionCreate. - - String identifying an Ipv6 address. Default value ::1/128 (loopback) # noqa: E501 - - :param ipv6_addr: The ipv6_addr of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: str - """ - - self._ipv6_addr = ipv6_addr - - @property - def notification_destination(self): - """Gets the notification_destination of this MonitoringEventSubscriptionCreate. # noqa: E501 - - - :return: The notification_destination of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: str - """ - return self._notification_destination - - @notification_destination.setter - def notification_destination(self, notification_destination): - """Sets the notification_destination of this MonitoringEventSubscriptionCreate. - - - :param notification_destination: The notification_destination of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: str - """ - - self._notification_destination = notification_destination - - @property - def monitoring_type(self): - """Gets the monitoring_type of this MonitoringEventSubscriptionCreate. # noqa: E501 - - - :return: The monitoring_type of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: MonitoringType - """ - return self._monitoring_type - - @monitoring_type.setter - def monitoring_type(self, monitoring_type): - """Sets the monitoring_type of this MonitoringEventSubscriptionCreate. - - - :param monitoring_type: The monitoring_type of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: MonitoringType - """ - if monitoring_type is None: - raise ValueError("Invalid value for `monitoring_type`, must not be `None`") # noqa: E501 - - self._monitoring_type = monitoring_type - - @property - def maximum_number_of_reports(self): - """Gets the maximum_number_of_reports of this MonitoringEventSubscriptionCreate. # noqa: E501 - - Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request # noqa: E501 - - :return: The maximum_number_of_reports of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: int - """ - return self._maximum_number_of_reports - - @maximum_number_of_reports.setter - def maximum_number_of_reports(self, maximum_number_of_reports): - """Sets the maximum_number_of_reports of this MonitoringEventSubscriptionCreate. - - Identifies the maximum number of event reports to be generated. Value 1 makes the Monitoring Request a One-time Request # noqa: E501 - - :param maximum_number_of_reports: The maximum_number_of_reports of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: int - """ - - self._maximum_number_of_reports = maximum_number_of_reports - - @property - def monitor_expire_time(self): - """Gets the monitor_expire_time of this MonitoringEventSubscriptionCreate. # noqa: E501 - - Identifies the absolute time at which the related monitoring event request is considered to expire # noqa: E501 - - :return: The monitor_expire_time of this MonitoringEventSubscriptionCreate. # noqa: E501 - :rtype: datetime - """ - return self._monitor_expire_time - - @monitor_expire_time.setter - def monitor_expire_time(self, monitor_expire_time): - """Sets the monitor_expire_time of this MonitoringEventSubscriptionCreate. - - Identifies the absolute time at which the related monitoring event request is considered to expire # noqa: E501 - - :param monitor_expire_time: The monitor_expire_time of this MonitoringEventSubscriptionCreate. # noqa: E501 - :type: datetime - """ - - self._monitor_expire_time = monitor_expire_time - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MonitoringEventSubscriptionCreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MonitoringEventSubscriptionCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/monitoring_type.py b/evolved5g/swagger_client/models/monitoring_type.py deleted file mode 100644 index 09379fc..0000000 --- a/evolved5g/swagger_client/models/monitoring_type.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MonitoringType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - LOCATION_REPORTING = "LOCATION_REPORTING" - LOSS_OF_CONNECTIVITY = "LOSS_OF_CONNECTIVITY" - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """MonitoringType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MonitoringType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MonitoringType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/msg.py b/evolved5g/swagger_client/models/msg.py deleted file mode 100644 index bd1a1e3..0000000 --- a/evolved5g/swagger_client/models/msg.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Msg(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'supi': 'str' - } - - attribute_map = { - 'supi': 'supi' - } - - def __init__(self, supi=None): # noqa: E501 - """Msg - a model defined in Swagger""" # noqa: E501 - self._supi = None - self.discriminator = None - self.supi = supi - - @property - def supi(self): - """Gets the supi of this Msg. # noqa: E501 - - - :return: The supi of this Msg. # noqa: E501 - :rtype: str - """ - return self._supi - - @supi.setter - def supi(self, supi): - """Sets the supi of this Msg. - - - :param supi: The supi of this Msg. # noqa: E501 - :type: str - """ - if supi is None: - raise ValueError("Invalid value for `supi`, must not be `None`") # noqa: E501 - - self._supi = supi - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Msg, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Msg): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/path.py b/evolved5g/swagger_client/models/path.py deleted file mode 100644 index 8dca2d2..0000000 --- a/evolved5g/swagger_client/models/path.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Path(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'description': 'str', - 'points': 'list[Point]', - 'start_point': 'Point', - 'end_point': 'Point', - 'color': 'str', - 'id': 'int', - 'owner_id': 'int' - } - - attribute_map = { - 'description': 'description', - 'points': 'points', - 'start_point': 'start_point', - 'end_point': 'end_point', - 'color': 'color', - 'id': 'id', - 'owner_id': 'owner_id' - } - - def __init__(self, description=None, points=None, start_point=None, end_point=None, color=None, id=None, owner_id=None): # noqa: E501 - """Path - a model defined in Swagger""" # noqa: E501 - self._description = None - self._points = None - self._start_point = None - self._end_point = None - self._color = None - self._id = None - self._owner_id = None - self.discriminator = None - if description is not None: - self.description = description - if points is not None: - self.points = points - if start_point is not None: - self.start_point = start_point - if end_point is not None: - self.end_point = end_point - if color is not None: - self.color = color - self.id = id - self.owner_id = owner_id - - @property - def description(self): - """Gets the description of this Path. # noqa: E501 - - - :return: The description of this Path. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this Path. - - - :param description: The description of this Path. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def points(self): - """Gets the points of this Path. # noqa: E501 - - - :return: The points of this Path. # noqa: E501 - :rtype: list[Point] - """ - return self._points - - @points.setter - def points(self, points): - """Sets the points of this Path. - - - :param points: The points of this Path. # noqa: E501 - :type: list[Point] - """ - - self._points = points - - @property - def start_point(self): - """Gets the start_point of this Path. # noqa: E501 - - - :return: The start_point of this Path. # noqa: E501 - :rtype: Point - """ - return self._start_point - - @start_point.setter - def start_point(self, start_point): - """Sets the start_point of this Path. - - - :param start_point: The start_point of this Path. # noqa: E501 - :type: Point - """ - - self._start_point = start_point - - @property - def end_point(self): - """Gets the end_point of this Path. # noqa: E501 - - - :return: The end_point of this Path. # noqa: E501 - :rtype: Point - """ - return self._end_point - - @end_point.setter - def end_point(self, end_point): - """Sets the end_point of this Path. - - - :param end_point: The end_point of this Path. # noqa: E501 - :type: Point - """ - - self._end_point = end_point - - @property - def color(self): - """Gets the color of this Path. # noqa: E501 - - - :return: The color of this Path. # noqa: E501 - :rtype: str - """ - return self._color - - @color.setter - def color(self, color): - """Sets the color of this Path. - - - :param color: The color of this Path. # noqa: E501 - :type: str - """ - - self._color = color - - @property - def id(self): - """Gets the id of this Path. # noqa: E501 - - - :return: The id of this Path. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this Path. - - - :param id: The id of this Path. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def owner_id(self): - """Gets the owner_id of this Path. # noqa: E501 - - - :return: The owner_id of this Path. # noqa: E501 - :rtype: int - """ - return self._owner_id - - @owner_id.setter - def owner_id(self, owner_id): - """Sets the owner_id of this Path. - - - :param owner_id: The owner_id of this Path. # noqa: E501 - :type: int - """ - if owner_id is None: - raise ValueError("Invalid value for `owner_id`, must not be `None`") # noqa: E501 - - self._owner_id = owner_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Path, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Path): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/path_create.py b/evolved5g/swagger_client/models/path_create.py deleted file mode 100644 index 2387cf6..0000000 --- a/evolved5g/swagger_client/models/path_create.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class PathCreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'description': 'str', - 'points': 'list[Point]', - 'start_point': 'Point', - 'end_point': 'Point', - 'color': 'str' - } - - attribute_map = { - 'description': 'description', - 'points': 'points', - 'start_point': 'start_point', - 'end_point': 'end_point', - 'color': 'color' - } - - def __init__(self, description=None, points=None, start_point=None, end_point=None, color=None): # noqa: E501 - """PathCreate - a model defined in Swagger""" # noqa: E501 - self._description = None - self._points = None - self._start_point = None - self._end_point = None - self._color = None - self.discriminator = None - if description is not None: - self.description = description - if points is not None: - self.points = points - if start_point is not None: - self.start_point = start_point - if end_point is not None: - self.end_point = end_point - if color is not None: - self.color = color - - @property - def description(self): - """Gets the description of this PathCreate. # noqa: E501 - - - :return: The description of this PathCreate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this PathCreate. - - - :param description: The description of this PathCreate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def points(self): - """Gets the points of this PathCreate. # noqa: E501 - - - :return: The points of this PathCreate. # noqa: E501 - :rtype: list[Point] - """ - return self._points - - @points.setter - def points(self, points): - """Sets the points of this PathCreate. - - - :param points: The points of this PathCreate. # noqa: E501 - :type: list[Point] - """ - - self._points = points - - @property - def start_point(self): - """Gets the start_point of this PathCreate. # noqa: E501 - - - :return: The start_point of this PathCreate. # noqa: E501 - :rtype: Point - """ - return self._start_point - - @start_point.setter - def start_point(self, start_point): - """Sets the start_point of this PathCreate. - - - :param start_point: The start_point of this PathCreate. # noqa: E501 - :type: Point - """ - - self._start_point = start_point - - @property - def end_point(self): - """Gets the end_point of this PathCreate. # noqa: E501 - - - :return: The end_point of this PathCreate. # noqa: E501 - :rtype: Point - """ - return self._end_point - - @end_point.setter - def end_point(self, end_point): - """Sets the end_point of this PathCreate. - - - :param end_point: The end_point of this PathCreate. # noqa: E501 - :type: Point - """ - - self._end_point = end_point - - @property - def color(self): - """Gets the color of this PathCreate. # noqa: E501 - - - :return: The color of this PathCreate. # noqa: E501 - :rtype: str - """ - return self._color - - @color.setter - def color(self, color): - """Sets the color of this PathCreate. - - - :param color: The color of this PathCreate. # noqa: E501 - :type: str - """ - - self._color = color - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(PathCreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PathCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/path_update.py b/evolved5g/swagger_client/models/path_update.py deleted file mode 100644 index 7b169ae..0000000 --- a/evolved5g/swagger_client/models/path_update.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class PathUpdate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'description': 'str', - 'points': 'list[Point]', - 'start_point': 'Point', - 'end_point': 'Point', - 'color': 'str' - } - - attribute_map = { - 'description': 'description', - 'points': 'points', - 'start_point': 'start_point', - 'end_point': 'end_point', - 'color': 'color' - } - - def __init__(self, description=None, points=None, start_point=None, end_point=None, color=None): # noqa: E501 - """PathUpdate - a model defined in Swagger""" # noqa: E501 - self._description = None - self._points = None - self._start_point = None - self._end_point = None - self._color = None - self.discriminator = None - if description is not None: - self.description = description - if points is not None: - self.points = points - if start_point is not None: - self.start_point = start_point - if end_point is not None: - self.end_point = end_point - if color is not None: - self.color = color - - @property - def description(self): - """Gets the description of this PathUpdate. # noqa: E501 - - - :return: The description of this PathUpdate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this PathUpdate. - - - :param description: The description of this PathUpdate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def points(self): - """Gets the points of this PathUpdate. # noqa: E501 - - - :return: The points of this PathUpdate. # noqa: E501 - :rtype: list[Point] - """ - return self._points - - @points.setter - def points(self, points): - """Sets the points of this PathUpdate. - - - :param points: The points of this PathUpdate. # noqa: E501 - :type: list[Point] - """ - - self._points = points - - @property - def start_point(self): - """Gets the start_point of this PathUpdate. # noqa: E501 - - - :return: The start_point of this PathUpdate. # noqa: E501 - :rtype: Point - """ - return self._start_point - - @start_point.setter - def start_point(self, start_point): - """Sets the start_point of this PathUpdate. - - - :param start_point: The start_point of this PathUpdate. # noqa: E501 - :type: Point - """ - - self._start_point = start_point - - @property - def end_point(self): - """Gets the end_point of this PathUpdate. # noqa: E501 - - - :return: The end_point of this PathUpdate. # noqa: E501 - :rtype: Point - """ - return self._end_point - - @end_point.setter - def end_point(self, end_point): - """Sets the end_point of this PathUpdate. - - - :param end_point: The end_point of this PathUpdate. # noqa: E501 - :type: Point - """ - - self._end_point = end_point - - @property - def color(self): - """Gets the color of this PathUpdate. # noqa: E501 - - - :return: The color of this PathUpdate. # noqa: E501 - :rtype: str - """ - return self._color - - @color.setter - def color(self, color): - """Sets the color of this PathUpdate. - - - :param color: The color of this PathUpdate. # noqa: E501 - :type: str - """ - - self._color = color - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(PathUpdate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PathUpdate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/point.py b/evolved5g/swagger_client/models/point.py deleted file mode 100644 index 857968c..0000000 --- a/evolved5g/swagger_client/models/point.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Point(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'latitude': 'float', - 'longitude': 'float' - } - - attribute_map = { - 'latitude': 'latitude', - 'longitude': 'longitude' - } - - def __init__(self, latitude=None, longitude=None): # noqa: E501 - """Point - a model defined in Swagger""" # noqa: E501 - self._latitude = None - self._longitude = None - self.discriminator = None - self.latitude = latitude - self.longitude = longitude - - @property - def latitude(self): - """Gets the latitude of this Point. # noqa: E501 - - - :return: The latitude of this Point. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this Point. - - - :param latitude: The latitude of this Point. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this Point. # noqa: E501 - - - :return: The longitude of this Point. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this Point. - - - :param longitude: The longitude of this Point. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Point, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Point): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/qos_monitoring_information.py b/evolved5g/swagger_client/models/qos_monitoring_information.py deleted file mode 100644 index d016b39..0000000 --- a/evolved5g/swagger_client/models/qos_monitoring_information.py +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class QosMonitoringInformation(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'req_qos_mon_params': 'list[RequestedQoSMonitoringParameters]', - 'rep_freqs': 'list[ReportingFrequency]', - 'lat_thresh_dl': 'int', - 'lat_thresh_ul': 'int', - 'lat_thresh_rp': 'int', - 'wait_time': 'int', - 'rep_period': 'int' - } - - attribute_map = { - 'req_qos_mon_params': 'reqQosMonParams', - 'rep_freqs': 'repFreqs', - 'lat_thresh_dl': 'latThreshDl', - 'lat_thresh_ul': 'latThreshUl', - 'lat_thresh_rp': 'latThreshRp', - 'wait_time': 'waitTime', - 'rep_period': 'repPeriod' - } - - def __init__(self, req_qos_mon_params=None, rep_freqs=None, lat_thresh_dl=None, lat_thresh_ul=None, lat_thresh_rp=None, wait_time=None, rep_period=None): # noqa: E501 - """QosMonitoringInformation - a model defined in Swagger""" # noqa: E501 - self._req_qos_mon_params = None - self._rep_freqs = None - self._lat_thresh_dl = None - self._lat_thresh_ul = None - self._lat_thresh_rp = None - self._wait_time = None - self._rep_period = None - self.discriminator = None - if req_qos_mon_params is not None: - self.req_qos_mon_params = req_qos_mon_params - if rep_freqs is not None: - self.rep_freqs = rep_freqs - if lat_thresh_dl is not None: - self.lat_thresh_dl = lat_thresh_dl - if lat_thresh_ul is not None: - self.lat_thresh_ul = lat_thresh_ul - if lat_thresh_rp is not None: - self.lat_thresh_rp = lat_thresh_rp - if wait_time is not None: - self.wait_time = wait_time - if rep_period is not None: - self.rep_period = rep_period - - @property - def req_qos_mon_params(self): - """Gets the req_qos_mon_params of this QosMonitoringInformation. # noqa: E501 - - Indicates the requested QoS monitoring parameters to be measured # noqa: E501 - - :return: The req_qos_mon_params of this QosMonitoringInformation. # noqa: E501 - :rtype: list[RequestedQoSMonitoringParameters] - """ - return self._req_qos_mon_params - - @req_qos_mon_params.setter - def req_qos_mon_params(self, req_qos_mon_params): - """Sets the req_qos_mon_params of this QosMonitoringInformation. - - Indicates the requested QoS monitoring parameters to be measured # noqa: E501 - - :param req_qos_mon_params: The req_qos_mon_params of this QosMonitoringInformation. # noqa: E501 - :type: list[RequestedQoSMonitoringParameters] - """ - - self._req_qos_mon_params = req_qos_mon_params - - @property - def rep_freqs(self): - """Gets the rep_freqs of this QosMonitoringInformation. # noqa: E501 - - Indicates the frequency for the reporting # noqa: E501 - - :return: The rep_freqs of this QosMonitoringInformation. # noqa: E501 - :rtype: list[ReportingFrequency] - """ - return self._rep_freqs - - @rep_freqs.setter - def rep_freqs(self, rep_freqs): - """Sets the rep_freqs of this QosMonitoringInformation. - - Indicates the frequency for the reporting # noqa: E501 - - :param rep_freqs: The rep_freqs of this QosMonitoringInformation. # noqa: E501 - :type: list[ReportingFrequency] - """ - - self._rep_freqs = rep_freqs - - @property - def lat_thresh_dl(self): - """Gets the lat_thresh_dl of this QosMonitoringInformation. # noqa: E501 - - Threshold in units of milliseconds for downlink packet delay # noqa: E501 - - :return: The lat_thresh_dl of this QosMonitoringInformation. # noqa: E501 - :rtype: int - """ - return self._lat_thresh_dl - - @lat_thresh_dl.setter - def lat_thresh_dl(self, lat_thresh_dl): - """Sets the lat_thresh_dl of this QosMonitoringInformation. - - Threshold in units of milliseconds for downlink packet delay # noqa: E501 - - :param lat_thresh_dl: The lat_thresh_dl of this QosMonitoringInformation. # noqa: E501 - :type: int - """ - - self._lat_thresh_dl = lat_thresh_dl - - @property - def lat_thresh_ul(self): - """Gets the lat_thresh_ul of this QosMonitoringInformation. # noqa: E501 - - Threshold in units of milliseconds for uplink packet delay # noqa: E501 - - :return: The lat_thresh_ul of this QosMonitoringInformation. # noqa: E501 - :rtype: int - """ - return self._lat_thresh_ul - - @lat_thresh_ul.setter - def lat_thresh_ul(self, lat_thresh_ul): - """Sets the lat_thresh_ul of this QosMonitoringInformation. - - Threshold in units of milliseconds for uplink packet delay # noqa: E501 - - :param lat_thresh_ul: The lat_thresh_ul of this QosMonitoringInformation. # noqa: E501 - :type: int - """ - - self._lat_thresh_ul = lat_thresh_ul - - @property - def lat_thresh_rp(self): - """Gets the lat_thresh_rp of this QosMonitoringInformation. # noqa: E501 - - Threshold in units of milliseconds for round trip packet delay # noqa: E501 - - :return: The lat_thresh_rp of this QosMonitoringInformation. # noqa: E501 - :rtype: int - """ - return self._lat_thresh_rp - - @lat_thresh_rp.setter - def lat_thresh_rp(self, lat_thresh_rp): - """Sets the lat_thresh_rp of this QosMonitoringInformation. - - Threshold in units of milliseconds for round trip packet delay # noqa: E501 - - :param lat_thresh_rp: The lat_thresh_rp of this QosMonitoringInformation. # noqa: E501 - :type: int - """ - - self._lat_thresh_rp = lat_thresh_rp - - @property - def wait_time(self): - """Gets the wait_time of this QosMonitoringInformation. # noqa: E501 - - Indicates the minimum waiting time (seconds) between subsequent reports. Only applicable when the \"repFreqs\" attribute includes \"EVENT_TRIGGERED\". # noqa: E501 - - :return: The wait_time of this QosMonitoringInformation. # noqa: E501 - :rtype: int - """ - return self._wait_time - - @wait_time.setter - def wait_time(self, wait_time): - """Sets the wait_time of this QosMonitoringInformation. - - Indicates the minimum waiting time (seconds) between subsequent reports. Only applicable when the \"repFreqs\" attribute includes \"EVENT_TRIGGERED\". # noqa: E501 - - :param wait_time: The wait_time of this QosMonitoringInformation. # noqa: E501 - :type: int - """ - - self._wait_time = wait_time - - @property - def rep_period(self): - """Gets the rep_period of this QosMonitoringInformation. # noqa: E501 - - Indicates the time interval (seconds) between successive reporting. Only applicable when the \"repFreqs\" attribute includes\"PERIODIC\". # noqa: E501 - - :return: The rep_period of this QosMonitoringInformation. # noqa: E501 - :rtype: int - """ - return self._rep_period - - @rep_period.setter - def rep_period(self, rep_period): - """Sets the rep_period of this QosMonitoringInformation. - - Indicates the time interval (seconds) between successive reporting. Only applicable when the \"repFreqs\" attribute includes\"PERIODIC\". # noqa: E501 - - :param rep_period: The rep_period of this QosMonitoringInformation. # noqa: E501 - :type: int - """ - - self._rep_period = rep_period - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(QosMonitoringInformation, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, QosMonitoringInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/reporting_frequency.py b/evolved5g/swagger_client/models/reporting_frequency.py deleted file mode 100644 index 42d4196..0000000 --- a/evolved5g/swagger_client/models/reporting_frequency.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ReportingFrequency(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - EVENT_TRIGGERED = "EVENT_TRIGGERED" - PERIODIC = "PERIODIC" - SESSION_RELEASE = "SESSION_RELEASE" - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ReportingFrequency - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ReportingFrequency, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ReportingFrequency): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/requested_qo_s_monitoring_parameters.py b/evolved5g/swagger_client/models/requested_qo_s_monitoring_parameters.py deleted file mode 100644 index ae30ff9..0000000 --- a/evolved5g/swagger_client/models/requested_qo_s_monitoring_parameters.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class RequestedQoSMonitoringParameters(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DOWNLINK = "DOWNLINK" - UPLINK = "UPLINK" - ROUND_TRIP = "ROUND_TRIP" - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """RequestedQoSMonitoringParameters - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(RequestedQoSMonitoringParameters, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RequestedQoSMonitoringParameters): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/snssai.py b/evolved5g/swagger_client/models/snssai.py deleted file mode 100644 index 52f9688..0000000 --- a/evolved5g/swagger_client/models/snssai.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Snssai(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'sst': 'int', - 'sd': 'str' - } - - attribute_map = { - 'sst': 'sst', - 'sd': 'sd' - } - - def __init__(self, sst=None, sd=None): # noqa: E501 - """Snssai - a model defined in Swagger""" # noqa: E501 - self._sst = None - self._sd = None - self.discriminator = None - if sst is not None: - self.sst = sst - if sd is not None: - self.sd = sd - - @property - def sst(self): - """Gets the sst of this Snssai. # noqa: E501 - - Unsigned integer representing the Slice/Service Type. Value 0 to 127 correspond to the standardized SST range. Value 128 to 255 correspond to the Operator-specific range. # noqa: E501 - - :return: The sst of this Snssai. # noqa: E501 - :rtype: int - """ - return self._sst - - @sst.setter - def sst(self, sst): - """Sets the sst of this Snssai. - - Unsigned integer representing the Slice/Service Type. Value 0 to 127 correspond to the standardized SST range. Value 128 to 255 correspond to the Operator-specific range. # noqa: E501 - - :param sst: The sst of this Snssai. # noqa: E501 - :type: int - """ - - self._sst = sst - - @property - def sd(self): - """Gets the sd of this Snssai. # noqa: E501 - - This value respresents the Slice Differentiator, in hexadecimal representation. # noqa: E501 - - :return: The sd of this Snssai. # noqa: E501 - :rtype: str - """ - return self._sd - - @sd.setter - def sd(self, sd): - """Sets the sd of this Snssai. - - This value respresents the Slice Differentiator, in hexadecimal representation. # noqa: E501 - - :param sd: The sd of this Snssai. # noqa: E501 - :type: str - """ - - self._sd = sd - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Snssai, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Snssai): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/speed.py b/evolved5g/swagger_client/models/speed.py deleted file mode 100644 index 90f3634..0000000 --- a/evolved5g/swagger_client/models/speed.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Speed(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - STATIONARY = "STATIONARY" - LOW = "LOW" - HIGH = "HIGH" - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """Speed - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Speed, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Speed): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/token.py b/evolved5g/swagger_client/models/token.py deleted file mode 100644 index 4ba98b0..0000000 --- a/evolved5g/swagger_client/models/token.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class Token(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access_token': 'str', - 'token_type': 'str' - } - - attribute_map = { - 'access_token': 'access_token', - 'token_type': 'token_type' - } - - def __init__(self, access_token=None, token_type=None): # noqa: E501 - """Token - a model defined in Swagger""" # noqa: E501 - self._access_token = None - self._token_type = None - self.discriminator = None - self.access_token = access_token - self.token_type = token_type - - @property - def access_token(self): - """Gets the access_token of this Token. # noqa: E501 - - - :return: The access_token of this Token. # noqa: E501 - :rtype: str - """ - return self._access_token - - @access_token.setter - def access_token(self, access_token): - """Sets the access_token of this Token. - - - :param access_token: The access_token of this Token. # noqa: E501 - :type: str - """ - if access_token is None: - raise ValueError("Invalid value for `access_token`, must not be `None`") # noqa: E501 - - self._access_token = access_token - - @property - def token_type(self): - """Gets the token_type of this Token. # noqa: E501 - - - :return: The token_type of this Token. # noqa: E501 - :rtype: str - """ - return self._token_type - - @token_type.setter - def token_type(self, token_type): - """Sets the token_type of this Token. - - - :param token_type: The token_type of this Token. # noqa: E501 - :type: str - """ - if token_type is None: - raise ValueError("Invalid value for `token_type`, must not be `None`") # noqa: E501 - - self._token_type = token_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(Token, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Token): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/u_es.py b/evolved5g/swagger_client/models/u_es.py deleted file mode 100644 index d2509e4..0000000 --- a/evolved5g/swagger_client/models/u_es.py +++ /dev/null @@ -1,534 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UEs(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'supi': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'cell_id': 'int', - 'ip_address_v4': 'str', - 'ip_address_v6': 'str', - 'mac_address': 'str', - 'dnn': 'str', - 'mcc': 'int', - 'mnc': 'int', - 'external_identifier': 'str', - 'latitude': 'float', - 'longitude': 'float', - 'speed': 'AllOfUEsSpeed', - 'path_id': 'int', - 'cell_id_hex': 'str' - } - - attribute_map = { - 'supi': 'supi', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'cell_id': 'Cell_id', - 'ip_address_v4': 'ip_address_v4', - 'ip_address_v6': 'ip_address_v6', - 'mac_address': 'mac_address', - 'dnn': 'dnn', - 'mcc': 'mcc', - 'mnc': 'mnc', - 'external_identifier': 'external_identifier', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'speed': 'speed', - 'path_id': 'path_id', - 'cell_id_hex': 'cell_id_hex' - } - - def __init__(self, supi=None, name=None, description=None, g_nb_id=None, cell_id=None, ip_address_v4='169.254.46.5', ip_address_v6='fe80::349d:33ff:fe76:2cee', mac_address=None, dnn=None, mcc=None, mnc=None, external_identifier=None, latitude=None, longitude=None, speed=None, path_id=None, cell_id_hex=None): # noqa: E501 - """UEs - a model defined in Swagger""" # noqa: E501 - self._supi = None - self._name = None - self._description = None - self._g_nb_id = None - self._cell_id = None - self._ip_address_v4 = None - self._ip_address_v6 = None - self._mac_address = None - self._dnn = None - self._mcc = None - self._mnc = None - self._external_identifier = None - self._latitude = None - self._longitude = None - self._speed = None - self._path_id = None - self._cell_id_hex = None - self.discriminator = None - self.supi = supi - if name is not None: - self.name = name - if description is not None: - self.description = description - self.g_nb_id = g_nb_id - self.cell_id = cell_id - if ip_address_v4 is not None: - self.ip_address_v4 = ip_address_v4 - if ip_address_v6 is not None: - self.ip_address_v6 = ip_address_v6 - if mac_address is not None: - self.mac_address = mac_address - if dnn is not None: - self.dnn = dnn - if mcc is not None: - self.mcc = mcc - if mnc is not None: - self.mnc = mnc - if external_identifier is not None: - self.external_identifier = external_identifier - self.latitude = latitude - self.longitude = longitude - if speed is not None: - self.speed = speed - if path_id is not None: - self.path_id = path_id - self.cell_id_hex = cell_id_hex - - @property - def supi(self): - """Gets the supi of this UEs. # noqa: E501 - - - :return: The supi of this UEs. # noqa: E501 - :rtype: str - """ - return self._supi - - @supi.setter - def supi(self, supi): - """Sets the supi of this UEs. - - - :param supi: The supi of this UEs. # noqa: E501 - :type: str - """ - if supi is None: - raise ValueError("Invalid value for `supi`, must not be `None`") # noqa: E501 - - self._supi = supi - - @property - def name(self): - """Gets the name of this UEs. # noqa: E501 - - - :return: The name of this UEs. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UEs. - - - :param name: The name of this UEs. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this UEs. # noqa: E501 - - - :return: The description of this UEs. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this UEs. - - - :param description: The description of this UEs. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this UEs. # noqa: E501 - - - :return: The g_nb_id of this UEs. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this UEs. - - - :param g_nb_id: The g_nb_id of this UEs. # noqa: E501 - :type: int - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def cell_id(self): - """Gets the cell_id of this UEs. # noqa: E501 - - - :return: The cell_id of this UEs. # noqa: E501 - :rtype: int - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this UEs. - - - :param cell_id: The cell_id of this UEs. # noqa: E501 - :type: int - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def ip_address_v4(self): - """Gets the ip_address_v4 of this UEs. # noqa: E501 - - - :return: The ip_address_v4 of this UEs. # noqa: E501 - :rtype: str - """ - return self._ip_address_v4 - - @ip_address_v4.setter - def ip_address_v4(self, ip_address_v4): - """Sets the ip_address_v4 of this UEs. - - - :param ip_address_v4: The ip_address_v4 of this UEs. # noqa: E501 - :type: str - """ - - self._ip_address_v4 = ip_address_v4 - - @property - def ip_address_v6(self): - """Gets the ip_address_v6 of this UEs. # noqa: E501 - - - :return: The ip_address_v6 of this UEs. # noqa: E501 - :rtype: str - """ - return self._ip_address_v6 - - @ip_address_v6.setter - def ip_address_v6(self, ip_address_v6): - """Sets the ip_address_v6 of this UEs. - - - :param ip_address_v6: The ip_address_v6 of this UEs. # noqa: E501 - :type: str - """ - - self._ip_address_v6 = ip_address_v6 - - @property - def mac_address(self): - """Gets the mac_address of this UEs. # noqa: E501 - - - :return: The mac_address of this UEs. # noqa: E501 - :rtype: str - """ - return self._mac_address - - @mac_address.setter - def mac_address(self, mac_address): - """Sets the mac_address of this UEs. - - - :param mac_address: The mac_address of this UEs. # noqa: E501 - :type: str - """ - - self._mac_address = mac_address - - @property - def dnn(self): - """Gets the dnn of this UEs. # noqa: E501 - - - :return: The dnn of this UEs. # noqa: E501 - :rtype: str - """ - return self._dnn - - @dnn.setter - def dnn(self, dnn): - """Sets the dnn of this UEs. - - - :param dnn: The dnn of this UEs. # noqa: E501 - :type: str - """ - - self._dnn = dnn - - @property - def mcc(self): - """Gets the mcc of this UEs. # noqa: E501 - - - :return: The mcc of this UEs. # noqa: E501 - :rtype: int - """ - return self._mcc - - @mcc.setter - def mcc(self, mcc): - """Sets the mcc of this UEs. - - - :param mcc: The mcc of this UEs. # noqa: E501 - :type: int - """ - - self._mcc = mcc - - @property - def mnc(self): - """Gets the mnc of this UEs. # noqa: E501 - - - :return: The mnc of this UEs. # noqa: E501 - :rtype: int - """ - return self._mnc - - @mnc.setter - def mnc(self, mnc): - """Sets the mnc of this UEs. - - - :param mnc: The mnc of this UEs. # noqa: E501 - :type: int - """ - - self._mnc = mnc - - @property - def external_identifier(self): - """Gets the external_identifier of this UEs. # noqa: E501 - - - :return: The external_identifier of this UEs. # noqa: E501 - :rtype: str - """ - return self._external_identifier - - @external_identifier.setter - def external_identifier(self, external_identifier): - """Sets the external_identifier of this UEs. - - - :param external_identifier: The external_identifier of this UEs. # noqa: E501 - :type: str - """ - - self._external_identifier = external_identifier - - @property - def latitude(self): - """Gets the latitude of this UEs. # noqa: E501 - - - :return: The latitude of this UEs. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this UEs. - - - :param latitude: The latitude of this UEs. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this UEs. # noqa: E501 - - - :return: The longitude of this UEs. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this UEs. - - - :param longitude: The longitude of this UEs. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def speed(self): - """Gets the speed of this UEs. # noqa: E501 - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :return: The speed of this UEs. # noqa: E501 - :rtype: AllOfUEsSpeed - """ - return self._speed - - @speed.setter - def speed(self, speed): - """Sets the speed of this UEs. - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :param speed: The speed of this UEs. # noqa: E501 - :type: AllOfUEsSpeed - """ - - self._speed = speed - - @property - def path_id(self): - """Gets the path_id of this UEs. # noqa: E501 - - - :return: The path_id of this UEs. # noqa: E501 - :rtype: int - """ - return self._path_id - - @path_id.setter - def path_id(self, path_id): - """Sets the path_id of this UEs. - - - :param path_id: The path_id of this UEs. # noqa: E501 - :type: int - """ - - self._path_id = path_id - - @property - def cell_id_hex(self): - """Gets the cell_id_hex of this UEs. # noqa: E501 - - - :return: The cell_id_hex of this UEs. # noqa: E501 - :rtype: str - """ - return self._cell_id_hex - - @cell_id_hex.setter - def cell_id_hex(self, cell_id_hex): - """Sets the cell_id_hex of this UEs. - - - :param cell_id_hex: The cell_id_hex of this UEs. # noqa: E501 - :type: str - """ - if cell_id_hex is None: - raise ValueError("Invalid value for `cell_id_hex`, must not be `None`") # noqa: E501 - - self._cell_id_hex = cell_id_hex - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UEs, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UEs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/ue.py b/evolved5g/swagger_client/models/ue.py deleted file mode 100644 index 0463913..0000000 --- a/evolved5g/swagger_client/models/ue.py +++ /dev/null @@ -1,561 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UE(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'supi': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'cell_id': 'int', - 'ip_address_v4': 'str', - 'ip_address_v6': 'str', - 'mac_address': 'str', - 'dnn': 'str', - 'mcc': 'int', - 'mnc': 'int', - 'external_identifier': 'str', - 'latitude': 'float', - 'longitude': 'float', - 'speed': 'AllOfUESpeed', - 'path_id': 'int', - 'owner_id': 'int', - 'id': 'int' - } - - attribute_map = { - 'supi': 'supi', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'cell_id': 'Cell_id', - 'ip_address_v4': 'ip_address_v4', - 'ip_address_v6': 'ip_address_v6', - 'mac_address': 'mac_address', - 'dnn': 'dnn', - 'mcc': 'mcc', - 'mnc': 'mnc', - 'external_identifier': 'external_identifier', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'speed': 'speed', - 'path_id': 'path_id', - 'owner_id': 'owner_id', - 'id': 'id' - } - - def __init__(self, supi=None, name=None, description=None, g_nb_id=None, cell_id=None, ip_address_v4='169.254.46.5', ip_address_v6='fe80::349d:33ff:fe76:2cee', mac_address=None, dnn=None, mcc=None, mnc=None, external_identifier=None, latitude=None, longitude=None, speed=None, path_id=None, owner_id=None, id=None): # noqa: E501 - """UE - a model defined in Swagger""" # noqa: E501 - self._supi = None - self._name = None - self._description = None - self._g_nb_id = None - self._cell_id = None - self._ip_address_v4 = None - self._ip_address_v6 = None - self._mac_address = None - self._dnn = None - self._mcc = None - self._mnc = None - self._external_identifier = None - self._latitude = None - self._longitude = None - self._speed = None - self._path_id = None - self._owner_id = None - self._id = None - self.discriminator = None - self.supi = supi - self.name = name - if description is not None: - self.description = description - self.g_nb_id = g_nb_id - self.cell_id = cell_id - if ip_address_v4 is not None: - self.ip_address_v4 = ip_address_v4 - if ip_address_v6 is not None: - self.ip_address_v6 = ip_address_v6 - if mac_address is not None: - self.mac_address = mac_address - if dnn is not None: - self.dnn = dnn - if mcc is not None: - self.mcc = mcc - if mnc is not None: - self.mnc = mnc - if external_identifier is not None: - self.external_identifier = external_identifier - self.latitude = latitude - self.longitude = longitude - if speed is not None: - self.speed = speed - if path_id is not None: - self.path_id = path_id - self.owner_id = owner_id - if id is not None: - self.id = id - - @property - def supi(self): - """Gets the supi of this UE. # noqa: E501 - - - :return: The supi of this UE. # noqa: E501 - :rtype: str - """ - return self._supi - - @supi.setter - def supi(self, supi): - """Sets the supi of this UE. - - - :param supi: The supi of this UE. # noqa: E501 - :type: str - """ - if supi is None: - raise ValueError("Invalid value for `supi`, must not be `None`") # noqa: E501 - - self._supi = supi - - @property - def name(self): - """Gets the name of this UE. # noqa: E501 - - - :return: The name of this UE. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UE. - - - :param name: The name of this UE. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def description(self): - """Gets the description of this UE. # noqa: E501 - - - :return: The description of this UE. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this UE. - - - :param description: The description of this UE. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this UE. # noqa: E501 - - - :return: The g_nb_id of this UE. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this UE. - - - :param g_nb_id: The g_nb_id of this UE. # noqa: E501 - :type: int - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def cell_id(self): - """Gets the cell_id of this UE. # noqa: E501 - - - :return: The cell_id of this UE. # noqa: E501 - :rtype: int - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this UE. - - - :param cell_id: The cell_id of this UE. # noqa: E501 - :type: int - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def ip_address_v4(self): - """Gets the ip_address_v4 of this UE. # noqa: E501 - - - :return: The ip_address_v4 of this UE. # noqa: E501 - :rtype: str - """ - return self._ip_address_v4 - - @ip_address_v4.setter - def ip_address_v4(self, ip_address_v4): - """Sets the ip_address_v4 of this UE. - - - :param ip_address_v4: The ip_address_v4 of this UE. # noqa: E501 - :type: str - """ - - self._ip_address_v4 = ip_address_v4 - - @property - def ip_address_v6(self): - """Gets the ip_address_v6 of this UE. # noqa: E501 - - - :return: The ip_address_v6 of this UE. # noqa: E501 - :rtype: str - """ - return self._ip_address_v6 - - @ip_address_v6.setter - def ip_address_v6(self, ip_address_v6): - """Sets the ip_address_v6 of this UE. - - - :param ip_address_v6: The ip_address_v6 of this UE. # noqa: E501 - :type: str - """ - - self._ip_address_v6 = ip_address_v6 - - @property - def mac_address(self): - """Gets the mac_address of this UE. # noqa: E501 - - - :return: The mac_address of this UE. # noqa: E501 - :rtype: str - """ - return self._mac_address - - @mac_address.setter - def mac_address(self, mac_address): - """Sets the mac_address of this UE. - - - :param mac_address: The mac_address of this UE. # noqa: E501 - :type: str - """ - - self._mac_address = mac_address - - @property - def dnn(self): - """Gets the dnn of this UE. # noqa: E501 - - - :return: The dnn of this UE. # noqa: E501 - :rtype: str - """ - return self._dnn - - @dnn.setter - def dnn(self, dnn): - """Sets the dnn of this UE. - - - :param dnn: The dnn of this UE. # noqa: E501 - :type: str - """ - - self._dnn = dnn - - @property - def mcc(self): - """Gets the mcc of this UE. # noqa: E501 - - - :return: The mcc of this UE. # noqa: E501 - :rtype: int - """ - return self._mcc - - @mcc.setter - def mcc(self, mcc): - """Sets the mcc of this UE. - - - :param mcc: The mcc of this UE. # noqa: E501 - :type: int - """ - - self._mcc = mcc - - @property - def mnc(self): - """Gets the mnc of this UE. # noqa: E501 - - - :return: The mnc of this UE. # noqa: E501 - :rtype: int - """ - return self._mnc - - @mnc.setter - def mnc(self, mnc): - """Sets the mnc of this UE. - - - :param mnc: The mnc of this UE. # noqa: E501 - :type: int - """ - - self._mnc = mnc - - @property - def external_identifier(self): - """Gets the external_identifier of this UE. # noqa: E501 - - - :return: The external_identifier of this UE. # noqa: E501 - :rtype: str - """ - return self._external_identifier - - @external_identifier.setter - def external_identifier(self, external_identifier): - """Sets the external_identifier of this UE. - - - :param external_identifier: The external_identifier of this UE. # noqa: E501 - :type: str - """ - - self._external_identifier = external_identifier - - @property - def latitude(self): - """Gets the latitude of this UE. # noqa: E501 - - - :return: The latitude of this UE. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this UE. - - - :param latitude: The latitude of this UE. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this UE. # noqa: E501 - - - :return: The longitude of this UE. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this UE. - - - :param longitude: The longitude of this UE. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def speed(self): - """Gets the speed of this UE. # noqa: E501 - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :return: The speed of this UE. # noqa: E501 - :rtype: AllOfUESpeed - """ - return self._speed - - @speed.setter - def speed(self, speed): - """Sets the speed of this UE. - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :param speed: The speed of this UE. # noqa: E501 - :type: AllOfUESpeed - """ - - self._speed = speed - - @property - def path_id(self): - """Gets the path_id of this UE. # noqa: E501 - - - :return: The path_id of this UE. # noqa: E501 - :rtype: int - """ - return self._path_id - - @path_id.setter - def path_id(self, path_id): - """Sets the path_id of this UE. - - - :param path_id: The path_id of this UE. # noqa: E501 - :type: int - """ - - self._path_id = path_id - - @property - def owner_id(self): - """Gets the owner_id of this UE. # noqa: E501 - - - :return: The owner_id of this UE. # noqa: E501 - :rtype: int - """ - return self._owner_id - - @owner_id.setter - def owner_id(self, owner_id): - """Sets the owner_id of this UE. - - - :param owner_id: The owner_id of this UE. # noqa: E501 - :type: int - """ - if owner_id is None: - raise ValueError("Invalid value for `owner_id`, must not be `None`") # noqa: E501 - - self._owner_id = owner_id - - @property - def id(self): - """Gets the id of this UE. # noqa: E501 - - - :return: The id of this UE. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UE. - - - :param id: The id of this UE. # noqa: E501 - :type: int - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UE, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UE): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/ue_create.py b/evolved5g/swagger_client/models/ue_create.py deleted file mode 100644 index b50cb4a..0000000 --- a/evolved5g/swagger_client/models/ue_create.py +++ /dev/null @@ -1,507 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UECreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'supi': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'cell_id': 'int', - 'ip_address_v4': 'str', - 'ip_address_v6': 'str', - 'mac_address': 'str', - 'dnn': 'str', - 'mcc': 'int', - 'mnc': 'int', - 'external_identifier': 'str', - 'latitude': 'float', - 'longitude': 'float', - 'speed': 'AllOfUECreateSpeed', - 'path_id': 'int' - } - - attribute_map = { - 'supi': 'supi', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'cell_id': 'Cell_id', - 'ip_address_v4': 'ip_address_v4', - 'ip_address_v6': 'ip_address_v6', - 'mac_address': 'mac_address', - 'dnn': 'dnn', - 'mcc': 'mcc', - 'mnc': 'mnc', - 'external_identifier': 'external_identifier', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'speed': 'speed', - 'path_id': 'path_id' - } - - def __init__(self, supi=None, name=None, description=None, g_nb_id=None, cell_id=None, ip_address_v4='169.254.46.5', ip_address_v6='fe80::349d:33ff:fe76:2cee', mac_address=None, dnn=None, mcc=None, mnc=None, external_identifier=None, latitude=None, longitude=None, speed=None, path_id=None): # noqa: E501 - """UECreate - a model defined in Swagger""" # noqa: E501 - self._supi = None - self._name = None - self._description = None - self._g_nb_id = None - self._cell_id = None - self._ip_address_v4 = None - self._ip_address_v6 = None - self._mac_address = None - self._dnn = None - self._mcc = None - self._mnc = None - self._external_identifier = None - self._latitude = None - self._longitude = None - self._speed = None - self._path_id = None - self.discriminator = None - self.supi = supi - if name is not None: - self.name = name - if description is not None: - self.description = description - self.g_nb_id = g_nb_id - self.cell_id = cell_id - if ip_address_v4 is not None: - self.ip_address_v4 = ip_address_v4 - if ip_address_v6 is not None: - self.ip_address_v6 = ip_address_v6 - if mac_address is not None: - self.mac_address = mac_address - if dnn is not None: - self.dnn = dnn - if mcc is not None: - self.mcc = mcc - if mnc is not None: - self.mnc = mnc - if external_identifier is not None: - self.external_identifier = external_identifier - self.latitude = latitude - self.longitude = longitude - if speed is not None: - self.speed = speed - if path_id is not None: - self.path_id = path_id - - @property - def supi(self): - """Gets the supi of this UECreate. # noqa: E501 - - - :return: The supi of this UECreate. # noqa: E501 - :rtype: str - """ - return self._supi - - @supi.setter - def supi(self, supi): - """Sets the supi of this UECreate. - - - :param supi: The supi of this UECreate. # noqa: E501 - :type: str - """ - if supi is None: - raise ValueError("Invalid value for `supi`, must not be `None`") # noqa: E501 - - self._supi = supi - - @property - def name(self): - """Gets the name of this UECreate. # noqa: E501 - - - :return: The name of this UECreate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UECreate. - - - :param name: The name of this UECreate. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this UECreate. # noqa: E501 - - - :return: The description of this UECreate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this UECreate. - - - :param description: The description of this UECreate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this UECreate. # noqa: E501 - - - :return: The g_nb_id of this UECreate. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this UECreate. - - - :param g_nb_id: The g_nb_id of this UECreate. # noqa: E501 - :type: int - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def cell_id(self): - """Gets the cell_id of this UECreate. # noqa: E501 - - - :return: The cell_id of this UECreate. # noqa: E501 - :rtype: int - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this UECreate. - - - :param cell_id: The cell_id of this UECreate. # noqa: E501 - :type: int - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def ip_address_v4(self): - """Gets the ip_address_v4 of this UECreate. # noqa: E501 - - - :return: The ip_address_v4 of this UECreate. # noqa: E501 - :rtype: str - """ - return self._ip_address_v4 - - @ip_address_v4.setter - def ip_address_v4(self, ip_address_v4): - """Sets the ip_address_v4 of this UECreate. - - - :param ip_address_v4: The ip_address_v4 of this UECreate. # noqa: E501 - :type: str - """ - - self._ip_address_v4 = ip_address_v4 - - @property - def ip_address_v6(self): - """Gets the ip_address_v6 of this UECreate. # noqa: E501 - - - :return: The ip_address_v6 of this UECreate. # noqa: E501 - :rtype: str - """ - return self._ip_address_v6 - - @ip_address_v6.setter - def ip_address_v6(self, ip_address_v6): - """Sets the ip_address_v6 of this UECreate. - - - :param ip_address_v6: The ip_address_v6 of this UECreate. # noqa: E501 - :type: str - """ - - self._ip_address_v6 = ip_address_v6 - - @property - def mac_address(self): - """Gets the mac_address of this UECreate. # noqa: E501 - - - :return: The mac_address of this UECreate. # noqa: E501 - :rtype: str - """ - return self._mac_address - - @mac_address.setter - def mac_address(self, mac_address): - """Sets the mac_address of this UECreate. - - - :param mac_address: The mac_address of this UECreate. # noqa: E501 - :type: str - """ - - self._mac_address = mac_address - - @property - def dnn(self): - """Gets the dnn of this UECreate. # noqa: E501 - - - :return: The dnn of this UECreate. # noqa: E501 - :rtype: str - """ - return self._dnn - - @dnn.setter - def dnn(self, dnn): - """Sets the dnn of this UECreate. - - - :param dnn: The dnn of this UECreate. # noqa: E501 - :type: str - """ - - self._dnn = dnn - - @property - def mcc(self): - """Gets the mcc of this UECreate. # noqa: E501 - - - :return: The mcc of this UECreate. # noqa: E501 - :rtype: int - """ - return self._mcc - - @mcc.setter - def mcc(self, mcc): - """Sets the mcc of this UECreate. - - - :param mcc: The mcc of this UECreate. # noqa: E501 - :type: int - """ - - self._mcc = mcc - - @property - def mnc(self): - """Gets the mnc of this UECreate. # noqa: E501 - - - :return: The mnc of this UECreate. # noqa: E501 - :rtype: int - """ - return self._mnc - - @mnc.setter - def mnc(self, mnc): - """Sets the mnc of this UECreate. - - - :param mnc: The mnc of this UECreate. # noqa: E501 - :type: int - """ - - self._mnc = mnc - - @property - def external_identifier(self): - """Gets the external_identifier of this UECreate. # noqa: E501 - - - :return: The external_identifier of this UECreate. # noqa: E501 - :rtype: str - """ - return self._external_identifier - - @external_identifier.setter - def external_identifier(self, external_identifier): - """Sets the external_identifier of this UECreate. - - - :param external_identifier: The external_identifier of this UECreate. # noqa: E501 - :type: str - """ - - self._external_identifier = external_identifier - - @property - def latitude(self): - """Gets the latitude of this UECreate. # noqa: E501 - - - :return: The latitude of this UECreate. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this UECreate. - - - :param latitude: The latitude of this UECreate. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this UECreate. # noqa: E501 - - - :return: The longitude of this UECreate. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this UECreate. - - - :param longitude: The longitude of this UECreate. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def speed(self): - """Gets the speed of this UECreate. # noqa: E501 - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :return: The speed of this UECreate. # noqa: E501 - :rtype: AllOfUECreateSpeed - """ - return self._speed - - @speed.setter - def speed(self, speed): - """Sets the speed of this UECreate. - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :param speed: The speed of this UECreate. # noqa: E501 - :type: AllOfUECreateSpeed - """ - - self._speed = speed - - @property - def path_id(self): - """Gets the path_id of this UECreate. # noqa: E501 - - - :return: The path_id of this UECreate. # noqa: E501 - :rtype: int - """ - return self._path_id - - @path_id.setter - def path_id(self, path_id): - """Sets the path_id of this UECreate. - - - :param path_id: The path_id of this UECreate. # noqa: E501 - :type: int - """ - - self._path_id = path_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UECreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UECreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/ue_update.py b/evolved5g/swagger_client/models/ue_update.py deleted file mode 100644 index 49f9cbd..0000000 --- a/evolved5g/swagger_client/models/ue_update.py +++ /dev/null @@ -1,507 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UEUpdate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'supi': 'str', - 'name': 'str', - 'description': 'str', - 'g_nb_id': 'int', - 'cell_id': 'int', - 'ip_address_v4': 'str', - 'ip_address_v6': 'str', - 'mac_address': 'str', - 'dnn': 'str', - 'mcc': 'int', - 'mnc': 'int', - 'external_identifier': 'str', - 'latitude': 'float', - 'longitude': 'float', - 'speed': 'AllOfUEUpdateSpeed', - 'path_id': 'int' - } - - attribute_map = { - 'supi': 'supi', - 'name': 'name', - 'description': 'description', - 'g_nb_id': 'gNB_id', - 'cell_id': 'Cell_id', - 'ip_address_v4': 'ip_address_v4', - 'ip_address_v6': 'ip_address_v6', - 'mac_address': 'mac_address', - 'dnn': 'dnn', - 'mcc': 'mcc', - 'mnc': 'mnc', - 'external_identifier': 'external_identifier', - 'latitude': 'latitude', - 'longitude': 'longitude', - 'speed': 'speed', - 'path_id': 'path_id' - } - - def __init__(self, supi=None, name=None, description=None, g_nb_id=None, cell_id=None, ip_address_v4='169.254.46.5', ip_address_v6='fe80::349d:33ff:fe76:2cee', mac_address=None, dnn=None, mcc=None, mnc=None, external_identifier=None, latitude=None, longitude=None, speed=None, path_id=None): # noqa: E501 - """UEUpdate - a model defined in Swagger""" # noqa: E501 - self._supi = None - self._name = None - self._description = None - self._g_nb_id = None - self._cell_id = None - self._ip_address_v4 = None - self._ip_address_v6 = None - self._mac_address = None - self._dnn = None - self._mcc = None - self._mnc = None - self._external_identifier = None - self._latitude = None - self._longitude = None - self._speed = None - self._path_id = None - self.discriminator = None - self.supi = supi - if name is not None: - self.name = name - if description is not None: - self.description = description - self.g_nb_id = g_nb_id - self.cell_id = cell_id - if ip_address_v4 is not None: - self.ip_address_v4 = ip_address_v4 - if ip_address_v6 is not None: - self.ip_address_v6 = ip_address_v6 - if mac_address is not None: - self.mac_address = mac_address - if dnn is not None: - self.dnn = dnn - if mcc is not None: - self.mcc = mcc - if mnc is not None: - self.mnc = mnc - if external_identifier is not None: - self.external_identifier = external_identifier - self.latitude = latitude - self.longitude = longitude - if speed is not None: - self.speed = speed - if path_id is not None: - self.path_id = path_id - - @property - def supi(self): - """Gets the supi of this UEUpdate. # noqa: E501 - - - :return: The supi of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._supi - - @supi.setter - def supi(self, supi): - """Sets the supi of this UEUpdate. - - - :param supi: The supi of this UEUpdate. # noqa: E501 - :type: str - """ - if supi is None: - raise ValueError("Invalid value for `supi`, must not be `None`") # noqa: E501 - - self._supi = supi - - @property - def name(self): - """Gets the name of this UEUpdate. # noqa: E501 - - - :return: The name of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UEUpdate. - - - :param name: The name of this UEUpdate. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def description(self): - """Gets the description of this UEUpdate. # noqa: E501 - - - :return: The description of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this UEUpdate. - - - :param description: The description of this UEUpdate. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def g_nb_id(self): - """Gets the g_nb_id of this UEUpdate. # noqa: E501 - - - :return: The g_nb_id of this UEUpdate. # noqa: E501 - :rtype: int - """ - return self._g_nb_id - - @g_nb_id.setter - def g_nb_id(self, g_nb_id): - """Sets the g_nb_id of this UEUpdate. - - - :param g_nb_id: The g_nb_id of this UEUpdate. # noqa: E501 - :type: int - """ - if g_nb_id is None: - raise ValueError("Invalid value for `g_nb_id`, must not be `None`") # noqa: E501 - - self._g_nb_id = g_nb_id - - @property - def cell_id(self): - """Gets the cell_id of this UEUpdate. # noqa: E501 - - - :return: The cell_id of this UEUpdate. # noqa: E501 - :rtype: int - """ - return self._cell_id - - @cell_id.setter - def cell_id(self, cell_id): - """Sets the cell_id of this UEUpdate. - - - :param cell_id: The cell_id of this UEUpdate. # noqa: E501 - :type: int - """ - if cell_id is None: - raise ValueError("Invalid value for `cell_id`, must not be `None`") # noqa: E501 - - self._cell_id = cell_id - - @property - def ip_address_v4(self): - """Gets the ip_address_v4 of this UEUpdate. # noqa: E501 - - - :return: The ip_address_v4 of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._ip_address_v4 - - @ip_address_v4.setter - def ip_address_v4(self, ip_address_v4): - """Sets the ip_address_v4 of this UEUpdate. - - - :param ip_address_v4: The ip_address_v4 of this UEUpdate. # noqa: E501 - :type: str - """ - - self._ip_address_v4 = ip_address_v4 - - @property - def ip_address_v6(self): - """Gets the ip_address_v6 of this UEUpdate. # noqa: E501 - - - :return: The ip_address_v6 of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._ip_address_v6 - - @ip_address_v6.setter - def ip_address_v6(self, ip_address_v6): - """Sets the ip_address_v6 of this UEUpdate. - - - :param ip_address_v6: The ip_address_v6 of this UEUpdate. # noqa: E501 - :type: str - """ - - self._ip_address_v6 = ip_address_v6 - - @property - def mac_address(self): - """Gets the mac_address of this UEUpdate. # noqa: E501 - - - :return: The mac_address of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._mac_address - - @mac_address.setter - def mac_address(self, mac_address): - """Sets the mac_address of this UEUpdate. - - - :param mac_address: The mac_address of this UEUpdate. # noqa: E501 - :type: str - """ - - self._mac_address = mac_address - - @property - def dnn(self): - """Gets the dnn of this UEUpdate. # noqa: E501 - - - :return: The dnn of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._dnn - - @dnn.setter - def dnn(self, dnn): - """Sets the dnn of this UEUpdate. - - - :param dnn: The dnn of this UEUpdate. # noqa: E501 - :type: str - """ - - self._dnn = dnn - - @property - def mcc(self): - """Gets the mcc of this UEUpdate. # noqa: E501 - - - :return: The mcc of this UEUpdate. # noqa: E501 - :rtype: int - """ - return self._mcc - - @mcc.setter - def mcc(self, mcc): - """Sets the mcc of this UEUpdate. - - - :param mcc: The mcc of this UEUpdate. # noqa: E501 - :type: int - """ - - self._mcc = mcc - - @property - def mnc(self): - """Gets the mnc of this UEUpdate. # noqa: E501 - - - :return: The mnc of this UEUpdate. # noqa: E501 - :rtype: int - """ - return self._mnc - - @mnc.setter - def mnc(self, mnc): - """Sets the mnc of this UEUpdate. - - - :param mnc: The mnc of this UEUpdate. # noqa: E501 - :type: int - """ - - self._mnc = mnc - - @property - def external_identifier(self): - """Gets the external_identifier of this UEUpdate. # noqa: E501 - - - :return: The external_identifier of this UEUpdate. # noqa: E501 - :rtype: str - """ - return self._external_identifier - - @external_identifier.setter - def external_identifier(self, external_identifier): - """Sets the external_identifier of this UEUpdate. - - - :param external_identifier: The external_identifier of this UEUpdate. # noqa: E501 - :type: str - """ - - self._external_identifier = external_identifier - - @property - def latitude(self): - """Gets the latitude of this UEUpdate. # noqa: E501 - - - :return: The latitude of this UEUpdate. # noqa: E501 - :rtype: float - """ - return self._latitude - - @latitude.setter - def latitude(self, latitude): - """Sets the latitude of this UEUpdate. - - - :param latitude: The latitude of this UEUpdate. # noqa: E501 - :type: float - """ - if latitude is None: - raise ValueError("Invalid value for `latitude`, must not be `None`") # noqa: E501 - - self._latitude = latitude - - @property - def longitude(self): - """Gets the longitude of this UEUpdate. # noqa: E501 - - - :return: The longitude of this UEUpdate. # noqa: E501 - :rtype: float - """ - return self._longitude - - @longitude.setter - def longitude(self, longitude): - """Sets the longitude of this UEUpdate. - - - :param longitude: The longitude of this UEUpdate. # noqa: E501 - :type: float - """ - if longitude is None: - raise ValueError("Invalid value for `longitude`, must not be `None`") # noqa: E501 - - self._longitude = longitude - - @property - def speed(self): - """Gets the speed of this UEUpdate. # noqa: E501 - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :return: The speed of this UEUpdate. # noqa: E501 - :rtype: AllOfUEUpdateSpeed - """ - return self._speed - - @speed.setter - def speed(self, speed): - """Sets the speed of this UEUpdate. - - This value decribes UE's speed. Possible values are \"STATIONARY\" (e.g, IoT device), \"LOW(e.g, pedestrian)\" and \"HIGH (e.g., vehicle)\" # noqa: E501 - - :param speed: The speed of this UEUpdate. # noqa: E501 - :type: AllOfUEUpdateSpeed - """ - - self._speed = speed - - @property - def path_id(self): - """Gets the path_id of this UEUpdate. # noqa: E501 - - - :return: The path_id of this UEUpdate. # noqa: E501 - :rtype: int - """ - return self._path_id - - @path_id.setter - def path_id(self, path_id): - """Sets the path_id of this UEUpdate. - - - :param path_id: The path_id of this UEUpdate. # noqa: E501 - :type: int - """ - - self._path_id = path_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UEUpdate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UEUpdate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/usage_threshold.py b/evolved5g/swagger_client/models/usage_threshold.py deleted file mode 100644 index 3949688..0000000 --- a/evolved5g/swagger_client/models/usage_threshold.py +++ /dev/null @@ -1,196 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UsageThreshold(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'duration': 'int', - 'total_volume': 'int', - 'downlink_volume': 'int', - 'uplink_volume': 'int' - } - - attribute_map = { - 'duration': 'duration', - 'total_volume': 'totalVolume', - 'downlink_volume': 'downlinkVolume', - 'uplink_volume': 'uplinkVolume' - } - - def __init__(self, duration=None, total_volume=None, downlink_volume=None, uplink_volume=None): # noqa: E501 - """UsageThreshold - a model defined in Swagger""" # noqa: E501 - self._duration = None - self._total_volume = None - self._downlink_volume = None - self._uplink_volume = None - self.discriminator = None - if duration is not None: - self.duration = duration - if total_volume is not None: - self.total_volume = total_volume - if downlink_volume is not None: - self.downlink_volume = downlink_volume - if uplink_volume is not None: - self.uplink_volume = uplink_volume - - @property - def duration(self): - """Gets the duration of this UsageThreshold. # noqa: E501 - - A period of time in units of seconds # noqa: E501 - - :return: The duration of this UsageThreshold. # noqa: E501 - :rtype: int - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this UsageThreshold. - - A period of time in units of seconds # noqa: E501 - - :param duration: The duration of this UsageThreshold. # noqa: E501 - :type: int - """ - - self._duration = duration - - @property - def total_volume(self): - """Gets the total_volume of this UsageThreshold. # noqa: E501 - - A volume in units of bytes # noqa: E501 - - :return: The total_volume of this UsageThreshold. # noqa: E501 - :rtype: int - """ - return self._total_volume - - @total_volume.setter - def total_volume(self, total_volume): - """Sets the total_volume of this UsageThreshold. - - A volume in units of bytes # noqa: E501 - - :param total_volume: The total_volume of this UsageThreshold. # noqa: E501 - :type: int - """ - - self._total_volume = total_volume - - @property - def downlink_volume(self): - """Gets the downlink_volume of this UsageThreshold. # noqa: E501 - - A volume in units of bytes # noqa: E501 - - :return: The downlink_volume of this UsageThreshold. # noqa: E501 - :rtype: int - """ - return self._downlink_volume - - @downlink_volume.setter - def downlink_volume(self, downlink_volume): - """Sets the downlink_volume of this UsageThreshold. - - A volume in units of bytes # noqa: E501 - - :param downlink_volume: The downlink_volume of this UsageThreshold. # noqa: E501 - :type: int - """ - - self._downlink_volume = downlink_volume - - @property - def uplink_volume(self): - """Gets the uplink_volume of this UsageThreshold. # noqa: E501 - - A volume in units of bytes # noqa: E501 - - :return: The uplink_volume of this UsageThreshold. # noqa: E501 - :rtype: int - """ - return self._uplink_volume - - @uplink_volume.setter - def uplink_volume(self, uplink_volume): - """Sets the uplink_volume of this UsageThreshold. - - A volume in units of bytes # noqa: E501 - - :param uplink_volume: The uplink_volume of this UsageThreshold. # noqa: E501 - :type: int - """ - - self._uplink_volume = uplink_volume - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UsageThreshold, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UsageThreshold): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/user.py b/evolved5g/swagger_client/models/user.py deleted file mode 100644 index 2a3f467..0000000 --- a/evolved5g/swagger_client/models/user.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class User(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'is_active': 'bool', - 'is_superuser': 'bool', - 'full_name': 'str', - 'id': 'int' - } - - attribute_map = { - 'email': 'email', - 'is_active': 'is_active', - 'is_superuser': 'is_superuser', - 'full_name': 'full_name', - 'id': 'id' - } - - def __init__(self, email=None, is_active=True, is_superuser=False, full_name=None, id=None): # noqa: E501 - """User - a model defined in Swagger""" # noqa: E501 - self._email = None - self._is_active = None - self._is_superuser = None - self._full_name = None - self._id = None - self.discriminator = None - if email is not None: - self.email = email - if is_active is not None: - self.is_active = is_active - if is_superuser is not None: - self.is_superuser = is_superuser - if full_name is not None: - self.full_name = full_name - if id is not None: - self.id = id - - @property - def email(self): - """Gets the email of this User. # noqa: E501 - - - :return: The email of this User. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this User. - - - :param email: The email of this User. # noqa: E501 - :type: str - """ - - self._email = email - - @property - def is_active(self): - """Gets the is_active of this User. # noqa: E501 - - - :return: The is_active of this User. # noqa: E501 - :rtype: bool - """ - return self._is_active - - @is_active.setter - def is_active(self, is_active): - """Sets the is_active of this User. - - - :param is_active: The is_active of this User. # noqa: E501 - :type: bool - """ - - self._is_active = is_active - - @property - def is_superuser(self): - """Gets the is_superuser of this User. # noqa: E501 - - - :return: The is_superuser of this User. # noqa: E501 - :rtype: bool - """ - return self._is_superuser - - @is_superuser.setter - def is_superuser(self, is_superuser): - """Sets the is_superuser of this User. - - - :param is_superuser: The is_superuser of this User. # noqa: E501 - :type: bool - """ - - self._is_superuser = is_superuser - - @property - def full_name(self): - """Gets the full_name of this User. # noqa: E501 - - - :return: The full_name of this User. # noqa: E501 - :rtype: str - """ - return self._full_name - - @full_name.setter - def full_name(self, full_name): - """Sets the full_name of this User. - - - :param full_name: The full_name of this User. # noqa: E501 - :type: str - """ - - self._full_name = full_name - - @property - def id(self): - """Gets the id of this User. # noqa: E501 - - - :return: The id of this User. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this User. - - - :param id: The id of this User. # noqa: E501 - :type: int - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(User, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, User): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/user_create.py b/evolved5g/swagger_client/models/user_create.py deleted file mode 100644 index ef81b85..0000000 --- a/evolved5g/swagger_client/models/user_create.py +++ /dev/null @@ -1,216 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserCreate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'is_active': 'bool', - 'is_superuser': 'bool', - 'full_name': 'str', - 'password': 'str' - } - - attribute_map = { - 'email': 'email', - 'is_active': 'is_active', - 'is_superuser': 'is_superuser', - 'full_name': 'full_name', - 'password': 'password' - } - - def __init__(self, email=None, is_active=True, is_superuser=False, full_name=None, password=None): # noqa: E501 - """UserCreate - a model defined in Swagger""" # noqa: E501 - self._email = None - self._is_active = None - self._is_superuser = None - self._full_name = None - self._password = None - self.discriminator = None - self.email = email - if is_active is not None: - self.is_active = is_active - if is_superuser is not None: - self.is_superuser = is_superuser - if full_name is not None: - self.full_name = full_name - self.password = password - - @property - def email(self): - """Gets the email of this UserCreate. # noqa: E501 - - - :return: The email of this UserCreate. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserCreate. - - - :param email: The email of this UserCreate. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def is_active(self): - """Gets the is_active of this UserCreate. # noqa: E501 - - - :return: The is_active of this UserCreate. # noqa: E501 - :rtype: bool - """ - return self._is_active - - @is_active.setter - def is_active(self, is_active): - """Sets the is_active of this UserCreate. - - - :param is_active: The is_active of this UserCreate. # noqa: E501 - :type: bool - """ - - self._is_active = is_active - - @property - def is_superuser(self): - """Gets the is_superuser of this UserCreate. # noqa: E501 - - - :return: The is_superuser of this UserCreate. # noqa: E501 - :rtype: bool - """ - return self._is_superuser - - @is_superuser.setter - def is_superuser(self, is_superuser): - """Sets the is_superuser of this UserCreate. - - - :param is_superuser: The is_superuser of this UserCreate. # noqa: E501 - :type: bool - """ - - self._is_superuser = is_superuser - - @property - def full_name(self): - """Gets the full_name of this UserCreate. # noqa: E501 - - - :return: The full_name of this UserCreate. # noqa: E501 - :rtype: str - """ - return self._full_name - - @full_name.setter - def full_name(self, full_name): - """Sets the full_name of this UserCreate. - - - :param full_name: The full_name of this UserCreate. # noqa: E501 - :type: str - """ - - self._full_name = full_name - - @property - def password(self): - """Gets the password of this UserCreate. # noqa: E501 - - - :return: The password of this UserCreate. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this UserCreate. - - - :param password: The password of this UserCreate. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserCreate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/user_update.py b/evolved5g/swagger_client/models/user_update.py deleted file mode 100644 index d426d23..0000000 --- a/evolved5g/swagger_client/models/user_update.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserUpdate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'is_active': 'bool', - 'is_superuser': 'bool', - 'full_name': 'str', - 'password': 'str' - } - - attribute_map = { - 'email': 'email', - 'is_active': 'is_active', - 'is_superuser': 'is_superuser', - 'full_name': 'full_name', - 'password': 'password' - } - - def __init__(self, email=None, is_active=True, is_superuser=False, full_name=None, password=None): # noqa: E501 - """UserUpdate - a model defined in Swagger""" # noqa: E501 - self._email = None - self._is_active = None - self._is_superuser = None - self._full_name = None - self._password = None - self.discriminator = None - if email is not None: - self.email = email - if is_active is not None: - self.is_active = is_active - if is_superuser is not None: - self.is_superuser = is_superuser - if full_name is not None: - self.full_name = full_name - if password is not None: - self.password = password - - @property - def email(self): - """Gets the email of this UserUpdate. # noqa: E501 - - - :return: The email of this UserUpdate. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserUpdate. - - - :param email: The email of this UserUpdate. # noqa: E501 - :type: str - """ - - self._email = email - - @property - def is_active(self): - """Gets the is_active of this UserUpdate. # noqa: E501 - - - :return: The is_active of this UserUpdate. # noqa: E501 - :rtype: bool - """ - return self._is_active - - @is_active.setter - def is_active(self, is_active): - """Sets the is_active of this UserUpdate. - - - :param is_active: The is_active of this UserUpdate. # noqa: E501 - :type: bool - """ - - self._is_active = is_active - - @property - def is_superuser(self): - """Gets the is_superuser of this UserUpdate. # noqa: E501 - - - :return: The is_superuser of this UserUpdate. # noqa: E501 - :rtype: bool - """ - return self._is_superuser - - @is_superuser.setter - def is_superuser(self, is_superuser): - """Sets the is_superuser of this UserUpdate. - - - :param is_superuser: The is_superuser of this UserUpdate. # noqa: E501 - :type: bool - """ - - self._is_superuser = is_superuser - - @property - def full_name(self): - """Gets the full_name of this UserUpdate. # noqa: E501 - - - :return: The full_name of this UserUpdate. # noqa: E501 - :rtype: str - """ - return self._full_name - - @full_name.setter - def full_name(self, full_name): - """Sets the full_name of this UserUpdate. - - - :param full_name: The full_name of this UserUpdate. # noqa: E501 - :type: str - """ - - self._full_name = full_name - - @property - def password(self): - """Gets the password of this UserUpdate. # noqa: E501 - - - :return: The password of this UserUpdate. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this UserUpdate. - - - :param password: The password of this UserUpdate. # noqa: E501 - :type: str - """ - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserUpdate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserUpdate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/models/validation_error.py b/evolved5g/swagger_client/models/validation_error.py deleted file mode 100644 index 2a4bb0e..0000000 --- a/evolved5g/swagger_client/models/validation_error.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ValidationError(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'loc': 'list[str]', - 'msg': 'str', - 'type': 'str' - } - - attribute_map = { - 'loc': 'loc', - 'msg': 'msg', - 'type': 'type' - } - - def __init__(self, loc=None, msg=None, type=None): # noqa: E501 - """ValidationError - a model defined in Swagger""" # noqa: E501 - self._loc = None - self._msg = None - self._type = None - self.discriminator = None - self.loc = loc - self.msg = msg - self.type = type - - @property - def loc(self): - """Gets the loc of this ValidationError. # noqa: E501 - - - :return: The loc of this ValidationError. # noqa: E501 - :rtype: list[str] - """ - return self._loc - - @loc.setter - def loc(self, loc): - """Sets the loc of this ValidationError. - - - :param loc: The loc of this ValidationError. # noqa: E501 - :type: list[str] - """ - if loc is None: - raise ValueError("Invalid value for `loc`, must not be `None`") # noqa: E501 - - self._loc = loc - - @property - def msg(self): - """Gets the msg of this ValidationError. # noqa: E501 - - - :return: The msg of this ValidationError. # noqa: E501 - :rtype: str - """ - return self._msg - - @msg.setter - def msg(self, msg): - """Sets the msg of this ValidationError. - - - :param msg: The msg of this ValidationError. # noqa: E501 - :type: str - """ - if msg is None: - raise ValueError("Invalid value for `msg`, must not be `None`") # noqa: E501 - - self._msg = msg - - @property - def type(self): - """Gets the type of this ValidationError. # noqa: E501 - - - :return: The type of this ValidationError. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ValidationError. - - - :param type: The type of this ValidationError. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ValidationError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ValidationError): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/evolved5g/swagger_client/rest.py b/evolved5g/swagger_client/rest.py deleted file mode 100644 index d143007..0000000 --- a/evolved5g/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - NEF_Emulator - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: 0.1.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/examples/__init__.py b/examples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/examples/api.py b/examples/api.py deleted file mode 100644 index d37b95f..0000000 --- a/examples/api.py +++ /dev/null @@ -1,21 +0,0 @@ -from flask import Flask, render_template, request, jsonify -from flask_cors import CORS - -app = Flask(__name__) -CORS(app) -app.config["DEBUG"] = True - -@app.route('/', methods=['GET']) -def index(): - return "evolved5G echo web-server started" - -@app.route('/monitoring/callback', methods=['POST']) -def location_reporter(): - print("New location retrieved:") - print(request.get_json()) - return request.get_json() - -if __name__ == '__main__': - print("initiating") - app.run(host='0.0.0.0') - diff --git a/examples/emulator_examples.py b/examples/emulator_examples.py deleted file mode 100644 index 3f380bd..0000000 --- a/examples/emulator_examples.py +++ /dev/null @@ -1,24 +0,0 @@ - -from evolved5g.swagger_client import LoginApi, User -import emulator_utils - -def showcase_login_to_the_emulator_and_test_token(): - """ - Demonstrate how to interact with the Emulator, to a token and the current logged in User - """ - - token = emulator_utils.get_token() - print("-----") - print("Got token") - print(token) - api_client = emulator_utils.get_api_client(token) - api = LoginApi(api_client) - print("-----") - print("Getting login info") - response = api.test_token_api_v1_login_test_token_post_with_http_info() - assert isinstance(response[0], User) - print(response[0]) - - -if __name__ == "__main__": - showcase_login_to_the_emulator_and_test_token() diff --git a/examples/emulator_utils.py b/examples/emulator_utils.py deleted file mode 100644 index ed54f1f..0000000 --- a/examples/emulator_utils.py +++ /dev/null @@ -1,31 +0,0 @@ -from evolved5g import swagger_client -from evolved5g.swagger_client import LoginApi, User -from evolved5g.swagger_client.models import Token - - -def get_token() -> Token: - - username = "admin@my-email.com" - password = "pass" - # User name and pass matches are set in the .env of the docker of NEF_EMULATOR. See - # https://github.com/EVOLVED-5G/NEF_emulator - configuration = swagger_client.Configuration() - # The host of the 5G API (emulator) - configuration.host = get_host_of_the_nef_emulator() - api_client = swagger_client.ApiClient(configuration=configuration) - api_client.select_header_content_type(["application/x-www-form-urlencoded"]) - api = LoginApi(api_client) - token = api.login_access_token_api_v1_login_access_token_post("", username, password, "", "", "") - return token - - -def get_api_client(token) -> swagger_client.ApiClient: - configuration = swagger_client.Configuration() - configuration.host = get_host_of_the_nef_emulator() - configuration.access_token = token.access_token - api_client = swagger_client.ApiClient(configuration=configuration) - return api_client - - -def get_host_of_the_nef_emulator() -> str: - return "http://localhost:8888" diff --git a/examples/location_subscriber_examples.py b/examples/location_subscriber_examples.py deleted file mode 100644 index 6d61a24..0000000 --- a/examples/location_subscriber_examples.py +++ /dev/null @@ -1,54 +0,0 @@ -from evolved5g.sdk import LocationSubscriber -import emulator_utils -import datetime -import uuid - - - -def showcase_create_subscription_and_retrieve_call_backs(): - """ - This example showcases how you can create a subscription to the 5G-API in order to monitor device location. - In order to run this example you need to follow the instructions in readme.md in order to run the NEF emulator - and a local webserver that will print the location notifications it retrieves from the emulator - """ - - ## Create a subscription, that will notify us 1000 times, for the next 1 day starting from now - expire_time = (datetime.datetime.utcnow() + datetime.timedelta(days=1)).isoformat() + "Z" - netapp_id = "myNetapp" - host = emulator_utils.get_host_of_the_nef_emulator() - token = emulator_utils.get_token() - location_subscriber = LocationSubscriber(host, token.access_token) - - # In this example we are running flask at http://localhost:5000 with a POST route to (/monitoring/callback) in order to retrieve notifications. - # If you are running on the NEF emulator, you need to provide a notification_destination with an IP that the - # NEF emulator docker can understand - # For latest versions of docker this should be: http://host.docker.internal:5000/monitoring/callback" - # Alternative you can find the ip of the HOST by running 'ip addr show | grep "\binet\b.*\bdocker0\b" | awk '{print $2}' | cut -d '/' -f 1' - # See article for details: https://stackoverflow.com/questions/48546124/what-is-linux-equivalent-of-host-docker-internal/61001152 - - subscription = location_subscriber.create_subscription( - netapp_id= netapp_id, - external_id= "123456789@domain.com", - misisdn= "918369110173", - ipv4_addr="10.0.0.3", - ipv6_addr="::1", - notification_destination ="http://172.17.0.1:5000/monitoring/callback", - maximum_number_of_reports=1000, - monitor_expire_time=expire_time - ) - - print(subscription) - - # Get all subscriptions - all_subscriptions = location_subscriber.get_all_subscriptions(netapp_id, 0, 100) - print(all_subscriptions) - - # Request information about a subscription - id = subscription.link.split("/")[-1] - subscription_info = location_subscriber.get_subscription(netapp_id,id) - print(subscription_info) - - -if __name__ == "__main__": - showcase_create_subscription_and_retrieve_call_backs() - diff --git a/requirements.txt b/requirements.txt index d3a05df..b628b95 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,4 @@ flake8==3.9.2 coverage==4.5.4 Click==8.0.1 pytest==6.2.4 -cookiecutter==1.7.3 -setuptools~=58.1.0 -six~=1.16.0 -certifi~=2021.10.8 -urllib3~=1.26.7 +cookiecutter==1.7.3 \ No newline at end of file diff --git a/requirements_dev.txt b/requirements_dev.txt index 626b503..3bf2b36 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,6 +1,4 @@ pip==21.1.3 -flask==2.0.2 -flask-cors==3.0.10 bump2version==0.5.11 wheel==0.36.2 watchdog==0.9.0