Loading edge_cloud_management_api/controllers/app_controllers.py +0 −2 Original line number Original line Diff line number Diff line Loading @@ -84,8 +84,6 @@ def delete_app(appId, x_correlator=None): 500, 500, ) ) def create_app_instance(): def create_app_instance(): logger.info("Received request to create app instance") logger.info("Received request to create app instance") Loading edge_cloud_management_api/controllers/edge_cloud_controller.py +1 −5 Original line number Original line Diff line number Diff line Loading @@ -111,13 +111,9 @@ def get_edge_cloud_zones(x_correlator: str | None = None, region=None, status=No } } return jsonify(error_info), 500 return jsonify(error_info), 500 def edge_cloud_zone_details(zoneId: str) -> dict: def edge_cloud_zone_details(zoneId: str) -> dict: pi_edge_factory = PiEdgeAPIClientFactory() pi_edge_factory = PiEdgeAPIClientFactory() api_client = pi_edge_factory.create_pi_edge_api_client() api_client = pi_edge_factory.create_pi_edge_api_client() result = api_client.edge_cloud_zone_details(zone_id=zoneId) result = api_client.edge_cloud_zone_details(zone_id=zoneId) return result return result def get_zone_details(zoneId:str): pass edge_cloud_management_api/services/federation_services.py +1 −4 Original line number Original line Diff line number Diff line import os import os import requests import requests from requests.exceptions import Timeout, ConnectionError from requests.exceptions import Timeout, ConnectionError Loading @@ -6,8 +5,6 @@ from edge_cloud_management_api.configs.env_config import config from edge_cloud_management_api.managers.log_manager import logger from edge_cloud_management_api.managers.log_manager import logger from edge_cloud_management_api.services.pi_edge_services import PiEdgeAPIClientFactory from edge_cloud_management_api.services.pi_edge_services import PiEdgeAPIClientFactory class FederationManagerClient: class FederationManagerClient: def __init__(self, base_url=None): def __init__(self, base_url=None): self.base_url = base_url or config.FEDERATION_MANAGER_HOST self.base_url = base_url or config.FEDERATION_MANAGER_HOST Loading edge_cloud_management_api/specification/openapi.yaml +8 −11 Original line number Original line Diff line number Diff line Loading @@ -152,15 +152,8 @@ externalDocs: description: Product documentation at Camara description: Product documentation at Camara url: https://github.com/camaraproject/EdgeCloud url: https://github.com/camaraproject/EdgeCloud # servers: servers: # - url: "{apiRoot}/{basePath}" - url: http://vitrualserver:8080/oeg/1.0.0 # variables: # apiRoot: # default: http://localhost:443 # description: API root # basePath: # default: edge-application-management/vwip # description: Base path for the Edge Application Management API tags: tags: - name: Application - name: Application Loading Loading @@ -629,7 +622,7 @@ paths: # - openId: # - openId: # - edge-application-management:edge-cloud-zones:read # - edge-application-management:edge-cloud-zones:read tags: tags: - Edge Cloud - Edge Cloud Zones summary: Retrieve a list of the operators Edge Cloud Zones and summary: Retrieve a list of the operators Edge Cloud Zones and their status their status description: | description: | Loading Loading @@ -678,7 +671,7 @@ paths: /edge-cloud-zones/{zoneId}: /edge-cloud-zones/{zoneId}: get: get: tags: tags: - Edge Cloud - Edge Cloud Zones summary: Retrieve the details of an Edge Cloud Zone summary: Retrieve the details of an Edge Cloud Zone description: | description: | List of the operators Edge Cloud Zones and their List of the operators Edge Cloud Zones and their Loading Loading @@ -824,8 +817,12 @@ paths: "405": "405": description: Method not allowed description: Method not allowed "404": "404": <<<<<<< HEAD description: Session not found ======= description: Session not found description: Session not found >>>>>>> f18e931881554973db7ae6241588db6e667dbf10 /partner: /partner: post: post: tags: tags: Loading Loading
edge_cloud_management_api/controllers/app_controllers.py +0 −2 Original line number Original line Diff line number Diff line Loading @@ -84,8 +84,6 @@ def delete_app(appId, x_correlator=None): 500, 500, ) ) def create_app_instance(): def create_app_instance(): logger.info("Received request to create app instance") logger.info("Received request to create app instance") Loading
edge_cloud_management_api/controllers/edge_cloud_controller.py +1 −5 Original line number Original line Diff line number Diff line Loading @@ -111,13 +111,9 @@ def get_edge_cloud_zones(x_correlator: str | None = None, region=None, status=No } } return jsonify(error_info), 500 return jsonify(error_info), 500 def edge_cloud_zone_details(zoneId: str) -> dict: def edge_cloud_zone_details(zoneId: str) -> dict: pi_edge_factory = PiEdgeAPIClientFactory() pi_edge_factory = PiEdgeAPIClientFactory() api_client = pi_edge_factory.create_pi_edge_api_client() api_client = pi_edge_factory.create_pi_edge_api_client() result = api_client.edge_cloud_zone_details(zone_id=zoneId) result = api_client.edge_cloud_zone_details(zone_id=zoneId) return result return result def get_zone_details(zoneId:str): pass
edge_cloud_management_api/services/federation_services.py +1 −4 Original line number Original line Diff line number Diff line import os import os import requests import requests from requests.exceptions import Timeout, ConnectionError from requests.exceptions import Timeout, ConnectionError Loading @@ -6,8 +5,6 @@ from edge_cloud_management_api.configs.env_config import config from edge_cloud_management_api.managers.log_manager import logger from edge_cloud_management_api.managers.log_manager import logger from edge_cloud_management_api.services.pi_edge_services import PiEdgeAPIClientFactory from edge_cloud_management_api.services.pi_edge_services import PiEdgeAPIClientFactory class FederationManagerClient: class FederationManagerClient: def __init__(self, base_url=None): def __init__(self, base_url=None): self.base_url = base_url or config.FEDERATION_MANAGER_HOST self.base_url = base_url or config.FEDERATION_MANAGER_HOST Loading
edge_cloud_management_api/specification/openapi.yaml +8 −11 Original line number Original line Diff line number Diff line Loading @@ -152,15 +152,8 @@ externalDocs: description: Product documentation at Camara description: Product documentation at Camara url: https://github.com/camaraproject/EdgeCloud url: https://github.com/camaraproject/EdgeCloud # servers: servers: # - url: "{apiRoot}/{basePath}" - url: http://vitrualserver:8080/oeg/1.0.0 # variables: # apiRoot: # default: http://localhost:443 # description: API root # basePath: # default: edge-application-management/vwip # description: Base path for the Edge Application Management API tags: tags: - name: Application - name: Application Loading Loading @@ -629,7 +622,7 @@ paths: # - openId: # - openId: # - edge-application-management:edge-cloud-zones:read # - edge-application-management:edge-cloud-zones:read tags: tags: - Edge Cloud - Edge Cloud Zones summary: Retrieve a list of the operators Edge Cloud Zones and summary: Retrieve a list of the operators Edge Cloud Zones and their status their status description: | description: | Loading Loading @@ -678,7 +671,7 @@ paths: /edge-cloud-zones/{zoneId}: /edge-cloud-zones/{zoneId}: get: get: tags: tags: - Edge Cloud - Edge Cloud Zones summary: Retrieve the details of an Edge Cloud Zone summary: Retrieve the details of an Edge Cloud Zone description: | description: | List of the operators Edge Cloud Zones and their List of the operators Edge Cloud Zones and their Loading Loading @@ -824,8 +817,12 @@ paths: "405": "405": description: Method not allowed description: Method not allowed "404": "404": <<<<<<< HEAD description: Session not found ======= description: Session not found description: Session not found >>>>>>> f18e931881554973db7ae6241588db6e667dbf10 /partner: /partner: post: post: tags: tags: Loading