diff --git a/python/svix/api/application.py b/python/svix/api/application.py index 3a6996747..4bbfe5935 100644 --- a/python/svix/api/application.py +++ b/python/svix/api/application.py @@ -85,17 +85,6 @@ async def create( ) return ApplicationOut.from_dict(response.json()) - async def get(self, app_id: str) -> ApplicationOut: - """Get an application.""" - response = await self._request_asyncio( - method="get", - path="/api/v1/app/{app_id}", - path_params={ - "app_id": app_id, - }, - ) - return ApplicationOut.from_dict(response.json()) - async def get_or_create( self, application_in: ApplicationIn, @@ -111,6 +100,17 @@ async def get_or_create( ) return ApplicationOut.from_dict(response.json()) + async def get(self, app_id: str) -> ApplicationOut: + """Get an application.""" + response = await self._request_asyncio( + method="get", + path="/api/v1/app/{app_id}", + path_params={ + "app_id": app_id, + }, + ) + return ApplicationOut.from_dict(response.json()) + async def update( self, app_id: str, application_in: ApplicationIn ) -> ApplicationOut: @@ -180,17 +180,6 @@ def create( ) return ApplicationOut.from_dict(response.json()) - def get(self, app_id: str) -> ApplicationOut: - """Get an application.""" - response = self._request_sync( - method="get", - path="/api/v1/app/{app_id}", - path_params={ - "app_id": app_id, - }, - ) - return ApplicationOut.from_dict(response.json()) - def get_or_create( self, application_in: ApplicationIn, @@ -207,6 +196,17 @@ def get_or_create( ) return ApplicationOut.from_dict(response.json()) + def get(self, app_id: str) -> ApplicationOut: + """Get an application.""" + response = self._request_sync( + method="get", + path="/api/v1/app/{app_id}", + path_params={ + "app_id": app_id, + }, + ) + return ApplicationOut.from_dict(response.json()) + def update(self, app_id: str, application_in: ApplicationIn) -> ApplicationOut: """Update an application.""" response = self._request_sync( diff --git a/python/svix/api/codegen.json b/python/svix/api/codegen.json new file mode 100644 index 000000000..a11bea0b2 --- /dev/null +++ b/python/svix/api/codegen.json @@ -0,0 +1,6 @@ +{ + "file-generated-at": "2025-01-23T17:38:28.234604025+00:00", + "git-rev": "6b878374214d1c893739095595718fe54ca2f24a", + "openapi-codegen-version": "0.1.0", + "openapi.json-sha256": "9fa16f8eb28f617b8495cafc9bd529626145df7af01e5c09acdc2b98e39a4725" +} \ No newline at end of file