from lib.services.servicemap.service_resource_group_client import ServiceResourceGroupClientInterface
from lib.api_schema.response.flava_services.servicemap.v1_0 import (
    service_resource_group as schema,
)


class FlavaServiceResourceGroupClient(ServiceResourceGroupClientInterface):
    """Service client for the Flava ServiceMap ServiceResourceGroup API.

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

    For a full list of available parameters and endpoints, please refer to the
    official API reference.
    """

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

    def get_service_resource_group_path(self, project):
        """Provide the API endpoint path for ServiceResourceGroup API."""
        return f"/api/v1/reg/service_resource_group"