From f6a7ce046a9a0616944c1904e251afb954185cc5 Mon Sep 17 00:00:00 2001 From: Chris <129191062+guitarguy74@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:00:54 -0400 Subject: [PATCH] Update cards.py Updated cards.py to include style of type OPTIONS.ContainerStyle for the AdaptiveCard class. Also included associated validations and comments. --- src/webexpythonsdk/models/cards/cards.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/webexpythonsdk/models/cards/cards.py b/src/webexpythonsdk/models/cards/cards.py index 64f17fc..baa8807 100644 --- a/src/webexpythonsdk/models/cards/cards.py +++ b/src/webexpythonsdk/models/cards/cards.py @@ -61,6 +61,7 @@ def __init__( backgroundImage: object = None, minHeight: str = None, speak: str = None, + style: OPTIONS.ContainerStyle = None, lang: str = None, verticalContentAlignment: OPTIONS.VerticalContentAlignment = None, ): @@ -94,6 +95,11 @@ def __init__( speak (str, Optional): Specifies what should be spoken for this entire card. This is simple text or SSML fragment. **_Defaults to None._** + style (ContainerStyle, Optional): Style hint for Container. + **_Defaults to None._**Allowed value(s): + ContainerStyle.DEFAULT, ContainerStyle.EMPHASIS, + ContainerStyle.GOOD, ContainerStyle.ATTENTION, + ContainerStyle.WARNING, or ContainerStyle.ACCENT lang (str, Optional): The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions. **_Defaults to None._** @@ -184,6 +190,12 @@ def __init__( optional=True, ) + validate_input( + style, + OPTIONS.ContainerStyle, + optional=True, + ) + check_type( lang, str, @@ -210,6 +222,7 @@ def __init__( self.backgroundImage = backgroundImage self.minHeight = minHeight self.speak = speak + self.style = style self.lang = lang self.verticalContentAlignment = verticalContentAlignment @@ -235,6 +248,7 @@ def __init__( ), "minHeight", "speak", + "style", "lang", "verticalContentAlignment", ],