from lib.services.redis.quota_client import QuotaClientInterface
from lib.api_schema.response.flava_services.redis.v1_0 import (
    quota as schema,
)


class FlavaQuotaClient(QuotaClientInterface):
    """Service client for the Flava Quota API.

    This client provides the schema and path to each API endpoint for dependency
    injection.
    """

    def get_schema(self):
        """Provide the response schema of the Quota API."""
        return schema

    def get_quota_path(self, project_name):
        """Provide the API endpoint path for quota."""
        return f"/projects/{project_name}/quota"
