"""Applications Resource."""

from typing import Any, Dict

from netorca_sdk.v2.base import BaseResource
from netorca_sdk.v2.models.application import Application


class ApplicationsResource(BaseResource):
    """Applications resource (read-only)."""

    endpoint = "applications"
    model_class = Application

    def create(self, data: Dict[str, Any]) -> Application:
        """Applications cannot be created via API."""
        raise NotImplementedError("Applications cannot be created via API")

    def update(self, id: int, data: Dict[str, Any], partial: bool = True) -> Application:
        """Applications cannot be updated via API."""
        raise NotImplementedError("Applications cannot be updated via API")

    def delete(self, id: int) -> None:
        """Applications cannot be deleted via API."""
        raise NotImplementedError("Applications cannot be deleted via API")
