Skip to content

Commit 43160b5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5d86661b of spec repo (#2641)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent aa9961d commit 43160b5

File tree

6 files changed

+68
-8
lines changed

6 files changed

+68
-8
lines changed

.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-06-24 13:19:24.810779",
8-
"spec_repo_commit": "8772660e"
7+
"regenerated": "2025-06-25 11:39:38.334081",
8+
"spec_repo_commit": "5d86661b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-24 13:19:24.828140",
13-
"spec_repo_commit": "8772660e"
12+
"regenerated": "2025-06-25 11:39:38.349151",
13+
"spec_repo_commit": "5d86661b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17201,8 +17201,8 @@ components:
1720117201
description: DNS server to use for DNS tests.
1720217202
type: string
1720317203
dnsServerPort:
17204+
$ref: '#/components/schemas/SyntheticsTestRequestDNSServerPort'
1720417205
description: DNS server port to use for DNS tests.
17205-
type: string
1720617206
files:
1720717207
description: Files to be used as part of the request in the test. Only valid
1720817208
if `bodyType` is `multipart/form-data`.
@@ -17356,6 +17356,15 @@ components:
1735617356
description: Date of update of the certificate or key, ISO format.
1735717357
type: string
1735817358
type: object
17359+
SyntheticsTestRequestDNSServerPort:
17360+
description: DNS server port to use for DNS tests.
17361+
oneOf:
17362+
- $ref: '#/components/schemas/SyntheticsTestRequestNumericalDNSServerPort'
17363+
- $ref: '#/components/schemas/SyntheticsTestRequestVariableDNSServerPort'
17364+
SyntheticsTestRequestNumericalDNSServerPort:
17365+
description: Integer DNS server port number to use when performing the test.
17366+
format: int64
17367+
type: integer
1735917368
SyntheticsTestRequestNumericalPort:
1736017369
description: Integer Port number to use when performing the test.
1736117370
format: int64
@@ -17377,6 +17386,10 @@ components:
1737717386
required:
1737817387
- url
1737917388
type: object
17389+
SyntheticsTestRequestVariableDNSServerPort:
17390+
description: String DNS server port number to use when performing the test.
17391+
Supports templated variables.
17392+
type: string
1738017393
SyntheticsTestRequestVariablePort:
1738117394
description: String Port number to use when performing the test. Supports templated
1738217395
variables.

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5023,6 +5023,13 @@ datadog\_api\_client.v1.model.synthetics\_test\_request\_certificate\_item modul
50235023
:members:
50245024
:show-inheritance:
50255025

5026+
datadog\_api\_client.v1.model.synthetics\_test\_request\_dns\_server\_port module
5027+
---------------------------------------------------------------------------------
5028+
5029+
.. automodule:: datadog_api_client.v1.model.synthetics_test_request_dns_server_port
5030+
:members:
5031+
:show-inheritance:
5032+
50265033
datadog\_api\_client.v1.model.synthetics\_test\_request\_port module
50275034
--------------------------------------------------------------------
50285035

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v1.model.synthetics_test_request_body_type import SyntheticsTestRequestBodyType
1919
from datadog_api_client.v1.model.synthetics_test_call_type import SyntheticsTestCallType
2020
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
21+
from datadog_api_client.v1.model.synthetics_test_request_dns_server_port import SyntheticsTestRequestDNSServerPort
2122
from datadog_api_client.v1.model.synthetics_test_request_body_file import SyntheticsTestRequestBodyFile
2223
from datadog_api_client.v1.model.synthetics_test_headers import SyntheticsTestHeaders
2324
from datadog_api_client.v1.model.synthetics_test_options_http_version import SyntheticsTestOptionsHTTPVersion
@@ -46,6 +47,9 @@ def openapi_types(_):
4647
from datadog_api_client.v1.model.synthetics_test_request_body_type import SyntheticsTestRequestBodyType
4748
from datadog_api_client.v1.model.synthetics_test_call_type import SyntheticsTestCallType
4849
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
50+
from datadog_api_client.v1.model.synthetics_test_request_dns_server_port import (
51+
SyntheticsTestRequestDNSServerPort,
52+
)
4953
from datadog_api_client.v1.model.synthetics_test_request_body_file import SyntheticsTestRequestBodyFile
5054
from datadog_api_client.v1.model.synthetics_test_headers import SyntheticsTestHeaders
5155
from datadog_api_client.v1.model.synthetics_test_options_http_version import SyntheticsTestOptionsHTTPVersion
@@ -65,7 +69,7 @@ def openapi_types(_):
6569
"compressed_json_descriptor": (str,),
6670
"compressed_proto_file": (str,),
6771
"dns_server": (str,),
68-
"dns_server_port": (str,),
72+
"dns_server_port": (SyntheticsTestRequestDNSServerPort,),
6973
"files": ([SyntheticsTestRequestBodyFile],),
7074
"follow_redirects": (bool,),
7175
"form": ({str: (str,)},),
@@ -147,7 +151,7 @@ def __init__(
147151
compressed_json_descriptor: Union[str, UnsetType] = unset,
148152
compressed_proto_file: Union[str, UnsetType] = unset,
149153
dns_server: Union[str, UnsetType] = unset,
150-
dns_server_port: Union[str, UnsetType] = unset,
154+
dns_server_port: Union[SyntheticsTestRequestDNSServerPort, int, str, UnsetType] = unset,
151155
files: Union[List[SyntheticsTestRequestBodyFile], UnsetType] = unset,
152156
follow_redirects: Union[bool, UnsetType] = unset,
153157
form: Union[Dict[str, str], UnsetType] = unset,
@@ -208,7 +212,7 @@ def __init__(
208212
:type dns_server: str, optional
209213
210214
:param dns_server_port: DNS server port to use for DNS tests.
211-
:type dns_server_port: str, optional
215+
:type dns_server_port: SyntheticsTestRequestDNSServerPort, optional
212216
213217
:param files: Files to be used as part of the request in the test. Only valid if ``bodyType`` is ``multipart/form-data``.
214218
:type files: [SyntheticsTestRequestBodyFile], optional
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelComposed,
9+
cached_property,
10+
)
11+
12+
13+
class SyntheticsTestRequestDNSServerPort(ModelComposed):
14+
def __init__(self, **kwargs):
15+
"""
16+
DNS server port to use for DNS tests.
17+
"""
18+
super().__init__(kwargs)
19+
20+
@cached_property
21+
def _composed_schemas(_):
22+
# we need this here to make our import statements work
23+
# we must store _composed_schemas in here so the code is only run
24+
# when we invoke this method. If we kept this at the class
25+
# level we would get an error because the class level
26+
# code would be run when this module is imported, and these composed
27+
# classes don't exist yet because their module has not finished
28+
# loading
29+
return {
30+
"oneOf": [
31+
int,
32+
str,
33+
],
34+
}

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@
846846
from datadog_api_client.v1.model.synthetics_test_request_body_type import SyntheticsTestRequestBodyType
847847
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
848848
from datadog_api_client.v1.model.synthetics_test_request_certificate_item import SyntheticsTestRequestCertificateItem
849+
from datadog_api_client.v1.model.synthetics_test_request_dns_server_port import SyntheticsTestRequestDNSServerPort
849850
from datadog_api_client.v1.model.synthetics_test_request_port import SyntheticsTestRequestPort
850851
from datadog_api_client.v1.model.synthetics_test_request_proxy import SyntheticsTestRequestProxy
851852
from datadog_api_client.v1.model.synthetics_test_restriction_policy_binding import (
@@ -1804,6 +1805,7 @@
18041805
"SyntheticsTestRequestBodyType",
18051806
"SyntheticsTestRequestCertificate",
18061807
"SyntheticsTestRequestCertificateItem",
1808+
"SyntheticsTestRequestDNSServerPort",
18071809
"SyntheticsTestRequestPort",
18081810
"SyntheticsTestRequestProxy",
18091811
"SyntheticsTestRestrictionPolicyBinding",

0 commit comments

Comments
 (0)