Skip to content

Commit

Permalink
flip requirer and provider
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Dec 2, 2024
1 parent e8c158e commit a37ec49
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions interfaces/grafana_datasource/v0/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ class GrafanaSourceData(BaseModel):
description="Any secure datasource-type-specific additional configuration.")


class GrafanaSourceRequirerAppData(BaseModel):
class GrafanaSourceProviderAppData(BaseModel):
"""Application databag model for the requirer side of this interface."""
grafana_source_data: Json[GrafanaSourceData]


class GrafanaSourceRequirerUnitData(BaseModel):
class GrafanaSourceProviderUnitData(BaseModel):
"""Application databag model for the requirer side of this interface."""
grafana_source_host: Json[GrafanaSourceData]


class RequirerSchema(DataBagSchema):
class ProviderSchema(DataBagSchema):
"""The schemas for the requirer side of this interface."""
app: GrafanaSourceRequirerAppData
unit: GrafanaSourceRequirerUnitData
app: GrafanaSourceProviderAppData
unit: GrafanaSourceProviderUnitData


class GrafanaSourceProviderAppData(BaseModel):
class GrafanaSourceRequirerAppData(BaseModel):
"""Application databag model for the requirer side of this interface."""
datasource_uids: Json[Dict[str, str]]


class ProviderSchema(DataBagSchema):
class RequirerSchema(DataBagSchema):
"""The schema for the provider side of this interface."""
app: GrafanaSourceProviderAppData

0 comments on commit a37ec49

Please sign in to comment.