Skip to content

Commit

Permalink
python: Sort these method inline with the codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman committed Jan 23, 2025
1 parent 0277b9f commit f165777
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions python/svix/api/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down Expand Up @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit f165777

Please sign in to comment.