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

dev: Fix dsp_farm model_config populate_by_name #849

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@


class MediaResource(BaseModel):
model_config = ConfigDict(populate_by_name=True)
slot_id: Optional[Union[Variable, Global[SlotId]]] = Field(
default=None, validation_alias="slotId", serialization_alias="slotId"
)
Expand All @@ -31,6 +32,7 @@ class ServerList(BaseModel):


class CucmServerListPriority(BaseModel):
model_config = ConfigDict(populate_by_name=True)
cucm_server_identifier: Union[Variable, Global[str]] = Field(
validation_alias="cucmServerIdentifier", serialization_alias="cucmServerIdentifier"
)
Expand All @@ -40,6 +42,7 @@ class CucmServerListPriority(BaseModel):


class CucmMediaResourceGroupList(BaseModel):
model_config = ConfigDict(populate_by_name=True)
media_resource_group_name: Union[Variable, Global[str]] = Field(
validation_alias="mediaResourceGroupName", serialization_alias="mediaResourceGroupName"
)
Expand All @@ -62,6 +65,7 @@ class CucmMediaResourceGroupList(BaseModel):


class CucmGroup(BaseModel):
model_config = ConfigDict(populate_by_name=True)
bind_interface: Union[Variable, Global[str]] = Field(
validation_alias="bindInterface", serialization_alias="bindInterface"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "catalystwan"
version = "0.36.0dev0"
version = "0.36.0dev1"
description = "Cisco Catalyst WAN SDK for Python"
authors = ["kagorski <kagorski@cisco.com>"]
readme = "README.md"
Expand Down