Loading src/sunrise6g_opensdk/edgecloud/adapters/i2edge/client.py +9 −9 Original line number Diff line number Diff line Loading @@ -748,7 +748,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): return build_custom_http_response( status_code=200, content=[zone.model_dump_json() for zone in validated_data.root], content=[zone.model_dump() for zone in validated_data.root], headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -776,7 +776,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -806,7 +806,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -837,7 +837,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): transformed = { "artefact_id": artefact_id, "artefact_name": artefact_name, "repo_name": repo_data.get("repoName"), "repo_name": repo_data.get("repoName", ""), "repo_type": request_body.get("repoType"), "repo_url": repo_data["repoURL"], "user_name": repo_data.get("userName"), Loading Loading @@ -895,7 +895,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1011,7 +1011,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1114,7 +1114,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=202, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1149,7 +1149,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1194,7 +1194,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading src/sunrise6g_opensdk/edgecloud/core/gsma_schemas.py +2 −2 Original line number Diff line number Diff line from typing import List, Literal, Optional from pydantic import BaseModel, Field, HttpUrl, RootModel from pydantic import BaseModel, Field, RootModel # --------------------------- # FederationManagement Loading Loading @@ -122,7 +122,7 @@ class ZoneRegisteredDataList(RootModel[List[ZoneRegisteredData]]): class ArtefactRepoLocation(BaseModel): repoURL: HttpUrl repoURL: str userName: Optional[str] = None password: Optional[str] = None token: Optional[str] = None Loading Loading
src/sunrise6g_opensdk/edgecloud/adapters/i2edge/client.py +9 −9 Original line number Diff line number Diff line Loading @@ -748,7 +748,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): return build_custom_http_response( status_code=200, content=[zone.model_dump_json() for zone in validated_data.root], content=[zone.model_dump() for zone in validated_data.root], headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -776,7 +776,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -806,7 +806,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -837,7 +837,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): transformed = { "artefact_id": artefact_id, "artefact_name": artefact_name, "repo_name": repo_data.get("repoName"), "repo_name": repo_data.get("repoName", ""), "repo_type": request_body.get("repoType"), "repo_url": repo_data["repoURL"], "user_name": repo_data.get("userName"), Loading Loading @@ -895,7 +895,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1011,7 +1011,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1114,7 +1114,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=202, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1149,7 +1149,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading Loading @@ -1194,7 +1194,7 @@ class EdgeApplicationManager(EdgeCloudManagementInterface): raise ValueError(f"Invalid schema: {e}") return build_custom_http_response( status_code=200, content=validated_data.model_dump_json(), content=validated_data.model_dump(), headers={"Content-Type": self.content_type_gsma}, encoding=self.encoding_gsma, url=response.url, Loading
src/sunrise6g_opensdk/edgecloud/core/gsma_schemas.py +2 −2 Original line number Diff line number Diff line from typing import List, Literal, Optional from pydantic import BaseModel, Field, HttpUrl, RootModel from pydantic import BaseModel, Field, RootModel # --------------------------- # FederationManagement Loading Loading @@ -122,7 +122,7 @@ class ZoneRegisteredDataList(RootModel[List[ZoneRegisteredData]]): class ArtefactRepoLocation(BaseModel): repoURL: HttpUrl repoURL: str userName: Optional[str] = None password: Optional[str] = None token: Optional[str] = None Loading