mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-29 04:45:45 +00:00
29 lines
866 B
Python
29 lines
866 B
Python
from typing import Annotated
|
|
|
|
from rapid_api_client.annotations import PydanticBody
|
|
|
|
from remnawave_api.models import (
|
|
SubscriptionSettingsResponseDto,
|
|
UpdateSubscriptionSettingsRequestDto,
|
|
)
|
|
from remnawave_api.rapid import BaseController, get, patch
|
|
|
|
|
|
class SubscriptionsSettingsController(BaseController):
|
|
@get("/subscription-settings", response_class=SubscriptionSettingsResponseDto)
|
|
async def get_settings(
|
|
self,
|
|
) -> SubscriptionSettingsResponseDto:
|
|
"""Get Subscription Settings"""
|
|
...
|
|
|
|
@patch(
|
|
"/subscription-settings",
|
|
response_class=SubscriptionSettingsResponseDto,
|
|
)
|
|
async def update_settings(
|
|
self,
|
|
body: Annotated[UpdateSubscriptionSettingsRequestDto, PydanticBody()],
|
|
) -> SubscriptionSettingsResponseDto:
|
|
"""Update Subscription Settings"""
|
|
...
|