33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import Any , Union , TYPE_CHECKING
6+ from typing import Union , TYPE_CHECKING
77
88from datadog_api_client .model_utils import (
99 ModelNormal ,
1010 cached_property ,
11- date ,
12- datetime ,
13- none_type ,
1411 unset ,
1512 UnsetType ,
16- UUID ,
1713)
1814
1915
2016if TYPE_CHECKING :
2117 from datadog_api_client .v1 .model .synthetics_assertion_operator import SyntheticsAssertionOperator
18+ from datadog_api_client .v1 .model .synthetics_assertion_target_value import SyntheticsAssertionTargetValue
2219 from datadog_api_client .v1 .model .synthetics_assertion_timings_scope import SyntheticsAssertionTimingsScope
2320 from datadog_api_client .v1 .model .synthetics_assertion_type import SyntheticsAssertionType
2421
@@ -27,24 +24,14 @@ class SyntheticsAssertionTarget(ModelNormal):
2724 @cached_property
2825 def openapi_types (_ ):
2926 from datadog_api_client .v1 .model .synthetics_assertion_operator import SyntheticsAssertionOperator
27+ from datadog_api_client .v1 .model .synthetics_assertion_target_value import SyntheticsAssertionTargetValue
3028 from datadog_api_client .v1 .model .synthetics_assertion_timings_scope import SyntheticsAssertionTimingsScope
3129 from datadog_api_client .v1 .model .synthetics_assertion_type import SyntheticsAssertionType
3230
3331 return {
3432 "operator" : (SyntheticsAssertionOperator ,),
3533 "_property" : (str ,),
36- "target" : (
37- bool ,
38- date ,
39- datetime ,
40- dict ,
41- float ,
42- int ,
43- list ,
44- str ,
45- UUID ,
46- none_type ,
47- ),
34+ "target" : (SyntheticsAssertionTargetValue ,),
4835 "timings_scope" : (SyntheticsAssertionTimingsScope ,),
4936 "type" : (SyntheticsAssertionType ,),
5037 }
@@ -60,7 +47,7 @@ def openapi_types(_):
6047 def __init__ (
6148 self_ ,
6249 operator : SyntheticsAssertionOperator ,
63- target : Any ,
50+ target : Union [ SyntheticsAssertionTargetValue , float , str ] ,
6451 type : SyntheticsAssertionType ,
6552 _property : Union [str , UnsetType ] = unset ,
6653 timings_scope : Union [SyntheticsAssertionTimingsScope , UnsetType ] = unset ,
@@ -75,8 +62,8 @@ def __init__(
7562 :param _property: The associated assertion property.
7663 :type _property: str, optional
7764
78- :param target: Value used by the operator.
79- :type target: bool, date, datetime, dict, float, int, list, str, UUID, none_type
65+ :param target: Value used by the operator in assertions. Can be either a number or string .
66+ :type target: SyntheticsAssertionTargetValue
8067
8168 :param timings_scope: Timings scope for response time assertions.
8269 :type timings_scope: SyntheticsAssertionTimingsScope, optional
0 commit comments