-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathsynthetics_api_wait_step.py
More file actions
73 lines (58 loc) · 1.96 KB
/
synthetics_api_wait_step.py
File metadata and controls
73 lines (58 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)
if TYPE_CHECKING:
from datadog_api_client.v1.model.synthetics_api_wait_step_subtype import SyntheticsAPIWaitStepSubtype
class SyntheticsAPIWaitStep(ModelNormal):
validations = {
"value": {
"inclusive_maximum": 180,
"inclusive_minimum": 0,
},
}
@cached_property
def openapi_types(_):
from datadog_api_client.v1.model.synthetics_api_wait_step_subtype import SyntheticsAPIWaitStepSubtype
return {
"id": (str,),
"name": (str,),
"subtype": (SyntheticsAPIWaitStepSubtype,),
"value": (int,),
}
attribute_map = {
"id": "id",
"name": "name",
"subtype": "subtype",
"value": "value",
}
read_only_vars = {
"id",
}
def __init__(
self_, name: str, subtype: SyntheticsAPIWaitStepSubtype, value: int, id: Union[str, UnsetType] = unset, **kwargs
):
"""
The Wait step used in a Synthetic multi-step API test.
:param id: ID of the step.
:type id: str, optional
:param name: The name of the step.
:type name: str
:param subtype: The subtype of the Synthetic multi-step API wait step.
:type subtype: SyntheticsAPIWaitStepSubtype
:param value: The time to wait in seconds. Minimum value: 0. Maximum value: 180.
:type value: int
"""
if id is not unset:
kwargs["id"] = id
super().__init__(kwargs)
self_.name = name
self_.subtype = subtype
self_.value = value