From 20da2231ebc56e23b5e39499d4f04e371914f04c Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 18 Aug 2025 09:21:07 +0000 Subject: [PATCH] Generate observability --- ...t_config_receiver_payload_web_hook_configs_inner.py | 10 ++++++++-- .../src/stackit/observability/models/web_hook.py | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py index 79a0f412..96c7a9bb 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py @@ -27,9 +27,14 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel): CreateAlertConfigReceiverPayloadWebHookConfigsInner """ # noqa: E501 + google_chat: Optional[StrictBool] = Field( + default=False, + description="Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false.", + alias="googleChat", + ) ms_teams: Optional[StrictBool] = Field( default=False, - description="Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such", + description="Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false.", alias="msTeams", ) send_resolved: Optional[StrictBool] = Field( @@ -39,7 +44,7 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel): default=None, description="The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address", ) - __properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"] + __properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False, "msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False, "sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True, "url": obj.get("url"), diff --git a/services/observability/src/stackit/observability/models/web_hook.py b/services/observability/src/stackit/observability/models/web_hook.py index 6c3705fd..d9958d88 100644 --- a/services/observability/src/stackit/observability/models/web_hook.py +++ b/services/observability/src/stackit/observability/models/web_hook.py @@ -27,10 +27,11 @@ class WebHook(BaseModel): WebHook """ # noqa: E501 + google_chat: Optional[StrictBool] = Field(default=False, alias="googleChat") ms_teams: Optional[StrictBool] = Field(default=False, alias="msTeams") send_resolved: Optional[StrictBool] = Field(default=True, alias="sendResolved") url: Annotated[str, Field(min_length=1, strict=True, max_length=500)] - __properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"] + __properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"] model_config = ConfigDict( populate_by_name=True, @@ -82,6 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False, "msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False, "sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True, "url": obj.get("url"),