Skip to content

Commit

Permalink
add a ConnectionConfigResponse that contains the monitor configs
Browse files Browse the repository at this point in the history
  • Loading branch information
thingscouldbeworse committed Dec 18, 2024
1 parent df8e884 commit e167770
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from typing import Any, Dict, List, Optional, cast
from typing import TYPE_CHECKING, Any, Dict, List, Optional, cast

from fideslang.models import Dataset
from fideslang.validation import FidesKey
Expand All @@ -14,6 +14,9 @@
from fides.api.schemas.saas.saas_config import SaaSConfigBase
from fides.api.util.connection_type import get_connection_type_secret_schema

if TYPE_CHECKING:
from fides.api.models.detection_discovery import MonitorConfig


class CreateConnectionConfiguration(BaseModel):
"""
Expand Down Expand Up @@ -119,6 +122,12 @@ def mask_sensitive_values(self) -> "ConnectionConfigurationResponse":
model_config = ConfigDict(from_attributes=True)


class ConnectionConfigurationWithMonitorConfigResponse(ConnectionConfigurationResponse):
"""Schema for ConnectionConfiguration with MonitorConfigs associated with it."""

monitors: List["MonitorConfig"] = None


class BulkPutConnectionConfiguration(BulkResponse):
"""Schema with mixed success/failure responses for Bulk Create/Update of ConnectionConfiguration responses."""

Expand Down

0 comments on commit e167770

Please sign in to comment.