Skip to content

Commit 23b9605

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cd7fd42b of spec repo
1 parent 7cc4c3b commit 23b9605

15 files changed

Lines changed: 398 additions & 56 deletions

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-27 10:37:47.296878",
8-
"spec_repo_commit": "c75940cb"
7+
"regenerated": "2025-05-27 14:38:55.125413",
8+
"spec_repo_commit": "cd7fd42b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 10:37:47.323956",
13-
"spec_repo_commit": "c75940cb"
12+
"regenerated": "2025-05-27 14:38:55.142404",
13+
"spec_repo_commit": "cd7fd42b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14081,11 +14081,23 @@ components:
1408114081
enum:
1408214082
- http
1408314083
- grpc
14084+
- ssl
14085+
- dns
14086+
- tcp
14087+
- udp
14088+
- icmp
14089+
- websocket
1408414090
example: http
1408514091
type: string
1408614092
x-enum-varnames:
1408714093
- HTTP
1408814094
- GRPC
14095+
- SSL
14096+
- DNS
14097+
- TCP
14098+
- UDP
14099+
- ICMP
14100+
- WEBSOCKET
1408914101
SyntheticsAPITestType:
1409014102
default: api
1409114103
description: Type of the Synthetic test, `api`.

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from datadog_api_client.v1.model.synthetics_assertion_operator import SyntheticsAssertionOperator
1515
from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget
1616
from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType
17+
from datadog_api_client.v1.model.synthetics_basic_auth_web import SyntheticsBasicAuthWeb
18+
from datadog_api_client.v1.model.synthetics_basic_auth_web_type import SyntheticsBasicAuthWebType
1719
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1820
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
1921
from datadog_api_client.v1.model.synthetics_global_variable_parser_type import SyntheticsGlobalVariableParserType
@@ -23,6 +25,7 @@
2325
from datadog_api_client.v1.model.synthetics_parsing_options import SyntheticsParsingOptions
2426
from datadog_api_client.v1.model.synthetics_test_call_type import SyntheticsTestCallType
2527
from datadog_api_client.v1.model.synthetics_test_details_sub_type import SyntheticsTestDetailsSubType
28+
from datadog_api_client.v1.model.synthetics_test_headers import SyntheticsTestHeaders
2629
from datadog_api_client.v1.model.synthetics_test_metadata import SyntheticsTestMetadata
2730
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
2831
from datadog_api_client.v1.model.synthetics_test_options_http_version import SyntheticsTestOptionsHTTPVersion
@@ -110,6 +113,146 @@
110113
call_type=SyntheticsTestCallType.UNARY,
111114
),
112115
),
116+
SyntheticsAPITestStep(
117+
name="SSL step",
118+
subtype=SyntheticsAPITestStepSubtype.SSL,
119+
allow_failure=False,
120+
is_critical=True,
121+
retry=SyntheticsTestOptionsRetry(
122+
count=0,
123+
interval=300.0,
124+
),
125+
assertions=[
126+
SyntheticsAssertionTarget(
127+
operator=SyntheticsAssertionOperator.IS_IN_MORE_DAYS_THAN,
128+
type=SyntheticsAssertionType.CERTIFICATE,
129+
target=10,
130+
),
131+
],
132+
request=SyntheticsTestRequest(
133+
host="example.org",
134+
port=443,
135+
),
136+
),
137+
SyntheticsAPITestStep(
138+
name="DNS step",
139+
subtype=SyntheticsAPITestStepSubtype.DNS,
140+
allow_failure=False,
141+
is_critical=True,
142+
retry=SyntheticsTestOptionsRetry(
143+
count=0,
144+
interval=300.0,
145+
),
146+
assertions=[
147+
SyntheticsAssertionTarget(
148+
operator=SyntheticsAssertionOperator.LESS_THAN,
149+
type=SyntheticsAssertionType.RESPONSE_TIME,
150+
target=1000,
151+
),
152+
],
153+
request=SyntheticsTestRequest(
154+
host="troisdizaines.com",
155+
dns_server="8.8.8.8",
156+
dns_server_port="53",
157+
),
158+
),
159+
SyntheticsAPITestStep(
160+
name="TCP step",
161+
subtype=SyntheticsAPITestStepSubtype.TCP,
162+
allow_failure=False,
163+
is_critical=True,
164+
retry=SyntheticsTestOptionsRetry(
165+
count=0,
166+
interval=300.0,
167+
),
168+
assertions=[
169+
SyntheticsAssertionTarget(
170+
operator=SyntheticsAssertionOperator.LESS_THAN,
171+
type=SyntheticsAssertionType.RESPONSE_TIME,
172+
target=1000,
173+
),
174+
],
175+
request=SyntheticsTestRequest(
176+
host="34.95.79.70",
177+
port=80,
178+
should_track_hops=True,
179+
timeout=32.0,
180+
),
181+
),
182+
SyntheticsAPITestStep(
183+
name="ICMP step",
184+
subtype=SyntheticsAPITestStepSubtype.ICMP,
185+
allow_failure=False,
186+
is_critical=True,
187+
retry=SyntheticsTestOptionsRetry(
188+
count=0,
189+
interval=300.0,
190+
),
191+
assertions=[
192+
SyntheticsAssertionTarget(
193+
operator=SyntheticsAssertionOperator.IS,
194+
target=0,
195+
type=SyntheticsAssertionType.PACKET_LOSS_PERCENTAGE,
196+
),
197+
],
198+
request=SyntheticsTestRequest(
199+
host="34.95.79.70",
200+
number_of_packets=4,
201+
should_track_hops=True,
202+
timeout=38.0,
203+
),
204+
),
205+
SyntheticsAPITestStep(
206+
name="Websocket step",
207+
subtype=SyntheticsAPITestStepSubtype.WEBSOCKET,
208+
allow_failure=False,
209+
is_critical=True,
210+
retry=SyntheticsTestOptionsRetry(
211+
count=0,
212+
interval=300.0,
213+
),
214+
assertions=[
215+
SyntheticsAssertionTarget(
216+
operator=SyntheticsAssertionOperator.LESS_THAN,
217+
type=SyntheticsAssertionType.RESPONSE_TIME,
218+
target=1000,
219+
),
220+
],
221+
request=SyntheticsTestRequest(
222+
url="ws://34.95.79.70/web-socket",
223+
message="My message",
224+
headers=SyntheticsTestHeaders(
225+
f="g",
226+
),
227+
basic_auth=SyntheticsBasicAuthWeb(
228+
type=SyntheticsBasicAuthWebType.WEB,
229+
username="user",
230+
password="password",
231+
),
232+
),
233+
),
234+
SyntheticsAPITestStep(
235+
name="UDP step",
236+
subtype=SyntheticsAPITestStepSubtype.UDP,
237+
allow_failure=False,
238+
is_critical=True,
239+
retry=SyntheticsTestOptionsRetry(
240+
count=0,
241+
interval=300.0,
242+
),
243+
assertions=[
244+
SyntheticsAssertionTarget(
245+
operator=SyntheticsAssertionOperator.LESS_THAN,
246+
type=SyntheticsAssertionType.RESPONSE_TIME,
247+
target=1000,
248+
),
249+
],
250+
request=SyntheticsTestRequest(
251+
host="8.8.8.8",
252+
port=53,
253+
message="A image.google.com",
254+
),
255+
),
113256
],
114257
),
115258
locations=[

src/datadog_api_client/v1/model/synthetics_api_test_step_subtype.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,28 @@ class SyntheticsAPITestStepSubtype(ModelSimple):
1616
"""
1717
The subtype of the Synthetic multi-step API test step.
1818
19-
:param value: Must be one of ["http", "grpc"].
19+
:param value: Must be one of ["http", "grpc", "ssl", "dns", "tcp", "udp", "icmp", "websocket"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"http",
2525
"grpc",
26+
"ssl",
27+
"dns",
28+
"tcp",
29+
"udp",
30+
"icmp",
31+
"websocket",
2632
}
2733
HTTP: ClassVar["SyntheticsAPITestStepSubtype"]
2834
GRPC: ClassVar["SyntheticsAPITestStepSubtype"]
35+
SSL: ClassVar["SyntheticsAPITestStepSubtype"]
36+
DNS: ClassVar["SyntheticsAPITestStepSubtype"]
37+
TCP: ClassVar["SyntheticsAPITestStepSubtype"]
38+
UDP: ClassVar["SyntheticsAPITestStepSubtype"]
39+
ICMP: ClassVar["SyntheticsAPITestStepSubtype"]
40+
WEBSOCKET: ClassVar["SyntheticsAPITestStepSubtype"]
2941

3042
@cached_property
3143
def openapi_types(_):
@@ -36,3 +48,9 @@ def openapi_types(_):
3648

3749
SyntheticsAPITestStepSubtype.HTTP = SyntheticsAPITestStepSubtype("http")
3850
SyntheticsAPITestStepSubtype.GRPC = SyntheticsAPITestStepSubtype("grpc")
51+
SyntheticsAPITestStepSubtype.SSL = SyntheticsAPITestStepSubtype("ssl")
52+
SyntheticsAPITestStepSubtype.DNS = SyntheticsAPITestStepSubtype("dns")
53+
SyntheticsAPITestStepSubtype.TCP = SyntheticsAPITestStepSubtype("tcp")
54+
SyntheticsAPITestStepSubtype.UDP = SyntheticsAPITestStepSubtype("udp")
55+
SyntheticsAPITestStepSubtype.ICMP = SyntheticsAPITestStepSubtype("icmp")
56+
SyntheticsAPITestStepSubtype.WEBSOCKET = SyntheticsAPITestStepSubtype("websocket")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-25T16:34:23.928Z
1+
2025-05-20T15:08:23.475Z

0 commit comments

Comments
 (0)