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

Commit

Permalink
Merge pull request #849 from cisco-open/fix/dspfarm
Browse files Browse the repository at this point in the history
dev: Fix dsp_farm model_config populate_by_name
  • Loading branch information
jpkrajewski authored Oct 30, 2024
2 parents 3a6034e + 11caa3f commit f842126
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit f842126

Please sign in to comment.