Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix ConfigGroup response model
Browse files Browse the repository at this point in the history
  • Loading branch information
sbasan committed Apr 10, 2024
1 parent 834d3d0 commit d55840b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions catalystwan/endpoints/configuration_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,27 @@ class FeatureProfile(BaseModel):


class ConfigGroup(BaseModel):
model_config = ConfigDict(populate_by_name=True)
id: UUID
name: str
description: Optional[str]
solution: Solution
profiles: Optional[List[FeatureProfile]]
source: Optional[str] = None
state: Optional[str] = None
devices: List = Field(default=[])
created_by: Optional[str] = Field(alias="createdBy")
last_updated_by: Optional[str] = Field(alias="lastUpdatedBy")
created_on: Optional[datetime] = Field(alias="createdOn")
last_updated_on: Optional[datetime] = Field(alias="lastUpdatedOn")
devices: Optional[List] = Field(default=[])
created_by: Optional[str] = Field(serialization_alias="createdBy", validation_alias="createdBy")
last_updated_by: Optional[str] = Field(serialization_alias="lastUpdatedBy", validation_alias="lastUpdatedBy")
created_on: Optional[datetime] = Field(serialization_alias="createdOn", validation_alias="createdOn")
last_updated_on: Optional[datetime] = Field(serialization_alias="lastUpdatedOn", validation_alias="lastUpdatedOn")
version: int
number_of_devices: int = Field(alias="numberOfDevices")
number_of_devices_up_to_date: int = Field(alias="numberOfDevicesUpToDate")
origin: Optional[str]
number_of_devices: int = Field(serialization_alias="numberOfDevices", validation_alias="numberOfDevices")
number_of_devices_up_to_date: int = Field(
serialization_alias="numberOfDevicesUpToDate", validation_alias="numberOfDevicesUpToDate"
)
origin: Optional[str] = None
topology: Optional[str] = None
full_config_cli: bool = Field(alias="fullConfigCli")
full_config_cli: bool = Field(serialization_alias="fullConfigCli", validation_alias="fullConfigCli")


class ConfigGroupResponsePayload(BaseModel):
Expand Down

0 comments on commit d55840b

Please sign in to comment.